Skip to main content
Glama

chain_approvals_scan

Read-only

Token approval risk scan (revoke helper) — Scan an EVM wallet for risky ERC-20 approvals without an indexer: one Multicall3 read checks the chain's major tokens (USDC, USDT, DAI, WETH, WBTC/cbBTC and more) against widely used spenders (Permit2, Uniswap routers, 1inch, 0x, CoW, Aave, Aerodrome, Velodrome, QuickSwap, OpenSea conduit) on base, ethereum, arbitrum, optimism or polygon. Returns each live approval with allowance (unlimited flag), current balance, amount at risk, risk level (HIGH = unlimited approval on a held token, MEDIUM = capped approval on a held token, LOW = dormant), an overall verdict (HIGH / REVIEW / LOW / CLEAN) and a ready revoke transaction (approve(spender, 0)) for each. Optional tokens and spenders (comma lists of up to 10 addresses each) add your own. Does not scan event history, so approvals to unlisted contracts are not shown. Price: $0.004 USDC (Base, via 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": {
      "chain": "<chain>",
      "address": "<address>"
    },
    "name": "chain_approvals_scan"
  }
}

Input Schema

NameRequiredDescriptionDefault
chainYesethereum
addressYes0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare readOnly/openWorld/non-destructive, but the description adds substantial context beyond them: a single Multicall3 read with no indexer, the exact risk rubric (HIGH unlimited on held token, MEDIUM capped on held token, LOW dormant), the overall verdict values, and a ready-to-submit approve(spender, 0) revoke tx per finding.

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 the core action and risk outcome; the long parenthetical roster of tokens and spenders is the one passage that could be trimmed. Everything else (limits, pricing, return shape) carries weight, so no sentence is wasted.

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?

No output schema exists, and the description fully compensates by describing the return payload (allowance, unlimited flag, balance, amount at risk, risk level, verdict, revoke tx). It also discloses the $0.004 USDC x402 cost and the non-indexer coverage limitation, which are the two facts an agent needs before committing.

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% formally, but the schema descriptions are only bare examples ('ethereum', a sample address) with no enum, and the description supplies the actual supported chain set (base, ethereum, arbitrum, optimism, polygon) plus semantics for the optional tokens/spenders lists (comma lists, up to 10 addresses each). That last part slightly undercuts it, since those two optional params do not appear in the input schema at all.

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+scope: 'Scan an EVM wallet for risky ERC-20 approvals without an indexer'. It also implicitly separates itself from sibling chain_nft_approvals by naming ERC-20 and from chain_allowance by scanning 'the chain's major tokens' against 'widely used spenders' rather than one pair.

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 clear context for use ('revoke helper', risky approvals on five named chains) and states a real exclusion: 'Does not scan event history, so approvals to unlisted contracts are not shown.' It never names a specific alternative tool to use instead, so it stops short of a 5.

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