Skip to main content
Glama

chain_allowance_batch

Read-only

Token approval audit (batch) — Check up to 25 ERC-20 approvals for one wallet in a single call: pairs = token:spender list (token symbol or address). Returns each allowance, unlimited flags, known-spender labels (Permit2, Uniswap, 1inch, 0x) and a verdict CLEAN/REVIEW/RISKY for wallet-security agents. Chains: base, ethereum, arbitrum, optimism, polygon. 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>",
      "owner": "<owner>",
      "pairs": "<pairs>"
    },
    "name": "chain_allowance_batch"
  }
}

Input Schema

NameRequiredDescriptionDefault
chainYesbase
ownerYes0x849D52316331967b6fF1198e5E32A0eB168D039d
pairsYesUSDC:0x000000000022D473030F116dDEE9F6B43aC78BA3

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 cover read-only, non-destructive, open-world, but the description adds genuinely new behavior: a 25-pair ceiling, the exact return contents (allowance values, unlimited flags, spender labels, CLEAN/REVIEW/RISKY verdict), and a paid-call requirement ($0.004 USDC via x402) that materially affects invocation. It does not describe failure modes (e.g., import of unsupported tokens or partial results), which keeps it short of a 5.

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 front-loaded clause states what it does, then compactly layers input format, return values, chain support, and pricing. No sentence is redundant and the ordering prioritizes the task before the commercial detail.

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, so the description must explain returns — and it does, listing allowance values, unlimited flags, spender labels, and the aggregate verdict. Given a 3-parameter, single-call tool with full annotation and schema coverage, nothing an agent needs to call it correctly is missing.

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 descriptions are 100% covered but are only bare examples, so the description carries real weight: it defines 'pairs' as a token:spender list accepting token symbol or address, scopes 'owner' to a single wallet, and enumerates the five valid chains beyond the schema's 'base' example. That is meaning the schema does not convey.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb+resource ('Check up to 25 ERC-20 approvals for one wallet') with a hard batch limit of 25, which implicitly separates it from the single-approval sibling chain_allowance. It never names the sibling explicitly, so the routing signal is inferred from the '(batch)' label rather than spelled out.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

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

Gives the audience ('wallet-security agents') and the supported chain list, which frames when the tool is appropriate. It offers no exclusions and no pointer to chain_allowance for a single approval, so an agent must infer the batch-vs-single decision from the title alone.

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