Skip to main content
Glama

prepare_native_stake_delegate

DestructiveIdempotent

Create a Solana stake account at a deterministic address and delegate it to a validator's vote account. Funds the account with specified SOL plus rent-exempt minimum.

Instructions

Build an unsigned native-stake-program tx that creates a fresh stake account at a deterministic address (derived per (wallet, validator) via createAccountWithSeed) and delegates it to the given validator vote account. Funds the stake account with amountSol SOL of active principal PLUS a ~0.00228 SOL rent-exempt seed (reclaimable on full withdraw). Authority is the user's wallet for both staker + withdrawer roles — no separate authority handoff is supported in this server. DURABLE NONCE REQUIRED. Refuses if a stake account already exists at the deterministic address (the user almost certainly meant prepare_native_stake_deactivate / withdraw on the existing position). BLIND-SIGN on Ledger by default — match the Message Hash on-device. To pick a validator, call list_solana_validators first.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
walletYesSolana wallet that funds the stake account and becomes its staker + withdrawer authority. Must have an initialized durable-nonce account (prepare_solana_nonce_init) and enough SOL to cover the stake amount + rent-exempt seed (~0.00228 SOL) + tx fee. Refuses if a stake account already exists at the deterministic address for this (wallet, validator).
validatorYesVote-account address (NOT validator identity) of the validator to delegate to. Solana's stake program delegates to vote accounts, which validators publish alongside their identity. Use a Solana explorer to find the vote account for a chosen validator.
amountSolYesHuman-readable SOL amount to stake (e.g. "1.5"). Decimals are SOL-native (9). The actual lamports moved from the wallet are this value PLUS the stake account rent-exempt minimum (~0.00228 SOL); the rent-exempt floor is reclaimable on full withdraw after deactivation.
Behavior5/5

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

Annotations indicate destructiveHint=true and idempotentHint=true, but the description adds critical context: funding includes rent-exempt seed, authority is user's wallet (no handoff), blind-sign default on Ledger, deterministic address derivation. 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?

Single dense paragraph, front-loaded with main purpose, then details. Each sentence contributes info, but could benefit from better structure (e.g., bullet points). Efficient, but slightly packed.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Covers most aspects (funding, authority, nonce, refusal, blind-sign, validator selection) but lacks output format description (e.g., what the unsigned tx looks like) and post-processing steps (sign and send via other tools). For a complex tool, this is a gap.

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% with descriptions, but the description adds valuable nuance: wallet must have durable nonce and enough SOL for stake + rent + fee, validator is vote account (not identity), amountSol includes rent-exempt. Adds meaning beyond 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 states the verb ('Build an unsigned native-stake-program tx'), the resource ('fresh stake account'), and the action ('creates... and delegates'). It distinguishes itself from sibling tools like prepare_native_stake_deactivate and prepare_native_stake_withdraw by mentioning the refusal logic when a stake account already exists.

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 (initial delegation), when not to (if stake account exists, use deactivate/withdraw), and prerequisites (durable nonce required, wallet must have enough SOL, call list_solana_validators first). Provides clear context and exclusions.

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