Skip to main content
Glama

Crypto & Web Data API for Agents

Balance of one ERC-20 token for one wallet (cheapest balance check)

evm_token_balance
Read-only

Balance of one ERC-20 token for one wallet (cheapest balance check). Raw and human-readable balance of any ERC-20 token for a wallet on Base, Ethereum, Arbitrum, BSC, Polygon, Optimism or Avalanche, with the token symbol and decimals. Use to confirm a deposit or check funds before paying. Cached 10 s. Price $0.005 per call (x402: USDC on Base or Solana).

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": {
      "token": "<token>",
      "address": "<address>"
    },
    "name": "evm_token_balance"
  }
}

Input Schema

NameRequiredDescriptionDefault
txNoAlternative to the X-Payment-Tx header
chainNobase
tokenYes
addressYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

The annotations already cover the safety profile with readOnlyHint and openWorldHint, and the description adds real context beyond them: a 10-second cache window, $0.005 per call, and the x402 payment requirement (USDC on Base or Solana). It also discloses what is returned, namely raw and human-readable amounts plus symbol and decimals. Gaps remain: it does not state error behavior for unsupported tokens or how to format the chain value.

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 first sentence front-loads what the tool does and its cost advantage, and the remaining sentences add chains, packaging, and pricing without padding. The phrase 'cheapest balance check' appears twice, once in the title and once in the description, which is minor redundancy. Overall it is dense but scannable.

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?

For a read-only, four-parameter, no-output-schema tool, the description covers the essentials: what is measured, on which chains, what the response contains, cache duration, and payment mechanics. The missing pieces are the chain argument encoding and edge cases such as unsupported tokens or wrong-chain addresses, which keeps it below a 5.

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 only 25%, because only the tx header alternative is documented, while chain, token, and address are bare patterns with defaults. The description partly compensates by enumerating the seven supported networks, which explains what chain accepts, and by naming symbol and decimals as outputs. However, it never says which chain value format to pass (slug, id, or name) or that token and address must be 0x-prefixed contract and wallet addresses.

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 names a concrete verb and resource: it returns the raw and human-readable balance of one ERC-20 token for one wallet, and it lists the supported chains. It distinguishes this from the sibling evm_balance only indirectly: that tool covers the native asset, while this one covers a single token. Neither sibling is named, so the agent still has to infer the split.

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?

It gives two concrete use cases, namely confirming a deposit and checking funds before paying, which is better than nothing. However, it never says when not to use it or when to prefer evm_balance for native ETH, wallet for multi-token portfolio views, or price or token_price for valuations, leaving the alternatives to inference.

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