Skip to main content
Glama

Agent Data Hub

ERC-20 token info

chain_token
Read-onlyIdempotent

Read an ERC-20 token contract on any major EVM chain: name, symbol, decimals and total supply (human-readable and raw). Errors (not charged) if the address is not a token contract. Use to verify a token before trading or paying. Price: $0.002 per call (USDC on Base via x402); the first 10 calls per day are free.

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

Input Schema

NameRequiredDescriptionDefault
chainNoChain (default base)
addressYesToken contract address 0x…

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare read-only, idempotent, non-destructive, open-world behavior, and the description adds genuinely new context: failed lookups error without charge, and the cost model is $0.002 per call with 10 free calls per day via x402. It does not explain response shape beyond the field list, but with no output schema that is the main remaining gap.

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?

Three compact sentences: capability and return fields first, then the error condition, then pricing. No filler, and the most decision-relevant facts (what you get, when it fails, what it costs) are front-loaded.

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 two-parameter read tool with no output schema, the description covers return fields, fallback default chain, failure mode, and cost. The only material omission is how unreachable or proxy/unverified contracts behave, and whether the human-readable supply depends on the contract's decimals.

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 schema itself documents the chain enum with its 'default base' behavior and the 0x address format. The description adds only the constraint that the address must be a token contract (implied by the error clause), so the schema is doing most of the semantic work and baseline 3 applies.

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?

Uses a specific verb and resource ('Read an ERC-20 token contract') and enumerates exactly what is returned: name, symbol, decimals, and total supply in both human-readable and raw form. This clearly separates it from balance/transfer siblings such as chain_erc20_balance or chain_erc20_transfers, even though chain_total_supply partially overlaps.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

'Use to verify a token before trading or paying' gives a concrete decision context, and the error condition (non-token address, not charged) tells the agent how failure behaves. It stops short of naming alternatives, so an agent comparing this to chain_total_supply or chain_contract gets no explicit routing rule.

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