Skip to main content
Glama

chain_erc20_balance

Read-only

ERC20 token balance — Balance of any ERC20 token for a wallet or contract, with symbol, name, decimals and human-readable amount (address=, token=). Chains: base (default), ethereum, arbitrum, optimism, polygon via chain=. Price: $0.002 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>",
      "token": "<token>"
    },
    "name": "chain_erc20_balance"
  }
}

Input Schema

NameRequiredDescriptionDefault
chainYesbase
tokenYes0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913
addressYes0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already cover safety (readOnly, non-destructive, openWorld), but the description adds substantive behavioral facts: the return payload is enriched with symbol, name, decimals and a human-readable amount, and the call is a paid operation costing $0.002 USDC via x402 on Base. That payment requirement is exactly the kind of thing annotations cannot convey. It stops short of describing failure behavior for unsupported chains or unknown tokens.

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?

One dense sentence plus two short clauses, front-loaded with the core purpose and using compact notation for parameters and chains. Slightly telegraphic, but nearly every phrase carries information an agent needs.

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?

For a three-parameter read tool with no output schema, it covers the resource, the supported chains, the parameter meanings, the shape of the returned data, and the paid-access model. Nothing essential to invoking it correctly is missing, and no output schema exists that would need separate explanation.

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

Parameters4/5

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

Schema coverage is 100%, but the schema's parameter descriptions are only placeholder example values ('base', a sample 0x address), so real meaning comes from the description: address is a wallet or contract, token is the ERC20 token contract, and chain accepts one of five named values. It adds genuine semantics over the schema, though it does not explicitly label token as a contract address and its 'base (default)' claim sits awkwardly against chain being a required field.

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?

The description states a specific verb and resource — it reads the balance of any ERC20 token for a wallet or contract — and enumerates the returned fields. It is distinguishable from native-coin or NFT balance siblings by name, though it never names them explicitly.

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 rather than stated: you reach for it when you need an ERC20 balance on one of five named chains. It never states when to prefer a sibling (e.g. native or ERC1155 balances) or any prerequisites or exclusions.

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