Skip to main content
Glama

prepare_marinade_unstake_immediate

DestructiveIdempotent

Instantly burn mSOL to receive SOL via Marinade's liquidity pool. Prepares an unsigned transaction for Ledger blind-signing, requiring a durable nonce account.

Instructions

Build an unsigned Marinade IMMEDIATE liquid-unstake tx: burn amountMSol mSOL and receive SOL in the same tx via Marinade's liquidity pool (NOT delayed-unstake / OrderUnstake — that flow returns full SOL after one epoch but requires an ephemeral ticket-account signer the Ledger-only signing model can't provide; tracked as a follow-up). The pool charges a small fee (typically 0.3% — varies with pool depth) in exchange for instant liquidity. DURABLE NONCE REQUIRED + same Ledger signing constraints as prepare_marinade_stake. BLIND-SIGN on Ledger.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
walletYesSolana wallet that burns mSOL and receives SOL. Must have an initialized durable-nonce account and an mSOL position to unstake from. Liquid unstake routes through Marinade's liquidity pool (NOT delayed-unstake / OrderUnstake) so the user pays a small fee but receives SOL in the same tx — no one-epoch wait.
amountMSolYesHuman-readable mSOL amount to unstake (e.g. "1.5"). Builder converts to mSOL base units (9 dec) and rounds down.
Behavior5/5

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

The description adds significant behavioral context beyond the annotations: it's an unsigned transaction, immediate, involves a fee, requires durable nonce and blind-sign on Ledger. No contradiction with annotations; destructiveHint is appropriate.

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 concise, packing essential information into a few sentences. It is front-loaded with the core action and efficiently conveys constraints and alternatives.

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

Completeness4/5

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

The description covers the tool's purpose, constraints, and alternatives. It does not explain the return value format, but as a 'prepare' tool, the output (unsigned tx) is implied. The context is complete for an agent to select and invoke correctly.

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?

With 100% schema coverage, baseline is 3. The description adds value by specifying that wallet must have an initialized durable-nonce account and mSOL position, and that amountMSol is human-readable with rounding down.

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 immediate liquid-unstake transaction, burning mSOL for SOL via Marinade's liquidity pool. It explicitly distinguishes from delayed unstake, making the purpose unambiguous.

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

Usage Guidelines5/5

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

The description provides explicit when-to-use guidance: for immediate unstaking via liquidity pool, and contrasts with delayed unstake which is unsuitable for Ledger-only signing. It also notes required durable nonce and Ledger constraints.

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