Skip to main content
Glama

token approvals

token_approvals
Read-only

Every live ERC-20 approval a wallet has granted on Ethereum, Base, Arbitrum, Optimism or Polygon: token and symbol, spender, whether the spender is a contract or a plain wallet (high risk), unlimited vs capped amount, the block and tx that set it, and a risk label per approval, plus the revoke calldata recipe. The audit to run before and after interacting with any new dapp. $0.006. Costs $0.006 USDC per call (x402).

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": {
      "wallet": "<wallet>"
    },
    "name": "token_approvals"
  }
}

Input Schema

NameRequiredDescriptionDefault
chainNobase (default), ethereum, arbitrum, optimism, polygon
walletYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so safety is established. The description adds meaningful context beyond that: supported chains, a per-approval risk framing ('plain wallet (high risk)'), the revoke calldata payload, and the x402 payment requirement ($0.006 USDC per call) that an agent must know before invoking.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the resource and well structured, but it wastes a sentence by stating pricing twice ('$0.006.' followed by 'Costs $0.006 USDC per call (x402).'). The output-field enumeration is long but earns its place since there is no output schema.

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?

For a read-only tool with annotations covering safety and no output schema, the description thoroughly documents return contents, supported chains, and cost. It falls slightly short only on the wallet parameter's expected format.

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 50%: the chain parameter is described in the schema (with default base), but wallet is bare. The description lists the five supported chains, which loosely maps to the chain enum values, but adds nothing on the wallet input format. Baseline 3 applies since the schema carries half the burden and the description only partially compensates.

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: it enumerates every live ERC-20 approval a wallet has granted, and names the exact chains. It also specifies the returned fields (token, spender, contract-vs-wallet, unlimited-vs-capped, block/tx, risk label, revoke calldata), so an agent can distinguish it from siblings like token_scan or report_wallet.

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?

The line 'The audit to run before and after interacting with any new dapp' gives a clear situation for use. However, it does not name alternative tools or a when-not-to-use condition relative to the many sibling token/wallet tools, so it stops short of full routing 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