Skip to main content
Glama

preview_solana_send

Read-onlyIdempotent

Fetch a fresh Solana blockhash and compute the Ledger message hash to pin the transaction, enabling user approval before broadcast.

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.
Behavior4/5

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

Annotations declare readOnlyHint=true and destructiveHint=false, which the description does not contradict. The description adds useful behavioral details: it overwrites the previous pin on re-call, and send_transaction will throw an error without prior preview. It also explains the underpinning reason for splitting blockhash pinning from prepare. However, the description goes beyond annotations with these details.

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 relatively long (~150 words) but every sentence serves a purpose. It is front-loaded with the core action, then explains constraints, re-call behavior, and error condition. Could be slightly more terse but is appropriate for the complexity of the operation.

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 tool has only one parameter, no output schema, and annotations cover read/idempotent properties, the description is fully complete. It explains the entire workflow, why splitting is needed, re-call behavior, and error conditions. No gaps for an agent to misinterpret.

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% for the single parameter 'handle', and the schema description already explains its purpose. The tool description adds additional context about re-callability and the pinning behavior, which enriches understanding beyond the schema's minimal definition.

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 is Solana-only, and defines its specific verb 'finalize' with the resource 'prepared Solana tx'. It explains the purpose: fetching a fresh blockhash, serializing message bytes, and computing the Message Hash. This distinctly separates it from siblings like send_transaction and the prepare_solana_* series.

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 when to use: 'MUST be called between prepare_solana_* and send_transaction', explains the reason (blockhash expiry), and mentions re-callability if the user pauses. No ambiguity about the correct placement in the sequence.

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