Skip to main content
Glama

OnchainCheck Wallet Screen

Arbitrum erc20 allowance

arbitrum_erc20_allowance
Read-onlyIdempotent

ERC-20 allowance on Arbitrum One: 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": "arbitrum_erc20_allowance"
  }
}

Input Schema

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

Output Schema

NameRequiredDescriptionDefault
rawNostring, e.g. "6"
chainNostring, e.g. "arbitrum"
ownerNostring, e.g. "0xFD03AbCAdaF3F930fA4E37Eb2f6ea3A44a41b7F0"
tokenNostring, e.g. "0xaf88d065e77c8cC2239327C5EDb3A432268e5831"
symbolNostring, e.g. "USDC"
spenderNostring, e.g. "0xe35e9842fceaCA96570B734083f4a58e8F7C5f2A"
allowanceNostring, e.g. "0.000006"
unlimitedNoboolean, e.g. false
ownerBalanceNostring, e.g. "83629.179457"
spendableNowNostring, e.g. "0.000006"

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare read-only, idempotent, non-destructive and open-world, so the safety profile is covered. The description adds genuinely non-structured behavior: the call costs $0.005 USDC on Base via x402, which an agent must know before invoking. It stops short of describing failure modes (invalid token, non-contract address) or latency.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

One front-loaded sentence: chain and resource first, then the four returned facts, then the pricing note. Every clause carries information and nothing is repeated from the schema or annotations.

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?

With an output schema present, the return values need not be spelled out, and the payment requirement is disclosed. What is missing is small but real: no note that all addresses must live on Arbitrum One and no hint about what happens when the token address is not a contract, which matters for an agent constructing calls programmatically.

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 100% and each of the three required addresses (token, owner, spender) already carries a description in the schema. The description restates the owner/spender relationship but adds no format, constraint, or edge-case detail beyond what the schema provides, so the baseline 3 applies.

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 a specific chain (Arbitrum One), and enumerates exactly what the answer contains: allowance amount, unlimited-approval flag, owner balance, and currently spendable amount. Naming the chain distinguishes it cleanly from the base_/eth_/optimism_/polygon_erc20_allowance siblings without needing to reference them.

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 implied by the resource itself — an agent looking for an approval check will recognize this. However, there is no explicit when-to-use/when-not guidance, no mention of the sibling chain variants, and no advice on the common confusion case (e.g. using wallet_profile or wallet_balances for balance-only questions).

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