Skip to main content
Glama

x402-token-allowance

Token Allowance: Reads an ERC-20 allowance for an owner and spender on Base or Ethereum via eth_call 🆓 5 free trial calls per signed wallet

Input Schema

NameRequiredDescriptionDefault
chainNo
ownerNo
tokenNo
addressNo
spenderNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • removedInput schema / properties / address / description
      Removed value: -"Address to process"
    • removedInput schema / properties / chain / description
      Removed value: -"Chain to process"
    • removedInput schema / properties / owner / description
      Removed value: -"Owner to process"
    • removedInput schema / properties / spender / description
      Removed value: -"Spender to process"
    • removedInput schema / properties / token / description
      Removed value: -"Token to process"
  2. First observed

TDQS

B3/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It does usefully disclose that the operation is a read performed via eth_call, implying a non-mutating call, and that it is limited to Base and Ethereum plus a trial-credit model. It omits error behavior, whether the call requires an RPC provider, and how results are returned.

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?

A single front-loaded sentence delivers the core purpose with an emoji/pricing tag appended. Little waste, though the trial-credit marketing string is arguably extraneous to invocation.

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?

For a five-parameter read tool with no annotations and no output schema, the description covers chains and intent but leaves the address/owner ambiguity, parameter formats, and return value (base units vs decimals) unexplained. Adequate but with clear gaps an agent would need to resolve.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0% for five parameters. The description names owner, spender and token (ERC-20) and the two supported chains, but it never explains the 'address' parameter or how it relates to 'owner', which is the most confusing ambiguity in this schema. No format guidance (checksummed vs lowercase, token contract address) is provided.

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: reads an ERC-20 allowance for a given owner/spender pair, scoped to Base or Ethereum via eth_call. This is a clear read operation, though it does not distinguish itself from the nearby sibling x402-allowance-scan, whose purpose may overlap.

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

Usage Guidelines2/5

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

The description contains no when-to-use or when-not-to-use guidance, no mention of prerequisites (e.g. a funded/signed wallet), and no routing to alternatives such as x402-allowance-scan or x402-erc20-info. The '5 free trial calls' line is billing context, not usage guidance.

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