prepare_marinade_stake
Build an unsigned Marinade stake tx: deposit amountSol SOL into Marinade and receive mSOL (Marinade's liquid-staking token). Uses the Marinade SDK's marinade.deposit so the on-chain Authorized signer is the user's wallet — no ephemeral keypair, Ledger-compatible. The mSOL ATA is created automatic...
This record as markdown: /tools/io-github-szhygulin-vaultpilot-mcp/prepare-marinade-stake.md
What prepare_marinade_stake does on VaultPilot MCP
AI agents use prepare_marinade_stake to commit financial operations through VaultPilot MCP, usually the final step of a payment, billing, or trading workflow. A call moves real money.
| Parameter | Type | Required | Description |
|---|---|---|---|
wallet | string | Yes | Solana wallet that funds the deposit and receives mSOL. Must have an initialized durable-nonce account (prepare_solana_nonce_init) and enough SOL to cover the d |
amountSol | string | Yes | Human-readable SOL amount to stake (e.g. "1.5"). Decimals are SOL-native (9 dec); the builder rounds down to lamport precision. |
Parameters from the server's own tool schema.
Why prepare_marinade_stake is rated Critical
This tool builds a transaction that commits real SOL into a DeFi staking protocol (Marinade Finance) in exchange for mSOL. This constitutes a financial commitment — locking up SOL assets into a liquid staking position. While the tx is unsigned at build time, its purpose is to execute a financial operation on-chain involving crypto assets.
From the tool's definition deposit `amountSol` SOL into Marinade and receive mSOL (Marinade's liquid-staking token)
Attacks that exploit this kind of access
The rule that runs prepare_marinade_stake safely
PolicyLayer is an MCP gateway: it sits between your AI agents and VaultPilot MCP, and checks every tool call against a rule you set before the call runs. Nothing changes on the server itself. For prepare_marinade_stake, this is the rule to start with:
Any call to prepare_marinade_stake is blocked until a human approves it. The rest of the server keeps working.
The button opens the PolicyLayer dashboard: create your workspace, connect VaultPilot MCP, apply this rule, and every prepare_marinade_stake call is checked against it from then on.
Questions about prepare_marinade_stake
Build an unsigned Marinade stake tx: deposit amountSol SOL into Marinade and receive mSOL (Marinade's liquid-staking token). Uses the Marinade SDK's marinade.deposit so the on-chain Authorized signer is the user's wallet — no ephemeral keypair, Ledger-compatible. The mSOL ATA is created automatically on first stake (~0.002 SOL ATA rent, reclaimable). DURABLE NONCE REQUIRED — the wallet must have run prepare_solana_nonce_init first; otherwise this tool errors. BLIND-SIGN on Ledger (Marinade's program is not in the Solana app's clear-sign registry) — match the Message Hash on-device after preview_solana_send. It is categorised as a Financial tool in the VaultPilot MCP MCP Server, which means it involves financial transactions. Block by default and require explicit approval.
prepare_marinade_stake accepts 2 parameters: wallet, amountSol. Required: wallet, amountSol. The full parameter table on this page comes from the server's own tool schema.
Register the VaultPilot MCP server in PolicyLayer and add a rule for prepare_marinade_stake: allow, deny, rate-limit, or require approval. Point your MCP client at the PolicyLayer proxy URL and the rule is enforced on every call, before it reaches VaultPilot MCP. Nothing to install.
prepare_marinade_stake is a Financial tool with critical risk. Critical-risk tools should be blocked by default and only enabled with explicit human approval.
Yes. Add a rate_limit block to the prepare_marinade_stake rule in your PolicyLayer policy. For example, setting max: 10 and window: 60 limits the tool to 10 calls per minute. Rate limits are tracked per agent session and reset automatically.
Set action: deny in the PolicyLayer policy for prepare_marinade_stake. The AI agent will receive a policy violation error and cannot call the tool. You can also include a reason field to explain why the tool is blocked.
prepare_marinade_stake is provided by the VaultPilot MCP server (vaultpilot-mcp). PolicyLayer sits as a proxy in front of this server to enforce policies before tool calls reach the server.
More on VaultPilot, and thousands of servers like it.
Across the catalogue