Skip to main content
Glama

balance

Read-onlyIdempotent

Run before sending SOL or paying fees, to confirm the wallet has enough. Never trust a remembered balance. A wallet's SOL balance, read from the chain. Example: {"wallet": ""}. Cost: 25 free calls a day, then $0.01 USDC per call (x402). Outputs explained: GET /api/tools/balance.

Input Schema

NameRequiredDescriptionDefault
walletYesThe wallet to read the SOL balance of. The user's address (from their wallet app) or your agent's public key. Not a .sol name or ticker.
networkNoDefault "mainnet-beta" (real money). "devnet" only for test wallets.mainnet-beta

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / network / description
      Previous value: -"Which Solana network to read. Default \"mainnet-beta\" (real money). Leave it out for mainnet. Use \"devnet\" only for test wallets."New value: +"Default \"mainnet-beta\" (real money). \"devnet\" only for test wallets."
    • changedInput schema / properties / wallet / description
      Previous value: -"The wallet address to read the SOL balance of. The user's wallet address (from their wallet app, or your agent's own public key). Not a .sol name or a ticker."New value: +"The wallet to read the SOL balance of. The user's address (from their wallet app) or your agent's public key. Not a .sol name or ticker."
  2. Changed2 schema fields changed
    • addedInput schema / properties / network / description
      Added value: +"Which Solana network to read. Default \"mainnet-beta\" (real money). Leave it out for mainnet. Use \"devnet\" only for test wallets."
    • addedInput schema / properties / wallet / description
      Added value: +"The wallet address to read the SOL balance of. The user's wallet address (from their wallet app, or your agent's own public key). Not a .sol name or a ticker."
  3. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already cover readOnly/idempotent/non-destructive/openWorld, so the safety profile is settled. The description goes further by disclosing the cost model (25 free calls/day, then $0.01 USDC per call via x402) and a freshness discipline ('Never trust a remembered balance'), both of which are real behavioral context beyond the structured fields.

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?

Dense and waste-free: trigger, purpose, example, cost, and output pointer. The ordering is slightly inverted (usage precedes the statement of what the tool is), and the trailing 'Outputs explained: GET /api/tools/balance.' is an odd fragment, but nothing is padded.

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?

A two-parameter read tool with no nested objects and no output schema is well covered by trigger + purpose + example + cost. The only gap is return shape, which is gestured at via a docs URL rather than described, so an agent knows what to pass but not exactly what comes back.

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 description coverage is 100%, so the schema already documents both `wallet` and `network` (including the .sol-name exclusion and the devnet warning). The description only adds the inline example {"wallet": "<address>"}, which is marginal; baseline 3 is correct when the schema does the heavy lifting.

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: 'A wallet's SOL balance, read from the chain.' The 'SOL' qualifier implicitly separates it from sibling token-balance tools (tokens, token_account, find_token), so an agent can route correctly without opening schemas. No tautology, no vagueness.

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 strong prescriptive trigger ('Run before sending SOL or paying fees, to confirm the wallet has enough. Never trust a remembered balance.'), which is exactly the when-to-use context an agent needs. It lacks an explicit when-not or a named alternative sibling, so it falls just short of the top band.

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.