Skip to main content
Glama

x402 Agent Hub

chain_token_balance

ERC-20 token balance of any address on 7 EVM chains, returned raw and decimal-formatted with the token symbol, so agents never mis-scale USDC (6) vs 18-decimal tokens. You only pay for successful reads: invalid input, not-found and upstream errors cancel settlement. ($0.002 USDC on Base)

Input Schema

NameRequiredDescriptionDefault
chainNobase (default), ethereum, arbitrum, optimism, polygon, bsc or avalanche. Chain IDs also accepted.
tokenYes0x-prefixed ERC-20 token contract address.
addressYes0x-prefixed wallet or contract address.
paymentSignatureNoOptional x402 v2 base64 PAYMENT-SIGNATURE

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4/5.0
Behavior4/5

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

With no annotations, the description carries the full load and does well: it discloses the pay-per-call billing model ($0.002 USDC on Base), that settlement only occurs on successful reads while invalid input/not-found/upstream errors cancel it, and that output includes both raw and decimal values plus the symbol. It omits anything about auth/payment-signature requirements (left to schema) and latency or rate limits.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two tight sentences: capability and scope first, then the mis-scaling rationale, then billing terms. Every clause carries information an agent or caller needs, and nothing is buried.

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?

No output schema exists, but the description still characterizes the return value (raw + decimal-formatted + symbol) and the error/billing behavior, which is the critical unknown for a paid read. It stops short of describing the error response shape or what happens for a non-contract token address.

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 all four parameters are already documented, including the chain list and 0x-prefix requirements. The description adds only the count of supported chains ("7"), which duplicates rather than extends the schema; baseline 3 applies.

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+resource ("ERC-20 token balance of any address") plus scope (7 EVM chains) and return shape. The "ERC-20" qualifier implicitly distinguishes it from chain_native_balance and chain_token_info, so an agent can pick it without opening another schema.

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?

Usage is implied by "any address on 7 EVM chains" and the pricing note, but it never says when to prefer this over siblings like chain_native_balance (native coin) or chain_portfolio (multi-asset). No exclusions or prerequisites are stated.

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.