Skip to main content
Glama

ERC-20 token info on Base, Ethereum, Arbitrum or Monad: name, symbol, decimals, total supply, optional holder balance and allowance

base_token_info
Read-onlyIdempotent

Use when an agent needs an ERC-20's basics before quoting, transferring or approving it. Input: address; chain (base default, ethereum, arbitrum, monad); optional holder (balance, share of supply) and spender (allowance, flags unlimited). Output: JSON block+time, name, symbol, decimals, totalSupply, known issuer if curated. Name/symbol are self-reported. EOA or non-ERC-20: 4xx, not charged. Use instead: base_token_risk for safety signals; sol_token_info for Solana mints. Example: ?address=0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 Price: $0.002 per call, paid in USDC (Base, Monad, Polygon, Arbitrum or Solana) via x402.

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": "base_token_info"
  }
}

Input Schema

NameRequiredDescriptionDefault
chainNoEVM chain (default base)
holderNoOptional address whose token balance and share of total supply to include
addressYesERC-20 token contract on the chosen chain (0x + 40 hex; mixed case must be a valid EIP-55 checksum). EOA → 400, non-ERC-20 contract → 422 (not charged)
spenderNoOptional spender; with holder, adds allowance(holder, spender). Needs holder.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • removedInput schema / additionalProperties
      Removed value: -false
  2. Changed1 schema field changed
    • addedInput schema / additionalProperties
      Added value: +false
  3. Changed1 schema field changed
    • removedInput schema / additionalProperties
      Removed value: -false
  4. Changed2 schema fields changed
    • changedInput schema / properties / address / description
      Previous value: -"ERC-20 token contract on Base mainnet (0x + 40 hex; mixed case must be a valid EIP-55 checksum). EOA → 400, non-ERC-20 contract → 422 (not charged)"New value: +"ERC-20 token contract on the chosen chain (0x + 40 hex; mixed case must be a valid EIP-55 checksum). EOA → 400, non-ERC-20 contract → 422 (not charged)"
    • addedInput schema / properties / chain
      Added value: +{
      +  "description": "EVM chain (default base)",
      +  "type": "string"
      +}
  5. Added

TDQS

A4.6/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 and open-world, so the safety profile is covered. The description still adds real value beyond that: name/symbol are self-reported (a trust caveat), EOA/non-ERC-20 inputs return 4xx and are not charged, and the call costs $0.002 via x402. It does not discuss rate limits or caching, which keeps it from a 5.

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?

Front-loaded with the trigger, then inputs, outputs, error behavior, alternatives and pricing in tight clauses with no filler. The chain enumeration appears in both title and description and the example address is slightly extraneous, but density is high enough that little is wasted.

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?

No output schema exists, yet the description enumerates the returned fields (block+time, name, symbol, decimals, totalSupply, known issuer), plus error semantics and cost. For a 4-parameter read tool with annotations already covering safety, nothing an agent needs to call it correctly is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds semantics the schema only hints at: chain defaults to base, holder yields balance plus share of supply, and spender adds allowance with an unlimited flag and requires holder. That dependency note is genuinely useful beyond the schema text.

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 (ERC-20 token info: name, symbol, decimals, total supply, optional balance/allowance) and scopes it to named chains with base as default. It explicitly distinguishes itself from base_token_risk (safety signals) and sol_token_info (Solana mints), so an agent can identify it without opening the 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 before quoting, transferring or approving a token. It names two alternatives and the condition that selects them (safety signals vs. Solana), which is exactly the when/when-not routing an agent needs.

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