Skip to main content
Glama

prepare_marinade_stake

DestructiveIdempotent

Deposit SOL into Marinade and receive mSOL liquid staking tokens. Builds an unsigned transaction using the Marinade SDK, requiring a durable nonce and compatible with Ledger blind-sign.

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 discloses key behaviors beyond annotations: transaction is unsigned, uses marinade.deposit, no ephemeral keypair, ATA auto-created with reclaimable rent, durable nonce required, blind-sign on Ledger. No contradiction with annotations (destructiveHint=true, readOnlyHint=false).

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

Conciseness5/5

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

The description is brief yet comprehensive: three sentences covering purpose, key behavioral details, and prerequisites. No redundant information; every sentence serves a purpose.

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

Completeness5/5

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

Given the complexity (durable nonce, Ledger blind-sign, ATA rent) and no output schema, the description covers all essential aspects: operation, prerequisites, side effects, and user actions. Completely informs the agent for correct invocation.

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?

Schema coverage is 100%, but the description adds significant context: wallet funds deposit and receives mSOL, requires nonce init and enough SOL for rent+tx fee; amountSol is human-readable with rounding. This complements the schema effectively.

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?

The description clearly states the tool builds an unsigned Marinade stake transaction, depositing SOL and receiving mSOL. It uses specific verb 'deposit' and resource 'SOL into Marinade', distinguishing it from sibling staking tools like prepare_jito_stake and prepare_lido_stake.

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?

The description explicitly requires a durable nonce via prepare_solana_nonce_init, warns about blind-sign on Ledger, and mentions automatic ATA creation. While it lacks explicit when-not-to-use or alternative tools, the prerequisites and wallet setup conditions are clearly stated.

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/recon-crypto-mcp'

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