Skip to main content
Glama

Optimism token info, ERC-20

op_token_info
Read-only

Look up the name, symbol, decimals and total supply of an ERC-20 token contract on Optimism, live from the contract. Use to identify an unknown token address or to format raw amounts; for a holder's balance use op_token_balance. Input is a ticker such as USDC or WETH or the token's 0x contract address; an address that is not an ERC-20 contract returns 422, uncharged. Example: token=0x0b2C639c533813f4Aa9D7837CAf62653d097Ff85. Price $0.01/call via x402 USDC or a card key (/credits), first 10 free; failed calls free. Reads or computes only and changes nothing; each call is charged, so repeats are not 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": {
      "token": "<token>"
    },
    "name": "op_token_info"
  }
}

Input Schema

NameRequiredDescriptionDefault
tokenYesToken: a ticker such as USDC or WETH, or the 0x ERC-20 contract address

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / token / description
      Previous value: -"0x ERC-20 token contract address"New value: +"Token: a ticker such as USDC or WETH, or the 0x ERC-20 contract address"
  2. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already cover the safety profile (readOnly=true, destructive=false, openWorld=true), but the description goes further: non-ERC-20 input returns 422 and is uncharged, pricing is $0.01/call with the first 10 free, failed calls are free, and repeats are charged. The 'repeats are not free' line is consistent with idempotentHint=false, and the explicit 'changes nothing' confirms readOnly 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?

Front-loaded with purpose, then alternative, then parameter format, then example, then pricing — a sensible order with no wasted sentences. Minor redundancy: 'reads or computes only and changes nothing' restates what readOnlyHint/destructiveHint already declare, though the charged-per-call clause that follows is genuinely new information.

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?

One required parameter, no output schema, and the description still enumerates the returned fields (name, symbol, decimals, total supply), the input format, an example, the failure mode, and the cost model. Nothing an agent needs to call this correctly or interpret the result 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 ticker-or-address duality is already documented and the baseline is 3. The description still earns a small lift by giving a concrete checksummed address example (0x0b2C...f85) and by tying the parameter to an error outcome (422) for addresses that are not ERC-20 contracts.

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 ('look up the name, symbol, decimals and total supply of an ERC-20 token contract on Optimism, live from the contract'), so the returned fields and the data source are both explicit. It also distinguishes itself from the sibling read tool by naming op_token_balance for balances.

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?

Gives two positive use cases ('identify an unknown token address', 'format raw amounts') and one explicit exclusion with the alternative to use instead ('for a holder's balance use op_token_balance'). The condition that selects the sibling is unambiguous.

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