Skip to main content
Glama

Evm Allowance

evm_allowance
Read-only

ERC-20 allowance an owner has granted a spender for one token: raw and human amount, with the token's symbol and decimals. unlimited is true when the allowance is at least 2^255, the usual approve-everything value. Read-only. Price: $0.002 in USDC per successful call, paid with x402 (Base, Solana or Arc); failed calls are not charged.

Input Schema

NameRequiredDescriptionDefault
chainNobase (default), ethereum, arbitrum, optimism or polygon
ownerYesToken owner, 0x…
tokenYesERC-20 contract, 0x…
spenderYesSpender, 0x…

Output Schema

NameRequiredDescriptionDefault
rawNo
chainNo
ownerNo
tokenNo
amountNo
sourceNo
spenderNo
checkedAtNo
unlimitedNo
disclaimerNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnlyHint and openWorldHint, so the safety profile is covered. The description adds genuinely useful context beyond that: the unlimited threshold semantics (>= 2^255), the exact price per successful call, the payment rails (x402 on Base/Solana/Arc), and that failed calls are not charged. It does not describe latency or rate limits, but the added behavior is substantial.

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?

Front-loads the core semantics (what the allowance is and what is returned), then the unlimited flag, then the read-only/pricing footer. Dense but every clause adds information; the pricing sentence is slightly extraneous to selection but useful for cost-aware agents.

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?

An output schema exists, so return values need not be spelled out, and the description still adds the interpretation of the unlimited flag. Pricing and payment mechanics are disclosed. It is complete for calling the tool correctly, with only marginal gaps around usage routing versus alternatives.

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%, so all four parameters (chain, owner, token, spender) are already documented in the schema. The description adds no parameter-level detail such as address format nuances or chain-specific caveats; the 2^255 note concerns the output, not a parameter. Baseline 3 is appropriate.

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?

Names a specific verb/resource (ERC-20 allowance between an owner and spender for one token) and enumerates what the result contains (raw and human amount, symbol, decimals). This is clearly distinguishable from sibling tools like evm_token, token_metadata, or evm_balance.

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 description implies when to call it (checking a specific owner→spender approval) and marks it read-only, but it never states when to prefer it over evm_call or another allowance path, nor gives prerequisites beyond the required params. Usage is implied rather than guided.

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