Skip to main content
Glama

Agent Data API

base_erc20_allowance

ERC-20 allowance on Base: 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 Base
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, the description carries the full burden and does disclose valuable context beyond the schema: the four result fields returned and the fact that the call costs $0.005 USDC on Base via x402. It does not explicitly state that it is a read-only/non-mutating call or describe failure modes, but the read-only nature is strongly implied by the query framing.

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, front-loaded with what is returned and followed by the payment cost. It is dense but every clause adds information; the only mild inefficiency is packing four return values into one long sentence.

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?

There is no output schema, so the description appropriately enumerates the four result fields; it also discloses the x402 payment requirement, which an agent must know before calling. It stops short of explaining error behavior, token-decimal formatting, or how the unlimited-approval flag is determined, but for a three-address lookup tool it is largely complete.

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 are documented in the schema (token, owner, spender). The description does not add syntax, constraints, or edge-case guidance for those parameters, so it sits at the baseline.

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 verb/resource (ERC-20 allowance), the chain (Base), and the exact facts returned: allowance amount, unlimited-approval flag, owner balance, and currently spendable amount. This distinguishes it from the parallel eth_/arbitrum_/optimism_/polygon_erc20_allowance siblings and from base_wallet_balances.

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?

Usage is implied by the name and the described outputs, but there is no explicit guidance on when to choose this vs. base_token_snapshot, base_wallet_balances, or another chain's allowance tool. The paid x402 note hints that it should only be called when the allowance question is genuinely needed, but no exclusion or alternative is named.

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