Skip to main content
Glama

chain_permit_info

Read-only

Token permit support (EIP-2612) — Does an ERC-20 support gasless approvals? Reads DOMAIN_SEPARATOR, nonces, version, PERMIT_TYPEHASH and EIP-5267 eip712Domain, then recomputes the EIP-712 domain to confirm the exact name/version/chainId to sign. Verdict EIP2612, DAI_STYLE_PERMIT, LIKELY_PERMIT or NO_PERMIT (use Permit2). Works on base, ethereum, arbitrum, optimism, polygon. Required: chain, token (0x address or symbol). Optional: owner (returns that address's permit nonce). Price: $0.002 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": {
      "chain": "<chain>",
      "token": "<token>"
    },
    "name": "chain_permit_info"
  }
}

Input Schema

NameRequiredDescriptionDefault
chainYesbase
tokenYesUSDC

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnlyHint=true, destructiveHint=false, openWorldHint=true), and the description adds genuinely new operational context: it performs multiple on-chain reads plus an off-chain EIP-712 domain recomputation, is limited to five named chains, and costs $0.002 USDC via x402 on Base. The paid, multi-RPC-call nature is exactly the kind of behavior an agent needs before invoking, though failure modes and latency are unstated.

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?

It is a single dense paragraph, but it is front-loaded with the core question and the mechanics, verdicts, chain support and price all follow in logical order. The jargon count is high, yet every clause carries information an agent would otherwise have to guess.

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 carries the burden of explaining returns and does so by naming the verdict values and the underlying fields read. The main residual gap is the schema/description discrepancy around the optional owner parameter and the absence of any error or unsupported-chain behavior.

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 coverage is 100% but the schema only offers bare examples ('base', 'USDC'), so the description's clarification that token accepts a 0x address or a symbol, and that chain is restricted to base/ethereum/arbitrum/optimism/polygon, adds real meaning. It also mentions an optional 'owner' parameter for returning a specific address's permit nonce, which does not appear in the input schema — useful semantically but a mismatch the agent may trip over.

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?

The description opens with a specific verb+resource combination: determining whether an ERC-20 token supports EIP-2612 gasless permits. It enumerates exactly what is read (DOMAIN_SEPARATOR, nonces, version, PERMIT_TYPEHASH, EIP-5267 eip712Domain) and what verdicts come back, which no sibling tool (chain_code, chain_call, chain_nonce) claims to do.

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?

The framing question 'Does an ERC-20 support gasless approvals?' plus the NO_PERMIT verdict note '(use Permit2)' tells an agent when this is the right check and what to do on a negative result. It does not explicitly name a sibling to prefer for raw contract reads, but the context is clear enough to route correctly.

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