Skip to main content
Glama

preview_solana_send

Read-onlyIdempotent

Update a prepared Solana transaction with a fresh blockhash and compute the Ledger message hash for blind-sign approval, preventing expiry between preparation and sending.

Instructions

Solana-only: finalize a prepared Solana tx for signing by fetching a FRESH recent blockhash, serializing the message bytes, and computing the base58(sha256(...)) Message Hash the Ledger Solana app will display on blind-sign. MUST be called between prepare_solana_* and send_transaction — Solana blockhashes expire after ~150 blocks (~60s), and the prepare → user-approve → broadcast path on a live Ledger routinely runs longer than that. Splitting the blockhash pin off prepare lets the user see-and-match the hash seconds before tapping Approve, with the full ~60s window available for the broadcast. Returns the pinned UnsignedSolanaTx (messageBase64 + ledger Message Hash) plus the CHECKS PERFORMED agent-task block the agent must auto-run. Re-callable on the same handle: re-calling overwrites the prior pin with a newer blockhash (useful if the user pauses between preview and send). send_transaction will throw a clear error if called without a prior preview_solana_send.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
handleYesOpaque handle returned by prepare_solana_native_send / prepare_solana_spl_send. preview_solana_send fetches a fresh Solana blockhash, serializes the message bytes, computes the base58(sha256(...)) Message Hash the Ledger Solana app will display on blind-sign, and pins the handle so send_transaction can consume it. MUST be called between prepare_solana_* and send_transaction — the pair is separated because a Solana blockhash is only valid ~60s and prepare→user-approve routinely blows that window. Re-callable on the same handle to re-pin with a newer blockhash if the user pauses.
Behavior1/5

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

The description discloses that the tool modifies state by pinning the handle, but the annotation readOnlyHint=true contradicts this. Per the scoring rule, a contradiction earns a score of 1.

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?

The description is detailed but well-structured, front-loading the purpose and providing necessary context without extraneous content. Slightly verbose but each sentence earns its place.

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?

With no output schema, the description fully covers return values (UnsignedSolanaTx, messageBase64, ledger Message Hash, CHECKS PERFORMED), error handling, and workflow dependencies. No gaps remain.

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

Parameters3/5

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

Schema description coverage is 100%, so baseline is 3. The description adds context about re-callability and workflow, but the parameter description in the schema already conveys the necessary meaning. No significant extra value.

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 finalizes a prepared Solana transaction for signing, specifies the actions (fetching blockhash, serializing, computing hash), and distinguishes it from sibling tools like prepare_solana_* and send_transaction by positioning it as an intermediate step.

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?

Explicitly states that the tool MUST be called between prepare_solana_* and send_transaction, explains why due to blockhash expiry, and notes that it is re-callable. Also warns that send_transaction will error if called without a prior preview.

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