Skip to main content
Glama

ERC20 allowance

evm_erc20_allowance

Use when an agent is about to approve a spender, or is auditing what it approved before: how much of a token the spender may still move on the owner's behalf, raw and formatted with its decimals, plus unlimited, which flags a forgotten infinite approval. Do not use for what the wallet actually holds (/v1/evm/erc20-balance) or for whether the token is safe (/v1/evm/token-safety). No API key. $0.005 per call, paid over x402 (USDC).

Input Schema

NameRequiredDescriptionDefault
chainNobase | ethereum | polygon | arbitrum | optimism.
ownerYesAddress that owns the tokens.
tokenYesERC20 contract address.
spenderYesAddress allowed to spend them.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It does disclose cost ($0.005 per call over x402 USDC), that no API key is needed, and that the response includes a derived 'unlimited' flag — strong value. It stays silent on failure modes (non-contract token, missing decimals, unset allowance returning zero) and on rate limits, which matter for an agent deciding whether to retry.

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?

Effectively three sentences: trigger, return shape, exclusions, then cost/auth. Front-loaded with the usage trigger, and every clause carries information. The return-shape sentence is a long run-on ('raw and formatted with its decimals, plus unlimited, which flags...') that could be split for scanability.

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?

No output schema exists, and the description compensates by describing the return payload (raw amount, formatted amount, unlimited flag). Payment and auth are covered. The one gap is the optional 'chain' parameter — the description never says whether it defaults or must be chosen, which an agent needs before calling.

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 coverage is 100%, so the schema already documents owner, spender, token and the chain enum, and the baseline would be 3. The description does not add syntax detail, but it does add meaning by framing owner/spender as the two parties of an approval relationship, which clarifies the roles better than the bare schema strings.

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 precise verb+resource: reads how much of a token a spender may still move on the owner's behalf, with raw and decimal-formatted values plus an 'unlimited' flag. It is unmistakably distinct from evm_erc20_balance and evm_token_safety, both of which it names.

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

Usage Guidelines5/5

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

Explicit when-to-use (about to approve a spender, or auditing a prior approval) and explicit when-not-to-use, naming the two sibling endpoints by path that cover the adjacent questions (holdings, token safety). Nothing is left to inference.

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