Skip to main content
Glama

chain_token_identity

Read-only

$0.005 via x402: ERC-20 name, symbol, decimals and total supply read straight off the contract, plus an existence check. Because it reads the contract and not an indexer it answers for tokens minted MINUTES ago and on chains no explorer covers — the gap that makes indexer-backed lookups return nothing for a fresh launch. Legacy bytes32 name/symbol decoded; a missing decimals() is flagged, not silently assumed. The first read to make on an unknown contract.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "chain_token_identity"
  }
}

Input Schema

NameRequiredDescriptionDefault
chainNobase|ethereum|optimism|arbitrum|polygon|gnosis (default base)
tokenNoERC-20 contract address (0x...)
x_paymentNosigned x402 payment payload (the X-PAYMENT header value) for the terms the first call returns; omit it to get the price and terms

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / x_payment / description
      Added value: +"signed x402 payment payload (the X-PAYMENT header value) for the terms the first call returns; omit it to get the price and terms"
  2. Added

TDQS

A4.4/5.0
Behavior5/5

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

Goes well beyond the readOnlyHint/openWorldHint annotations: discloses the $0.005 x402 cost and payment handshake, states data provenance (contract storage, not indexer), and reports edge-case handling such as legacy bytes32 name/symbol decoding and flagging a missing decimals() rather than assuming a default.

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-loads pricing and the core operation, then layers rationale and edge cases. Every sentence carries information, though the indexer-gap clause is slightly promotional in tone and could be trimmed.

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?

With no output schema, the description carries the return-shape burden and does so: it enumerates the returned fields (name, symbol, decimals, total supply, existence) and describes failure handling. An agent has everything needed to decide and call it.

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 chain, token and x_payment are already documented in the schema. The description's note about omitting x_payment to obtain terms restates what the schema already says, adding no new parameter-level detail such as address format or multi-chain behavior nuances.

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 precise verb and resource: ERC-20 name, symbol, decimals and total supply read directly from the contract, plus an existence check. It also implicitly distinguishes itself from indexer-backed siblings (dex_token_data) by explaining it reads the contract rather than an indexer.

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?

Gives a clear selection rule — 'the first read to make on an unknown contract' — and explains the scenario (freshly minted tokens, chains without explorer coverage) where indexer-backed lookups fail. It also notes that omitting x_payment returns price and terms, though it does not explicitly name which sibling to use when an indexer does have the data.

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.