Skip to main content
Glama

prepare_solana_nonce_init

Destructive

Initialize a per-wallet Solana durable-nonce account for standalone use before DeFi actions that cannot bundle the setup, such as Jupiter swaps. Reclaim rent via close.

Instructions

Explicit one-time setup of a per-wallet durable-nonce account at the deterministic PDA PublicKey.createWithSeed(wallet, 'vaultpilot-nonce-v1', SystemProgram.programId). MOST USERS DO NOT NEED TO CALL THIS DIRECTLY — prepare_solana_native_send / prepare_solana_spl_send auto-bundle the same setup into the user's first send. Use this tool when the user wants the setup standalone (e.g. before a Jupiter swap or MarginFi action, which can't safely auto-bundle due to size + ALT constraints), or to re-init after a prepare_solana_nonce_close. Costs ~0.00144 SOL rent-exempt seed + ~0.000005 SOL tx fee; the rent is fully reclaimable via prepare_solana_nonce_close. Refuses if a nonce account already exists at the derived PDA. This init tx uses a regular recent blockhash (no nonce to use yet — same constraint that makes auto-bundling possible inside native/SPL sends).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
walletYesSolana wallet that will own (and authorize) the durable-nonce account. The nonce account address is derived deterministically via PublicKey.createWithSeed(wallet, 'vaultpilot-nonce-v1', SystemProgram). No separate keypair or backup is needed — the same wallet + seed always produces the same PDA.
Behavior4/5

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

Annotations indicate destructive and not readOnly. The description adds behavioral context: costs (0.00144 SOL + tx fee), rent reclaimability via close, and use of regular recent blockhash. This goes beyond the annotations without contradicting them.

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 a single, well-structured paragraph with front-loaded purpose, alternative info, use cases, costs, and behavior. It is dense but clear; slight improvements could be made by breaking into bullets, but current is efficient.

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 one parameter (fully documented in schema), no output schema, and annotations provide basic hints, the description covers purpose, alternatives, when to use, cost, reclaimability, refusal condition, and technical blockhash detail. It is comprehensive for this tool's complexity.

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 coverage is 100%, and the schema's own description for 'wallet' is already detailed (derivation, no backup needed). The tool description reiterates the derivation string but adds no significant new meaning beyond the schema.

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 identifies the tool as the explicit one-time setup of a per-wallet durable-nonce account at a specific deterministic PDA. It distinguishes from sibling tools like prepare_solana_native_send by noting that most users do not need to call this directly because those tools auto-bundle the setup.

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 explicitly states when to use this tool (standalone before Jupiter swap or MarginFi action, or to re-init after close) and when not to (most users should rely on auto-bundling). It also mentions that it refuses if a nonce account already exists.

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