Skip to main content
Glama

Token info

get_token_info
Read-only

Retrieve an ERC-20 token's name, symbol, decimals, and total supply—including raw and formatted values—by providing its contract address.

Instructions

Get an ERC-20 token's name, symbol, decimals and total supply (raw and formatted).

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_address": "<token_address>"
    },
    "name": "get_token_info"
  }
}

Input Schema

NameRequiredDescriptionDefault
token_addressYesThe contract address of the token.

Output Schema

NameRequiredDescriptionDefault
nameYesToken name
symbolYesToken symbol
addressYesToken contract address
decimalsYesToken decimals
total_supplyYesTotal supply (raw)
total_supply_formattedNoFormatted total supply

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.5.0

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so the safety profile is covered. The description adds that the tool is ERC-20-specific and that supply is returned both raw and formatted, but it says nothing about failure behavior for a non-ERC-20 or invalid address. Modest added value beyond the annotations.

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?

A single front-loaded sentence with the token standard stated first and the returned fields enumerated compactly. No filler, nothing buried at the end.

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?

An output schema exists, so the description need not explain return values, and for a one-parameter read tool this is nearly complete. The remaining gap is edge-case behavior: what happens for a non-ERC-20 or malformed address is unstated.

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?

With one parameter at 100% schema description coverage, the schema already documents token_address fully. The description's only contribution is qualifying it as an ERC-20 contract address, which is a marginal clarification rather than new syntax or constraint detail.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb ('Get') and resource ('an ERC-20 token's') and enumerates the exact fields returned: name, symbol, decimals, total supply in raw and formatted form. An agent can tell this is a metadata reader, distinct from the balance-oriented siblings, though no sibling is named explicitly.

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

Usage Guidelines2/5

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

There is no when-to-use or when-not-to-use guidance, no mention that the input must be an ERC-20 contract rather than a native asset, and no pointer to get_token_balance for balance queries. The intended use is inferable from the field list but never stated.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.