Skip to main content
Glama

OnchainCheck Wallet Screen

Polygon erc20 allowance

polygon_erc20_allowance
Read-onlyIdempotent

ERC-20 allowance on Polygon PoS: 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": "polygon_erc20_allowance"
  }
}

Input Schema

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

Output Schema

NameRequiredDescriptionDefault
rawNostring, e.g. "11579208923731619542357098500868790785326998466564056403945
chainNostring, e.g. "polygon"
ownerNostring, e.g. "0x357542d88744DB4BFfE8F90008138dDc4a10cdC3"
tokenNostring, e.g. "0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359"
symbolNostring, e.g. "USDC"
spenderNostring, e.g. "0x429eba38eF16A42C62b497C22A4662C45b37f848"
allowanceNostring, e.g. "11579208923731619542357098500868790785326998466564056403945
unlimitedNoboolean, e.g. true
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?

The annotations already declare this as a read-only, idempotent, non-destructive, open-world operation. The description adds meaningful behavioral context by disclosing the $0.005 USDC payment on Base via x402, though it does not discuss rate limits or authentication details.

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?

The description is front-loaded with the core purpose and follows with the payment cost in a single additional sentence. It contains no redundant or filler wording.

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?

The tool is simple, all parameters are fully documented, annotations cover the safety profile, and an output schema exists. The description adds the payment cost and clarifies what allowance-related values are returned, making it complete for this operation.

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%, and all three required parameters are documented there. The description reinforces the owner/spender relationship but adds no parameter syntax or constraints beyond what the schema already provides, so baseline 3 is appropriate.

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?

The description clearly states the resource and chain: ERC-20 allowance on Polygon PoS, including the owner balance and spendable amount. It is specific enough to separate this from other chain-specific allowance tools by chain, though it does not explicitly name a sibling alternative.

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 chain-specific purpose, but the description gives no explicit when-to-use guidance, exclusions, or alternatives such as the Ethereum or Arbitrum allowance tools. An agent can infer the context but is not directly routed.

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