Skip to main content
Glama

liquid_stake

Destructive

Stake SOL for a liquid-staking token (non-custodial).

amount in lamports. protocol: marinade | jito | blaze. Returns an UNSIGNED base64 tx + the LST received + current APY. The technology service fee is charged on the staked-SOL notional past the daily free tier (x402 payment_header; set pay_in_crank for the $CRANK discount).

Workflow: EXECUTE step (yield leg) -- stake the idle slice after comparing get_lst_yields. Non-custodial. Monitor via portfolio_snapshot. See get_trading_workflow.

idempotency_key (optional): a client-generated UUID. Retrying with the same key + same args replays the original result instead of re-staking. Reuse the SAME key across the build call and its signed_transaction completion call -- the two legs dedupe independently, so this never raises IDEMPOTENCY_CONFLICT; a NEW key means a genuinely new stake.

signed_transaction / verify (two-phase execution): re-call this tool with the SIGNED base64 tx and Crank broadcasts it, then awaits on-chain confirmation and re-reads the LST + SOL balances -- the response carries a real verification block ({confirmed, slot, post_state, expected_vs_actual}). Gate follow-on decisions on verification.confirmed, never on tx_signature alone. verify=false skips only the confirmation wait.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
amountYes
verifyNo
protocolYes
caller_idNo
pay_in_crankNo
payment_headerNo
wallet_addressYes
idempotency_keyNo
allow_unverifiedNo
signed_transactionNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

TDQS

A4.6/5.0
Behavior5/5

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

The description goes far beyond the annotations by disclosing the two-phase execution (build-then-confirm), the verification eagerly awaited once verify=true, the "verification" block semantics ({confirmed, slot, post_state, expected_vs_actual}), and the explicit instruction to gate on verification.confirmed rather than tx_signature. It also reveals fee billing details (x402 payment_headers, pay_for_the_block discount) and confirms the non-custodial flow. This substantially adds behavioral context that annotations alone (only read-only hints) already communicate.

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 organized in cohesive, rule-structured blocks: purpose+payload, fees, workflow routing, idempotency, and verification protocol. Every section earns its place since the two-phase mechanism and idempotency dedup are genuinely non-obvious, and the text keeps each section compact. It pulls the main action-parameter details first and backloads the complex semantics, which is ideal for an agent sampling the description.

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?

For a 10-parameter, mutation-safe tool with a rich output schema, the description is impressively complete: required parameters, units, protocol values, fee behavior, static text and verification timing are all covered. The remaining gap is `allow_unverified` (and to a lesser extent `caller_id`), which is left to the schema's default. Since the description already carries the most safety-critical instructions, one missing parameter is a minor but real completeness shortfall.

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 schema description coverage at 0%, the description is the primary source of parameter meaning and it carries that burden well: it documents amounts=(lamports), protocol=(enumeration), verify=skipping the confirmation wait, idempotency_key (client UUID, dedup and replay semantics, same-key-across-legs rule), signed_transaction (the second-phase re-call), and the pay_in_crank/payment_header pairing. The only noticeable gap is `allow_unverified`, which is left undefined; its behavior appears important for results variation but is undeclared.

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 opens with a specific verb + resource + outcome: "Stake SOL for a liquid-staking token (non-custodial)." It then names the distinct protocols (marinade | jito | blaze), clarifies the return payload (unsigned base64 tx, LST, APY), and clearly separates this stake action from other operations. An agent can tell exactly what to expect from this tool at a glance.

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 positions the tool in a workflow: "EXECUTE step (yield leg)" and instructs to "stake the idle slice after comparing the yield rates get_lst_yields", plus "Monitor via portfolio_snapshot. See get_trading_workflow." This gives the AI encoded context on when — and in what order — to invoke it. It does not list explicit exclusion warnings, e.g., when to choose an alternative like lst_swap, so it misses a bit of against-criteria guidance.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

TDQS

B3.2/5.0
Disambiguation2/5

Multiple tools overlap significantly: close_perp_position vs perp_close, get_leaderboard vs get_score_leaderboard vs get_strategy_leaderboard, get_venue_status vs get_all_venues_status, send_token_social vs bulk_send_social, and get_crank_score vs get_score. Several read-only tools have nearly identical purposes, and the descriptions do not always clarify boundaries.

Naming Consistency4/5

Most tools follow a consistent verb_noun snake_case pattern (get_balances, create_strategy, set_alert, list_webhooks). However, there are deviations like 'lst_swap', 'jupiter_swap', 'flash_loan', 'sr_backtest', and the use of both 'get_' and 'list_' for reads, plus category prefixes like 'perp_' and 'strategy_' that vary in order. Overall still readable and predictable.

Tool Count1/5

177 tools is an extreme count for any server, far exceeding the 25+ threshold for 'too many'. Even a full DeFi platform does not need this many separate operations; the surface is overwhelming and clearly not well-scoped.

Completeness3/5

The domain (Solana DeFi trading) is covered extensively across swaps, perps, lending, staking, strategies, signals, and support. However, there are notable gaps: no lend_withdraw, no direct way to close a lending position, no spot order cancellation (though aggregator-based swaps may not need it), and a general lack of tiered account management. The huge number of tools makes it hard to identify missing lifecycle steps.

Resources