Skip to main content
Glama

prepare_solana_native_send

DestructiveIdempotent

Builds an unsigned SOL native transfer draft with optional memo and automatic durable nonce setup for first-time sends. Returns a compact preview and handle for subsequent signing.

Instructions

Build an unsigned SOL native-transfer DRAFT via SystemProgram.transfer. Returns a compact preview + opaque handle — but does NOT yet serialize the message or fetch a blockhash (those happen in preview_solana_send, called right before send_transaction, to keep the ~60s blockhash validity window from being burned during user review). Run pair_ledger_solana once per session first so the Solana app is open and the device address is verified. Amount is in SOL (e.g. "0.5") or "max" for full balance minus fee + safety buffer. Priority fee is added dynamically only when getRecentPrioritizationFees p50 is above the congestion threshold. OPTIONAL MEMO: pass memo: "..." (≤256 UTF-8 bytes) to attach an SPL Memo program instruction (program id MemoSq4gqABAXKb96qnH8TysNcWxMyWCqXgDLGmfcHr) to the tx — common for invoice / payment-reference strings. The Ledger Solana app clear-signs Memo program calls and renders the UTF-8 string on-device alongside the transfer. AUTO NONCE SETUP: if the wallet has no durable-nonce account yet (first Solana send), this tool transparently bundles createAccountWithSeed + nonceInitialize ahead of the transfer in a single tx — costs an extra ~0.00144 SOL rent (reclaimable via prepare_solana_nonce_close), surfaced in the response (firstTimeNonceSetup: "true", rentLamports, description suffix). Subsequent sends are durable-nonce-protected and stay valid indefinitely on the device. The Ledger Solana app clear-signs SystemProgram.transfer + nonce-account ops (no blind-sign hash-match step needed for native sends).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
walletYesBase58 Solana mainnet address (ed25519 pubkey, 43 or 44 chars).
toYes
amountYesHuman-readable SOL amount (up to 9 decimals). Example: "0.5" for 0.5 SOL. Pass "max" to send the full balance minus tx fee and a small safety buffer.
memoNoOptional UTF-8 memo (max 256 bytes after encode). When set, the tx appends an SPL Memo program instruction (`MemoSq4gqABAXKb96qnH8TysNcWxMyWCqXgDLGmfcHr`) carrying the bytes. The Ledger Solana app clear-signs Memo program calls, so no on-device support change is needed. Common use: invoice / payment-reference strings.
Behavior5/5

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

The disclosure far exceeds what annotations provide: it explains that the tool does NOT serialize or fetch blockhash to preserve blockhash validity, details priority fee dynamics, auto-nonce setup with rent costs, memo handling with Ledger clear-signing, and that nonce setup occurs only on first send. No contradiction with annotations.

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 dense and informative, but every sentence adds value. It could be slightly more structured (e.g., bullet points for behavior), but the front-loading of purpose and flow is good. Given the complexity, the length is justified.

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 mutation tool with no output schema, the description adequately covers the workflow, return type ('compact preview + opaque handle'), nonce setup details, and memo behavior. However, it does not fully specify all output fields, which would improve completeness.

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?

The description enriches the schema descriptions: it explains that amount can be 'max' for full balance minus fee+safety buffer, clarifies memo's max bytes (256 UTF-8) and its use for invoice/payment-reference strings. While the schema already provides basic descriptions, the tool description adds practical nuance and context.

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 it builds an unsigned SOL native-transfer draft via SystemProgram.transfer, and distinguishes it from preview_solana_send (which serializes and fetches blockhash). This is a specific verb + resource with clear differentiation from sibling tools like prepare_solana_spl_send.

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?

It explicitly mentions the prerequisite (pair_ledger_solana once per session) and the three-step flow (prepare → preview → send). It explains when to use 'max' amount and the memo option. Though it doesn't explicitly list alternatives, the context of native transfer vs. SPL is clear from sibling names.

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