Skip to main content
Glama

ERC-20 token + balance

erc20_info
Read-onlyIdempotent

Name, symbol, decimals, total supply and USD price of any ERC-20 — plus a wallet's balance of it — read on chain. Direct contract calls (name/symbol/decimals/totalSupply/balanceOf) on the chosen EVM chain, priced via DefiLlama. Works for any token, listed or not. Price: $0.002 per call (10 free/day).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
chainNoEVM chain: ethereum, base, arbitrum, optimism, polygon, bsc, avalanche, linea, blast, scroll, gnosis, sonic, unichain, mantle, berachain, hyperevm, monadethereum
tokenYes
walletNooptional holder

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 declare readOnlyHint=true, idempotentHint=true, and destructiveHint=false, so the read-only nature is covered. The description adds valuable behavioral context: it performs direct contract calls on the chosen EVM chain, prices via DefiLlama, works for any token (no whitelist), and discloses cost ($0.002 per call, 10 free/day). This exceeds annotation coverage without contradicting it.

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?

Two sentences front-load the outputs and wallet balance, then explain the mechanism and pricing. Every sentence earns its place; no fluff. The structure is efficient, though pricing details are placed secondarily rather than in a dedicated section. Still appropriately concise.

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 tool with 3 parameters and no output schema, the description covers purpose, method, scope, and cost. It does not specify return format (e.g., decimals vs raw balance) or potential errors, but these are minor given the clear list of outputs. Annotations cover safety, so the overall context is sufficient.

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 67%: token has no description (only pattern), chain has enum description, wallet says 'optional holder'. The description clarifies that the wallet parameter provides a balance, and that chain determines the EVM network, but it does not elaborate on token semantics beyond the pattern. It adds some value but leaves token meaning implicit.

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?

The description clearly states it reads name, symbol, decimals, total supply, USD price, and optional wallet balance of any ERC-20 token. It specifies the verb 'read' and the resource, and lists the exact fields. This distinguishes it from siblings like crypto_price (price only) and wallet_holdings (all holdings), making its purpose unmistakable.

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 description notes it works for any token, listed or not, and that it reads on chain with direct contract calls. However, it does not explicitly contrast with alternatives like crypto_price or wallet_holdings, nor does it state when NOT to use it. The context is clear but exclusionary guidance is absent.

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