Skip to main content
Glama

chain_permit2_allowance

Read-only

Permit2 allowance and approval risk check — Can a spender pull this token from this wallet through Uniswap Permit2? Reads the ERC-20 approval the owner gave Permit2 plus, with spender=, the per-spender Permit2 allowance (amount, expiration, nonce) and the effective spendable amount. Verdict SPENDER_CAN_PULL, SPENDER_EXPIRED, PERMIT2_APPROVED_SPENDER_NONE, ALLOWANCE_WITHOUT_APPROVAL or NO_PERMIT2_APPROVAL, with risk flags (unlimited, over a year) and how to revoke. owner= and token= (0x address or USDC, WETH, USDT, DAI) required; spender= optional; chain= ethereum (default), base, arbitrum, optimism or polygon. Price: $0.003 USDC (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": {
      "owner": "<owner>",
      "token": "<token>",
      "chain": "<chain>"
    },
    "name": "chain_permit2_allowance"
  }
}

Input Schema

NameRequiredDescriptionDefault
chainYesethereum
ownerYes0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045
tokenYesUSDC

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior5/5

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

Goes well beyond the readOnly/destructive=false annotations by disclosing the exact verdict taxonomy (SPENDER_CAN_PULL, SPENDER_EXPIRED, PERMIT2_APPROVED_SPENDER_NONE, ALLOWANCE_WITHOUT_APPROVAL, NO_PERMIT2_APPROVAL), the risk flags raised (unlimited, over a year), and that it tells you how to revoke. It also states pricing and payment rail, which the annotations do not cover.

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-loaded with the purpose and the question it answers, then inputs, then outputs, then pricing — a sensible order. It is dense but every clause carries information; the verdict list is long but genuinely useful.

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 no output schema, the description does the work of describing return values via the verdict enum and risk flags, and it covers chains, symbol aliases and cost. The only soft spot is that 'how to revoke' is promised but not illustrated, leaving minor uncertainty about the response shape.

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?

Although schema coverage is nominally 100%, the schema 'descriptions' are only bare examples ('ethereum', 'USDC'), so the prose carries real meaning: owner/token/chain are required, token accepts a 0x address or named symbols (USDC, WETH, USDT, DAI), spender is optional and changes what is computed, and chain defaults to ethereum with four named alternatives.

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 — checking Permit2 allowance and ERC-20 approval risk — and frames the exact question it answers ("Can a spender pull this token from this wallet through Uniswap Permit2?"), which clearly separates it from a plain ERC-20 allowance tool like chain_allowance.

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?

Explains the two modes clearly: baseline read of the owner→Permit2 approval, and, when spender= is supplied, the per-spender allowance. It lists required versus optional inputs and the supported chains. It stops short of explicitly naming a sibling alternative (e.g. chain_allowance) or stating when not to use it.

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