Skip to main content
Glama

EVM ERC-20 balance

evm_erc20_balance
Read-onlyIdempotent

Use when you need one ERC-20 balance for one wallet: balanceOf, decimals and symbol read in a single multicall on Base, Ethereum, Arbitrum, Polygon or Optimism, with raw units, a decimal amount. Returns the paid x402 request for your input (GET /evm/erc20-balance, $0.002 per call; schema linked). Call that URL with an x402 or MPP client to get the data. Bad input is refused before any charge. One token on one chain; for several tokens or chains at once use wallet_balance. First call each day returns the data itself, free; later calls return the paid request.

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>",
      "token": "<token>"
    },
    "name": "evm_erc20_balance"
  }
}

Input Schema

NameRequiredDescriptionDefault
chainNoChain where the token is deployed; default basebase
tokenYesERC-20 contract address on the chosen chain; a non-token address is refused before any charge
addressYesWallet address (0x + 40 hex)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / chain / description
      Previous value: -"Chain; default base"New value: +"Chain where the token is deployed; default base"
    • changedInput schema / properties / token / description
      Previous value: -"ERC-20 contract address"New value: +"ERC-20 contract address on the chosen chain; a non-token address is refused before any charge"
  2. Added

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only cover the safe-read profile (readOnly, idempotent, openWorld), so the description must carry the operational behavior, and it does: the call does not return data directly but returns a paid x402 request for GET /evm/erc20-balance, which the caller must replay with an x402 or MPP client. It also discloses pricing, that bad input is refused before any charge, and the first-call-per-day free quota, none of which is inferable from annotations.

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 payload-first structure is good: trigger, scope, output, then the mechanics of the paid request. It is slightly wasteful, though, since the paid-request flow and the free-first-call rule are each effectively stated twice ('Returns the paid x402 request...' plus 'Call that URL with an x402 or MPP client', and again in the final sentence).

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, the description covers what an agent needs: what is fetched (balanceOf, decimals, symbol), what comes back (raw units plus a decimal amount, or an x402 payment request), what invalid token addresses trigger, and the cost model. There is no unexplained gap that would cause a mis-call.

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 description adds little beyond it: the chain list and 'ERC-20 contract address on the chosen chain' restate enum and pattern constraints already documented. The mention of raw units and a decimal amount describes output, not parameter meaning, so the baseline 3 is correct.

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 and resource: reads balanceOf, decimals and symbol for one ERC-20 on one wallet via a single multicall across five named chains. It explicitly carves out the sibling boundary, 'One token on one chain; for several tokens or chains at once use wallet_balance', so an agent can separate it from wallet_balance and wallet_balance_batch without opening a 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 trigger ('Use when you need one ERC-20 balance for one wallet') and names the alternative plus the condition that selects it, 'for several tokens or chains at once use wallet_balance'. It also sets cost expectations up front ($0.002 per call, first call each day free), which affects whether an agent should call it at all.

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