Skip to main content
Glama

optimism_token_approvals

Use when: which token approvals on this Optimism wallet should I revoke? Check a Optimism wallet's ERC-20 approvals: allowances for 8 major tokens (USDC, USDC.e, USDT, USDT0...) to common spenders (Permit2, Uniswap Universal Router v4, Uniswap Universal Router, Uniswap SwapRouter02...); 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": "optimism_token_approvals"
  }
}

Input Schema

NameRequiredDescriptionDefault
addressYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.6/5.0
Behavior3/5

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

No annotations exist, so the description carries the full burden. It discloses useful scope limits (only 8 major tokens, only common spenders such as Permit2 and Uniswap routers), notes that unlimited approvals are flagged, and states a $0.005 cost, which is genuinely helpful. It never explicitly says the operation is read-only or that the results are a fixed snapshot of that token/spender list rather than every possible approval.

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 trigger question, then scope, then cost, so the most decision-relevant information comes first. The semicolon-chained enumeration of tokens and spenders is information-dense without padding, though the parenthetical lists with trailing ellipses read as slightly unfinished.

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 read tool with no output schema, it covers chain, coverage limits, the unlimited-approval flag, and price, which is enough for an agent to call it correctly. The main residual gap is what the response actually looks like (per-approval records vs. a summary), which the description only implies.

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 description coverage is 0%, so the description should compensate. It does convey that the single parameter is the Optimism wallet address being inspected, but says nothing about format, checksum, or that the address must be on Optimism specifically, leaving the regex pattern in the schema to do that work.

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 and resource: check a Optimism wallet's ERC-20 approvals, covering allowances for named tokens to named spenders, and flags unlimited approvals. The chain is explicit, which separates it from the other per-chain *_token_approvals siblings, but it never distinguishes itself from approval_sweep_all_chains or optimism_address_inspect.

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 leading 'Use when: which token approvals on this Optimism wallet should I revoke?' gives a concrete trigger an agent can match against user intent. It offers no when-not guidance and does not point at approval_sweep_all_chains as the multi-chain alternative, so the routing decision is only partly supported.

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