Skip to main content
Glama

Solana wallet balances: SOL plus every SPL and Token-2022 token account in one call

sol_wallet_balances
Read-onlyIdempotent

Use when an agent needs what a Solana address holds in one call. Input: address. Output: JSON slot, SOL balance, every non-zero token (mint, token account, program, decimals, raw and decimal balance, frozen flag; first 50), counts of token and empty accounts. Chain state only, no prices. Bad input: 400, not charged. Use instead: base_wallet_balances for EVM wallets. Example: ?address=CV8t6fnSsckB3bzJSVRxQjVvTgdB35q11Fu3eaF1nz8u Price: $0.002 per call, paid in USDC (Base, Monad, Polygon, Arbitrum or Solana) via x402.

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": "sol_wallet_balances"
  }
}

Input Schema

NameRequiredDescriptionDefault
addressYesWallet address on Solana mainnet (base58, 32 bytes). Bad input → 400 (not charged)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • removedInput schema / additionalProperties
      Removed value: -false
  2. Changed1 schema field changed
    • addedInput schema / additionalProperties
      Added value: +false
  3. Changed1 schema field changed
    • removedInput schema / additionalProperties
      Removed value: -false
  4. Added

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already cover read-only, idempotent, non-destructive and open-world, so the bar is lower, yet the description still adds real operational detail: bad input returns 400 and is not charged, results are capped at the first 50 non-zero tokens, empty-account counts are returned, and pricing is $0.002 per call paid in USDC via x402. The only gap is that the truncation behavior at 50 tokens isn't framed as a caveat on completeness.

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 the use case, then input, output, errors, alternative and price in a tight telegraphic list with no filler sentences. The dense parenthetical enumerating output fields is efficient, though it reads as a run-on that slightly slows scanning.

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?

With no output schema, the description compensates by enumerating the return payload (slot, SOL, mint, token account, program, decimals, raw and decimal balance, frozen flag, counts) and stating the 50-token cap. Input, output, error behavior, cost and alternatives are all covered for a single-parameter read tool.

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 already documents base58/32-byte format and the 400-not-charged behavior, which the description largely repeats. The worked example address adds a small amount of format confirmation but no new semantics about the parameter.

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 resource (SOL balance plus every SPL and Token-2022 token account) for a specific chain and scope, and the title/description immediately frame it as a one-call holdings snapshot. It explicitly contrasts with base_wallet_balances for EVM wallets, so an agent can pick the right tool 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 Guidelines5/5

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

Opens with an explicit 'Use when an agent needs what a Solana address holds in one call', names the alternative (base_wallet_balances for EVM), and implicitly excludes price/market use via 'Chain state only, no prices'. That is when-to-use, when-not-to-use, and routing in three short clauses.

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