Skip to main content
Glama

chain-erc20-allowance

Check the current ERC-20 allowance from an owner wallet to a spender contract on Base or Ethereum. Returns the exact raw allowance for USDC and arbitrary ERC-20 tokens. Use before swaps, recurring payments and autonomous contract execution. Costs $0.001 USDC on Base via x402.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
ownerYes
networkNo
spenderYes
contractYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4/5.0
Behavior4/5

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

With no annotations, the description carries the burden and does disclose material traits: it is a read ("Check"), returns the exact raw allowance (not a formatted/decimals-adjusted value), supports Base and Ethereum, and costs $0.001 USDC via x402. It omits whether there is a default network or any rate/permission considerations.

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?

Three short sentences, front-loaded with the core action and scope, then return value, then cost. Little waste, though the cost sentence could sit later without loss.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Return semantics, chain support, and cost are covered. However `network` is optional in the schema and the description never states the default, and none of the three required address parameters get format/meaning detail, leaving gaps for a 4-param tool with no output schema.

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 coverage is 0%, so the description must compensate. It clarifies owner and spender via wording and the network enum via "Base or Ethereum", but the required `contract` parameter (the token contract address) is never explained beyond "arbitrary ERC-20 tokens", and address formats are not given.

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 (Check), resource (ERC-20 allowance), and direction (owner wallet -> spender contract), plus the supported chains. An agent can distinguish it from chain-erc20-balance without opening either 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?

Gives concrete pre-condition contexts (before swaps, recurring payments, autonomous contract execution), which is clear usage framing. It stops short of naming alternatives or stating when NOT to use it, so it does not reach a 5.

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.