Skip to main content
Glama

Solana balance: SOL balance of a wallet

solana_balance
Read-only

SOL balance of a Solana wallet, read live from mainnet in lamports and SOL, plus its SPL token accounts (mint, symbol for well-known tokens, decimals, amount) when the public node serves them; otherwise tokens is null with a note. Use to check a Solana wallet before a payment. An address that is not 32-byte base58 is 400, uncharged. Example: address=vines1vzrYbzLMRdu58ou5XTby4qAqVRLmqo36NKPTg. Price $0.002/call via x402 USDC or a card key (/credits), first 10 free; failed calls free. Reads or computes only and changes nothing; each call is charged, so repeats are not free.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "address": "<address>"
    },
    "name": "solana_balance"
  }
}

Input Schema

NameRequiredDescriptionDefault
addressYesSolana wallet address (base58)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added
  2. Removed
  3. Added

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already cover safety, but the description adds real behavioral context: mainnet-live reads, tokens=null with a note when the node does not serve them, invalid base58 addresses returning 400 uncharged, per-call pricing and the first-10-free rule. Crucially, 'each call is charged, so repeats are not free' explains the idempotentHint=false setting in operational terms.

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?

Front-loaded with what is returned, then usage, then error semantics, then pricing. Dense and mostly waste-free, though the pricing/billing sentence is long and could be tightened without losing information.

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?

No output schema exists, so the description carries the return-value burden and does: lamports, SOL, and token fields (mint, symbol, decimals, amount) plus the null-with-note case. Combined with error and billing semantics, an agent has everything needed to call it correctly.

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% so the address parameter is already documented, but the description adds a concrete example value and the validation rule (non-32-byte base58 is 400, uncharged), which meaningfully improves first-call success.

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?

States a specific verb and resource: reads the SOL balance of a Solana wallet live from mainnet, returning lamports and SOL plus SPL token accounts. That scope is distinguishable from the sibling token-balance tools (solana_token, eth_token_balance) without opening either schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives a concrete use case — check a Solana wallet before a payment — so the agent knows when this tool applies. It stops short of naming alternatives (e.g. solana_token for a single SPL mint) or any explicit when-not, leaving the sibling split to inference.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources