Skip to main content
Glama

OnchainCheck Wallet Screen

Base erc20 allowance

base_erc20_allowance
Read-onlyIdempotent

ERC-20 allowance on Base: how much a spender may transfer from an owner, whether the approval is effectively unlimited, the owner's balance, and the amount the spender could move right now. Costs $0.005 USDC on Base via x402.

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_erc20_allowance"
  }
}

Input Schema

NameRequiredDescriptionDefault
ownerYesAddress that granted the approval
tokenYesERC-20 contract on Base
spenderYesAddress allowed to spend

Output Schema

NameRequiredDescriptionDefault
rawNostring, e.g. "0"
chainNostring, e.g. "base"
ownerNostring, e.g. "0x698229f40EF287c4B470813e95429f8d764E8054"
tokenNostring, e.g. "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"
symbolNostring, e.g. "USDC"
spenderNostring, e.g. "0x000000000022D473030F116dDEE9F6B43aC78BA3"
allowanceNostring, e.g. "0"
unlimitedNoboolean, e.g. false
ownerBalanceNostring, e.g. "0"
spendableNowNostring, e.g. "0"

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive/openWorld, yet the description still adds real behavioral context: what the response semantically contains (unlimited-approval detection, live spendable amount) and that each call is paid, $0.005 USDC on Base via x402. Lacks any note on failure modes or caching, hence not a 5.

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?

One dense sentence carries the semantics and a short second sentence front-loads the cost, with no filler. The single sentence is slightly overloaded with four return facts, but nothing is wasted.

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, yet the description sketches them usefully for selection. The paid-x402 requirement is a notable inclusion for a read-only call. Only the lack of routing guidance to sibling tools keeps it from 5.

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?

With 100% schema description coverage, baseline is 3. The description restates the owner→spender authorization relationship but adds no format, constraint, or edge-case meaning (e.g., what happens with a zero address or a non-ERC20 contract) beyond what the schema already documents.

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+resource (ERC-20 allowance) scoped to Base, and enumerates the returned facts: spender allowance, unlimited-approval flag, owner balance, currently movable amount. The chain qualifier plus the sibling names (eth_/arbitrum_/polygon_/optimism_erc20_allowance) make it distinguishable 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 Guidelines3/5

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

Usage is only implied: an agent can infer this is the approval-risk check for Base tokens, but the description never says when to prefer it over base_wallet_profile or the other chain variants, nor any exclusion or prerequisite beyond the payment note.

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