Skip to main content
Glama

Verify an x402 payment without moving funds

x402_facilitator_verify
Read-onlyIdempotent

Forward an x402 payment envelope to POST https://x402-agent-pay.com/facilitator/verify. Recovers the EIP-712 signer, checks payee/amount/expiry/nonce/USDC balance and spend authority. Free. No gas. No broadcast. Returns isValid plus invalidReason when the payload cannot clear. Authorization still lives in the existing facilitator implementation; this tool only forwards the JSON body.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
bodyYesExact envelope accepted by POST /facilitator/verify and /facilitator/settle. The live Flask unpacker is liberal (v1/v2 names). This schema documents the supported request body and still forwards extra x402 fields the upstream already understands via nested objects.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already cover readOnly/idempotent/destructive/openWorld, but the description adds material context beyond them: the free/no-gas/no-broadcast economics, the fact that no on-chain side effect occurs, and the shape of the failure signal ('Returns isValid plus invalidReason when the payload cannot clear'). It stops short of describing rate limits or auth requirements, so a 4 rather than 5.

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?

Five short sentences, front-loaded with the action and endpoint, then the checks performed, the cost/side-effect profile, and the response shape. There is no filler and every clause carries distinct information.

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?

For a single-parameter forwarding tool with an output schema present, the description supplies what the structured fields do not: the upstream endpoint, the recovery/validation steps, the absence of broadcast, and the availability of invalidReason. Nothing an agent needs to invoke it correctly is missing.

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 the nested body schema is thoroughly documented (signer, payee, USDC atomic units, versioned field names), so the schema does the heavy lifting. The description only adds that the JSON body is forwarded verbatim, which is a small contribution over the baseline of 3.

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 names a specific verb (forward/verify) and resource (x402 payment envelope), and the accompanying behaviors 'No broadcast', 'No gas', and 'only forwards the JSON body' make it unmistakable that this tool does not settle funds. An agent can distinguish it from x402_facilitator_settle purely from behavior, without opening the 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?

The description makes the dry-run nature of the tool clear via 'No gas. No broadcast.' and 'authorization still lives in the existing facilitator implementation', which implies when this is appropriate versus an actual settlement. It does not, however, explicitly name x402_facilitator_settle as the alternative for moving funds, so the routing guidance is inferred rather than stated.

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