Skip to main content
Glama

prepare_marinade_stake

DestructiveIdempotent

Build an unsigned transaction to deposit SOL into Marinade and receive mSOL liquid staking tokens. Requires a durable nonce and blind-sign on Ledger.

Instructions

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.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
walletYesSolana 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 deposit + ATA rent (if mSOL ATA doesn't exist) + tx fee.
amountSolYesHuman-readable SOL amount to stake (e.g. "1.5"). Decimals are SOL-native (9 dec); the builder rounds down to lamport precision.
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

The description goes well beyond annotations (destructiveHint, idempotentHint) by detailing the SDK call, the signer (user wallet, no ephemeral keypair), automatic ATA creation with reclaimable rent cost, and the blind-sign warning. No contradiction with annotations; it enriches the agent's understanding of the tool's side effects and prerequisites.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Five sentences each serving a purpose: purpose, SDK detail, ATA rent, nonce requirement, blind-sign guidance. Slightly verbose but well-structured and front-loaded. Could combine nonce and blind-sign into a single prerequisite sentence, but overall efficient.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Lacks explicit description of the return value (expected transaction data). While typical for 'prepare' tools, providing output format (e.g., base64-encoded transaction) would improve completeness. Other aspects like constraints and side effects are well covered.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Both parameters have explicit schema descriptions with 100% coverage. The description adds critical context: wallet must have nonce and sufficient funds for deposit+rent+ fee, and amountSol is human-readable with rounding down to lamports. This complements the schema without redundancy.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Clearly states it builds an unsigned Marinade stake transaction by depositing SOL to receive mSOL. The verb 'prepare' combined with the specific staking protocol and asset identifies the resource distinctly. Sibling tools like prepare_jito_stake and prepare_lido_stake address different protocols, making this unambiguous.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly requires a durable nonce initialized via prepare_solana_nonce_init, else the tool errors. It also provides blind-sign guidance for Ledger users. Does not mention alternatives for staking, but the context of Marinade is clear. Lacks explicit when-not-to-use beyond the nonce requirement.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/szhygulin/vaultpilot-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server