Skip to main content
Glama

chain_x402_verify

Read-only

x402 payment payload verifier (EIP-3009 signature, nonce replay, balance) — Verify an x402 exact-scheme payment before you serve or settle it - the checks a facilitator /verify runs, without a facilitator. Give the base64 X-PAYMENT (x402 v1) or PAYMENT-SIGNATURE (v2) header value, or the JSON: decodes it, rebuilds the EIP-712 TransferWithAuthorization digest, recovers the signer (ERC-1271 for smart-contract wallets, EIP-7702 aware) and checks recipient, amount, validAfter/validBefore against chain time, EIP-3009 nonce replay (authorizationState), USDC blacklist and payer balance on base, base-sepolia, ethereum, polygon, arbitrum, optimism or avalanche. Verdict VALID, INVALID_SIGNATURE, WRONG_RECIPIENT, UNDERPAID, EXPIRED, NOT_YET_VALID, NONCE_USED, PAYER_BLACKLISTED, INSUFFICIENT_BALANCE or UNVERIFIED_SMART_WALLET with an issues list; malformed payloads return 422 (not charged). Params: payment (required); optional payTo, amount (decimal token units like 0.01), network, asset - v2 payloads already carry these in accepted. Read-only: nothing is submitted or settled. 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": {
      "payment": "<payment>"
    },
    "name": "chain_x402_verify"
  }
}

Input Schema

NameRequiredDescriptionDefault
paymentYeseyJ4NDAyVmVyc2lvbiI6MiwiYWNjZXB0ZWQiOnsic2NoZW1lIjoiZXhhY3QiLCJuZXR3b3JrIjoiZWlwMTU1Ojg0NTMiLCJhbW91bnQiOiIxMDAwMCIsImFzc2V0IjoiMHg4MzM1ODlmQ0Q2ZURiNkUwOGY0YzdDMzJENGY3MWI1NGJkQTAyOTEzIiwicGF5VG8iOiIweEU5NDY4MjgyQjIyYzA5MjQzQ2UxYTQ1NWZFMmQxREYwZDcyNzZkRTYiLCJleHRyYSI6eyJuYW1lIjoiVVNEIENvaW4iLCJ2ZXJzaW9uIjoiMiJ9fSwicGF5bG9hZCI6eyJzaWduYXR1cmUiOiIweDBmNDhiYmRiNTM0MzFmYjk3Y2NkNzc0OGFhMTk4OWIxN2Q0YTBhZGZhYzkwODdjNjExMzg2NmRmY2ExYzkyZmYzYTc2MWFiMjRiZjVmZjE0OTZiNWFjZDU0NGQxZWZkMDhhNDQ0ZTU1YTMxNTJiM2Y4NzYyNTdiZmUxYWY0MjU5MWIiLCJhdXRob3JpemF0aW9uIjp7ImZyb20iOiIweDNDMjNmZjBEREM0ZEQxMzg0ZUFGODIwNDk5QUU0Qzk4REMzQ0IxNDUiLCJ0byI6IjB4RTk0NjgyODJCMjJjMDkyNDNDZTFhNDU1ZkUyZDFERjBkNzI3NmRFNiIsInZhbHVlIjoiMTAwMDAiLCJ2YWxpZEFmdGVyIjoiMTc2NDU0NzIwMCIsInZhbGlkQmVmb3JlIjoiNDEwMjQ0NDgwMCIsIm5vbmNlIjoiMHg2MmRkNTZiNTJiOTQzZGNlODhmZGYwODA2YmYwMGJlMjcwOGRlZDgyMmI2MTliYmEyMzUxODljODI0NmJmOTZmIn19fQ==

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, and the description still adds substantial context: the full enumeration of verdict codes, the 422-on-malformed-payload behavior with 'not charged', ERC-1271/EIP-7702 handling, the supported chain list, and the $0.003 USDC price. It also restates the read-only guarantee in operational terms ('nothing is submitted or settled').

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 a one-line summary followed by dash-separated detail, and nearly every clause carries operational information (verdicts, error code, chains, price). It is dense and runs long, and the trailing 'Params:' inventory partially duplicates the summary line, but there is little pure filler.

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?

With no output schema, the description carries the return-value burden and does so by enumerating every verdict plus the accompanying issues list. For a single-parameter tool it also covers failure modes (422, not charged) and cost, leaving nothing an agent needs to call it correctly.

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's lone description is just a base64 example blob, so the description genuinely earns credit by explaining accepted input shapes (base64 X-PAYMENT v1 header, PAYMENT-SIGNATURE v2 header, or raw JSON) and the amount format ('decimal token units like 0.01'). It loses a point because it advertises 'optional payTo, amount, network, asset' parameters that do not appear in the supplied schema, which could mislead an agent about what it may pass.

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 first clause names a specific verb and resource — verifying an x402 exact-scheme payment payload — and the parenthetical narrows it to EIP-3009 signature, nonce replay and balance checks. That is enough to separate it from siblings like chain_payment_verify, chain_verify_signature or web_x402_check without opening any schema.

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 states the triggering context explicitly: 'Verify an x402 exact-scheme payment before you serve or settle it', and anchors the scope as 'the checks a facilitator /verify runs, without a facilitator'. It does not name a specific alternative sibling or state when not to use it, so it stops short of a 5.

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