Skip to main content
Glama

base_token_approvals

Use when: which token approvals on this Base wallet should I revoke? Check a Base wallet's ERC-20 approvals: allowances for 8 major tokens (USDC, WETH, USDbC, DAI...) to common spenders (Permit2, Uniswap Universal Router, Uniswap SwapRouter02, Aerodrome Router...); flags unlimited approvals. Costs $0.005.

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

Input Schema

NameRequiredDescriptionDefault
addressYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/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 meaningful work: it discloses the fixed token set (8 major tokens) and fixed spender set, which warns the agent about false negatives, and it states the $0.005 cost plus the 'flags unlimited approvals' behavior. It omits rate limits, permission/auth requirements, and whether results are read-only recommendations versus raw allowance data.

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?

Front-loaded trigger clause followed by one dense sentence that covers coverage, target spenders, flagging, and price. No filler and nothing buried at the end.

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 one-parameter, no-output-schema read tool, it covers what is scanned, the coverage limitation, the unlimited-approval flag, and cost — enough to invoke correctly and interpret results. What's missing is the response shape (raw allowances vs. revoke recommendations) and whether the known-spender list bounds results.

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?

The single parameter is unnamed in the description, but 'a Base wallet's' / 'this Base wallet' clearly implies the input is the wallet address, and the schema's regex pattern already enforces 0x + 40 hex format. Nothing beyond that implication is added, so the schema does the real work.

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 and resource ('Check a Base wallet's ERC-20 approvals') plus the concrete scope: allowances across 8 named tokens to named spenders, with unlimited approvals flagged. The chain qualifier 'Base' immediately separates it from the ethereum_/arbitrum_/polygon_token_approvals siblings without opening a 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?

The lead 'Use when: which token approvals on this Base wallet should I revoke?' gives an explicit user-intent trigger, which is exactly the decision context an agent needs. It stops short of naming an alternative (e.g. approval_sweep_all_chains for multi-chain coverage) or stating when not to use it.

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