Skip to main content
Glama

ERC-20 Token Balance

crypto_token_balance

Read an ERC-20 token balance for any wallet on Base or Ethereum via public RPC eth_call — no key, no indexer. Returns the raw balance, human-readable amount (decimals applied) and token symbol. Use this when an agent needs to any token balance for any wallet, via public RPC. x402 price $0.02/call (USDC, eip155:8453).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
chainYesChain
tokenYesToken contract
holderYesHolder address

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.8/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 behavioral burden and does reasonably well: it discloses the access mechanism (public RPC eth_call, no key, no indexer), the return shape (raw balance, decimals-applied amount, symbol), and the cost model (x402 $0.02/call, USDC, eip155:8453). It omits rate limits and error behavior, but adds genuine context beyond the schema.

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

Conciseness3/5

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

Purpose is front-loaded, but the third sentence is redundant with the first and grammatically broken ('needs to any token balance'), so it does not fully earn its place. The pricing note at the end is useful but tacked on.

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, so the description compensates by describing the returned fields (raw balance, human-readable amount, symbol), which is the key missing piece an agent needs. All required params are covered by the schema, leaving only minor gaps like polling/rate-limit behavior.

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 three parameters are already documented. The description restates the chain options and the notion of a token/holder but adds no syntax or format guidance (e.g. address format, checksum expectations) beyond the schema.

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 (read) and resource (ERC-20 token balance) with explicit scope (any wallet on Base or Ethereum). This distinguishes it from nearby siblings like crypto_wallet_snapshot or crypto_price without needing to open the 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?

The line 'Use this when an agent needs to any token balance for any wallet, via public RPC' is largely a restatement of the purpose (and is grammatically broken). The 'no key, no indexer' phrase hints at the suitable context, but no alternatives or when-not conditions are named.

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