Skip to main content
Glama

ERC-20 token approval check on Base: check how much of a token a spender is approved to move on Base

base_allowance
Read-only

Check how much of a wallet's ERC-20 token a spender contract is approved to move on Base: the raw and formatted allowance, the token symbol and decimals, and whether the approval is unlimited. Use before a swap or deposit to see if an approve transaction is needed, and to audit a wallet for risky unlimited approvals. Price $0.002/call via x402 USDC or a card key (/credits), first 10 free; failed calls free. Reads or computes only and changes nothing; each call is charged, so repeats are not free.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "token": "<token>",
      "owner": "<owner>",
      "spender": "<spender>"
    },
    "name": "base_allowance"
  }
}

Input Schema

NameRequiredDescriptionDefault
ownerYesWallet address that holds the token (0x...)
tokenYesERC-20 token contract address on Base (0x...)
spenderYesAddress allowed to spend, usually a router or protocol contract (0x...)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=true, and the description reinforces this with 'reads or computes only and changes nothing'. The genuinely additive context is the billing model — $0.002/call, first 10 free, failed calls free, repeats are not free — which usefully explains why idempotentHint is false: repeating a pure read still costs money. Return fields are briefly characterized, leaving mainly error/rate-limit behavior unaddressed.

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?

The core capability and its use cases are front-loaded in the opening clauses, and every clause carries information. The pricing sentence is slightly verbose and reads partly promotional, which keeps it from a 5, but nothing is redundant filler.

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

Completeness5/5

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

There is no output schema, and the description compensates by naming the return fields; there are no annotations gaps on safety, and the pricing model is disclosed. For a simple three-parameter read tool, an agent has everything needed to call it and interpret the result.

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 description coverage is 100% with all three required parameters documented (owner, token, spender), so the baseline is 3. The description adds a little meaning by clarifying the spender is a contract approved to move funds and the token is an ERC-20 on Base, but it adds no syntax, address-validation or format guidance beyond the schema.

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 and resource ('check how much of a wallet's ERC-20 token a spender contract is approved to move') and pins the chain to Base, which is exactly what separates it from arb_allowance, eth_allowance, op_allowance and polygon_allowance. It even enumerates the returned data (raw/formatted allowance, symbol, decimals, unlimited flag), so an agent can tell it apart from base_token_balance without opening a 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 use cases: before a swap or deposit to decide whether an approve transaction is needed, and for auditing risky unlimited approvals. That is clear when-to-use guidance, though it never states a when-not-to-use case or explicitly routes to the sibling allowance tools for other chains.

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