Skip to main content
Glama

approval_sweep_all_chains

Use when: which approvals on this wallet should I revoke, on every EVM chain? Sweeps a wallet on Base, Ethereum, BNB, Arbitrum, Optimism, Polygon and Avalanche for live ERC-20 allowances and NFT setApprovalForAll approvals (GoPlus + explorer logs, re-read onchain), ranks them by risk (unlimited, unknown spender, unverified or non-contract spender, flagged) and returns a ready-to-sign revoke tx (to, data, chainId, value 0) for each risky one. Per-chain status; partial results if a chain fails. Costs $0.02.

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": "approval_sweep_all_chains"
  }
}

Input Schema

NameRequiredDescriptionDefault
addressYes

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?

With no annotations, the description carries the full burden and does so thoroughly: it names the data sources (GoPlus + explorer logs, re-read onchain), the exact ranking criteria (unlimited, unknown spender, unverified or non-contract spender, flagged), the return payload shape (to, data, chainId, value 0), and failure semantics (per-chain status, partial results if a chain fails). It also discloses cost ($0.02), which an agent needs before invoking a paid tool.

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 usage trigger, then flows into scope, method, ranking, output, failure behavior, and cost in one dense paragraph. Every clause adds information, though the single run-on sentence makes the ranking and output details slightly harder to scan than a short structured list would.

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?

For a one-parameter tool with no output schema and no annotations, the description covers everything an agent needs: what is scanned, how results are ordered, what the response contains, how partial failures surface, and the price. Nothing material about invoking it correctly is left undocumented.

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 0%, so the description must carry the meaning of the single parameter, and phrases like 'Sweeps a wallet' and 'approvals on this wallet' make clear it is a wallet address on the supported EVM chains. The regex constraint in the schema supplies the format, so the description's implied semantics are sufficient, though it never explicitly says 'address = the wallet to sweep'.

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 chain (sweeps, ranks, returns) over a specific resource (live ERC-20 allowances and NFT setApprovalForAll approvals) and enumerates the seven chains covered. It is clearly distinguishable from the many per-chain siblings such as base_token_approvals or arbitrum_token_approvals, since it explicitly claims cross-chain scope.

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?

Opens with an explicit trigger phrase ('Use when: which approvals on this wallet should I revoke, on every EVM chain?') that tells the agent exactly what user intent selects this tool. The 'on every EVM chain' framing implicitly routes single-chain questions to the per-chain siblings, but it never names them or states an explicit exclusion.

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