Skip to main content
Glama

chain_authorization_state

Read-only

EIP-3009 authorization nonce check (x402 / USDC) — Has this EIP-3009 transferWithAuthorization nonce already been used or cancelled? Reads authorizationState(authorizer, nonce) on USDC (or any EIP-3009 token) for up to 20 nonces in one call, plus the payer's balance, token symbol/decimals and EIP-712 version. Verdict READY, NONCE_USED, SOME_NONCES_USED or INSUFFICIENT_BALANCE. Built for x402 sellers, facilitators and agent wallets checking a payment authorization before or after settlement (a used nonce can never be replayed). Required: authorizer (0x payer address), nonce (bytes32: 0x + 64 hex; comma-separate up to 20). Optional: chain (base default, ethereum, arbitrum, optimism, polygon), token (usdc default, or a 0x token address), amount (plain decimal like 0.01: checks the balance covers it). 422 (not charged) if the token has no EIP-3009. 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": {
      "authorizer": "<authorizer>",
      "nonce": "<nonce>"
    },
    "name": "chain_authorization_state"
  }
}

Input Schema

NameRequiredDescriptionDefault
nonceYes0x0000000000000000000000000000000000000000000000000000000000000001
authorizerYes0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.7/5.0
Behavior5/5

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

Beyond the readOnly/openWorld/destructive annotations, it discloses the returned verdict enum (READY, NONCE_USED, SOME_NONCES_USED, INSUFFICIENT_BALANCE), the batch ceiling of 20 nonces, the 422-and-not-charged failure mode for non-EIP-3009 tokens, and the price ($0.002 USDC via x402). These are exactly the operational facts an agent needs and none of them are in the structured fields.

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?

Content is front-loaded with purpose before mechanics, and no sentence is filler — the verdict list, limits, and pricing all carry weight. It is a single dense paragraph, though, so the required/optional parameter block is slightly harder to scan than a bulleted layout would be.

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?

There is no output schema, and the description compensates by enumerating every possible verdict, plus the error path and pricing. For a read-only check tool with two required parameters, nothing an agent needs to call it correctly or interpret the result is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, but the schema only supplies placeholder example values with no explanation. The description adds real meaning: nonce must be bytes32 as 0x + 64 hex and can be comma-separated up to 20; chain accepts base (default), ethereum, arbitrum, optimism, polygon; token is usdc by default or a 0x address; authorizer is the 0x payer address; amount is a plain decimal (e.g. 0.01) used for the balance check.

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 ("EIP-3009 authorization nonce check") immediately framed as a question the tool answers ("Has this ... nonce already been used or cancelled?"). It names the exact contract call read (authorizationState(authorizer, nonce)) and the token scope (USDC or any EIP-3009 token), so an agent can distinguish it from balance/allowance siblings like chain_allowance or chain_balances.

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?

It gives explicit usage context: "Built for x402 sellers, facilitators and agent wallets checking a payment authorization before or after settlement", and explains why it matters ("a used nonce can never be replayed"). It does not name an alternative sibling tool or state when not to use it, but the before/after-settlement framing makes the trigger condition unambiguous.

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