Skip to main content
Glama

ERC-20 Token Balance Snapshot

erc20_balance
Read-onlyIdempotent

Raw and formatted ERC-20 balanceOf for an address on Base, with decimals read from the token. Result carries a signed receipt.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
addressYesHolder EVM address, 0x-prefixed.
decimalsNoToken decimals override (optional).
token_addressYesERC-20 token contract address, 0x-prefixed.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
toolNo
scopeNo
validYes
reasonNo
addressYes
balanceNo
decimalsNo
retryableNo
balance_rawNo
token_addressYes
decimals_sourceNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and openWorldHint, so the safety profile is covered. The description adds real behavioral context beyond that: decimals are read on-chain from the token, and the result carries a signed receipt — a non-obvious output trait.

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?

A single tight sentence that front-loads the operation, the resource, and the chain, then appends the receipt trait. No filler or redundancy.

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?

An output schema exists, so return values need no elaboration, and annotations cover safety and idempotency. Chain scoping and the signed-receipt output are disclosed; minor gaps remain around failure behavior for invalid or non-contract token addresses.

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%, so all three parameters are already documented, making 3 the baseline. The description adds marginal value by explaining that decimals are read from the token, which contextualizes the optional decimals override, but gives no syntax or format detail beyond the schema.

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?

States a specific verb and resource (balanceOf for an ERC-20 token), pins the chain to Base, and clarifies that both raw and formatted values are returned. It does not explicitly differentiate itself from the sibling balance_check, so it falls just short of a 5.

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 Base/ERC-20 scoping implies when the tool applies, but there is no explicit when-to-use, when-not, or named alternative (e.g., balance_check for native/other-chain balances). Usage must be inferred from the scope statement.

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.