Skip to main content
Glama

chain_balances

Read-only

Multi-token wallet balances — Native balance plus up to 25 ERC-20 balances for one address in a single batched on-chain read (base, ethereum, arbitrum, optimism, polygon). address= required; tokens= optional comma list of token contracts (default: the chain's major stablecoins, wrapped native, BTC wrappers and chain token); hide_zero= true|false. Returns symbol, decimals, human balance and raw units; invalid token addresses are listed separately. Price: $0.004 USDC (Base, 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": {
      "chain": "<chain>",
      "address": "<address>"
    },
    "name": "chain_balances"
  }
}

Input Schema

NameRequiredDescriptionDefault
chainYesethereum
addressYes0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

B3.4/5.0
Behavior4/5

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

Annotations already declare read-only, open-world, non-destructive behavior. The description adds useful context beyond that: a 25-token batch limit, supported chains, default token categories, returned fields, separate invalid-token listing, and x402 pricing. It does not cover pagination or rate limits, but it is substantially more informative than the annotations alone.

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 front-loaded with purpose, then supported chains/defaults, return values, and pricing. It is a dense single paragraph but generally earns its space; the main issue is inaccurate parameter claims rather than verbosity.

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?

For a read-only tool with no output schema, it provides substantial context about purpose, return fields, defaults, and cost. However, it omits the required chain parameter and introduces tokens/hide_zero parameters that the schema does not support, leaving an inconsistent call model for the agent.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema contains only chain and address, both required, but the description mentions tokens and hide_zero, which are not in the schema, while never stating that chain is required. This introduces phantom optional parameters and omits clarification of the actual required chain parameter, making the parameter guidance misleading despite 100% schema description coverage.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

Names the resource (multi-token wallet balances) and scope (native plus up to 25 ERC-20 balances for one address in a batched read) and lists supported chains. It implicitly distinguishes itself from single-token siblings like chain_erc20_balance by emphasizing multi-token batched reads, though it does not explicitly name alternatives.

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

Usage Guidelines3/5

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

Implies when to use it: fetching multiple token balances for one address in a single read, with a default token set and hide_zero option. It gives no explicit when-not-to-use guidance and does not name an alternative tool for single-token balance checks.

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