Skip to main content
Glama

Agent Data Tools: Prices and DeFi

Token info, Base ERC-20 facts: check a Base ERC-20 token's supply, owner and risk flags before buying

token
Read-only

Base only (other chains: _token_info). Live on-chain facts for an ERC-20 token on Base: name, symbol, decimals, total supply, owner and whether ownership is renounced, paused state, proxy detection (EIP-1967, minimal proxy) with implementation and admin, and bytecode heuristics for mint, pause, blacklist and fee-setter functions. Use for token due diligence and rug-pull or honeypot screening before a swap. Example: address=0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913. 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": {
      "address": "<address>"
    },
    "name": "token"
  }
}

Input Schema

NameRequiredDescriptionDefault
addressYesToken contract address on Base (0x...)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Goes well past the annotations: it clarifies that the tool 'reads or computes only and changes nothing', which grounds readOnlyHint/destructiveHint, and explains why idempotentHint is false ('each call is charged, so repeats are not free'). Cost mechanics ($0.01/call, first 10 free, failed calls free) and payment paths are surfaced too, which annotations cannot express and which materially affects whether an agent retries.

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?

Dense but front-loaded: chain restriction first, then what is returned, then use case, then pricing. The example address and the pricing/payment sentence each carry real decision value. Slight bloat in the long field enumeration and the trailing payment detail, but nothing is genuinely wasteful.

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?

There is no output schema, and the description compensates by listing the returned facts in detail, including nested concepts like proxy implementation/admin and per-function bytecode heuristics. Combined with the cost, safety profile, and chain scoping, an agent has everything needed to decide to call it and interpret the result.

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?

The single parameter is fully documented in the schema, so the baseline is 3; the description earns a bump by anchoring it with a concrete example address and by making clear the address must be a Base ERC-20 contract specifically, not an address on another chain. It adds no further validation rules (e.g. checksum or non-contract handling), but little more is needed for one string param.

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?

Opens with a specific verb+resource+scope ('Live on-chain facts for an ERC-20 token on Base') and enumerates exactly what is returned: name, symbol, decimals, supply, owner/renouncement, paused state, proxy detection, and bytecode heuristics. It also fences off other chains explicitly, so an agent can distinguish it from the chain-suffixed siblings 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 Guidelines4/5

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

States the intended use case directly ('token due diligence and rug-pull or honeypot screening before a swap') and names where to go for other chains ('other chains: <chain>_token_info'), which is a real routing signal. It stops short of explicit exclusions, e.g. that this is not for balances, allowances, or transfer history (all of which exist as siblings), so the when-not-to-use case is left implicit.

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