Skip to main content
Glama

Agent Data API

optimism_erc20_allowance

ERC-20 allowance on OP Mainnet: how much a spender may transfer from an owner, whether the approval is effectively unlimited, the owner's balance, and the amount the spender could move right now. Costs $0.005 USDC on Base via x402.

Input Schema

NameRequiredDescriptionDefault
ownerYesAddress that granted the approval
tokenYesERC-20 contract on OP Mainnet
spenderYesAddress allowed to spend

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations at all, the description does real work: it discloses that the call is a read, that it returns an 'effectively unlimited' determination and a balance in addition to the raw allowance, and it flags the payment model ($0.005 USDC on Base via x402), which is critical operational context an agent must know before invoking. It stops short of describing failure behavior for non-contract tokens or malformed addresses.

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?

Two sentences, zero filler: the return semantics are front-loaded and the cost note is short and actionable. The first sentence is a dense four-item list, but every item earns its place.

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 simple 3-parameter read with no output schema, the description supplies the return shape and the payment requirement, which is what an agent needs to decide and call. Minor gaps: it does not explain how amounts are formatted (raw base units vs decimals) or how the 'spendable right now' figure is derived.

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 100% and all three parameters already carry descriptions ('Address that granted the approval', 'ERC-20 contract on OP Mainnet', 'Address allowed to spend'). The description adds no syntax, format, or role nuance beyond that, so the baseline 3 applies.

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 the specific resource (ERC-20 allowance), the exact chain (OP Mainnet), and enumerates the returned facts: allowance amount, unlimited-approval flag, owner balance, and currently spendable amount. The chain qualifier cleanly separates it from eth_/base_/arbitrum_/polygon_erc20_allowance siblings.

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?

The chain scoping implicitly tells the agent to pick this variant for OP Mainnet rather than another chain's allowance tool, but there is no explicit when-to-use/when-not-to-use statement, no mention of prerequisites (e.g. token must be a contract), and no named alternative for other chains.

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