Skip to main content
Glama

Agent Data Tools: Prices and DeFi

Token supply, total supply: any ERC-20

token_supply
Read-only

Total supply of any ERC-20 token on Ethereum, Base, Arbitrum, Optimism or Polygon, read live from the contract: raw and decimal-adjusted supply, decimals, name and symbol. Give a 0x address or a known ticker (USDC, USDT, WETH, DAI…). Use to check a token's circulating maximum or compare supply across chains. Example: token=USDC. 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": "token_supply"
  }
}

Input Schema

NameRequiredDescriptionDefault
chainNoethereum (default), base, arbitrum, optimism or polygon
tokenYesToken 0x address or ticker

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=true, so the description's 'reads or computes only and changes nothing' largely restates that. It does add genuinely new context: $0.01/call via x402 USDC or card key, first 10 free, failed calls free, and that repeats are billed, which explains the idempotentHint=false flag. Return format and latency are still unstated, so it sits at solid-but-not-rich 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 dense paragraph, front-loaded with the resource and scope, then inputs, then use case, then pricing. Every sentence carries a distinct fact (chains, outputs, input forms, cost) with no filler.

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?

Complete for a simple two-parameter read with no output schema: inputs, returned fields, freshness, cost and auth are all covered. The phrase 'circulating maximum' blurs circulating supply with max supply, which is a slight imprecision in a tool that returns total supply.

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 both parameters are already documented. The description adds marginally: a ticker allowlist (USDC, USDT, WETH, DAI…) and a worked example (token=USDC), but no format edge cases such as checksum casing or how tickers resolve on non-default chains. Baseline 3 applies when the schema carries the load.

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+resource: total supply of any ERC-20 token, read live from the contract, across five named chains. It also enumerates exactly what comes back (raw and decimal-adjusted supply, decimals, name, symbol), which cleanly separates it from token_info and the per-chain token_balance tools.

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 concrete when-to-use framing: 'check a token's circulating maximum or compare supply across chains', plus an example call. It does not explicitly say when NOT to use it or route to siblings like token_info or price_token, so it stops short of full alternative guidance.

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