Skip to main content
Glama

Settle an x402 payment on-chain (irreversible)

x402_facilitator_settle
Destructive

IRREVERSIBLE SIDE EFFECT: forwards the envelope to POST https://x402-agent-pay.com/facilitator/settle. The existing facilitator first re-runs verify(), then refuses PAYEE_NOT_SERVED_HERE unless payTo is the AgentPay treasury (0x367F1b3D8Ca90D1e087481a9A40d585Bf3451a03 on Base / 6aCEuwH3PYx99cEmRz45otfxk39uF7ewGhqmvxfXisSG on Solana), then broadcasts via Coinbase CDP and returns a transaction hash. Malformed, unsigned, out-of-scope, or unverified payloads are rejected before any external transfer. This adapter never signs, never holds keys, and never bypasses those gates. Do not call this as a dry run.

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.4/5.0
Behavior5/5

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

Annotations already declare destructiveHint=true, idempotentHint=false and openWorldHint=true, so the safety profile is covered; the description goes well beyond that by disclosing the upstream URL, the internal verify re-run, the PAYEE_NOT_SERVED_HERE refusal path, the exact treasury addresses, the Coinbase CDP broadcast, the returned tx hash, and the fact that the adapter never signs or holds keys and rejects malformed/unsigned payloads before transfer.

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?

The irreversible warning is front-loaded as the first clause, and every subsequent sentence conveys a distinct gate or guarantee. It is dense but not padded; each sentence earns its place, though the repetition of two treasury addresses across sentences is slightly heavy.

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 an output schema present, the description need not explain return values yet still names the tx-hash return. Combined with rich annotations and a fully documented nested schema, an agent has everything needed to call this irreversible settlement tool correctly and safely.

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 there is a single top-level parameter, so the schema already documents the envelope thoroughly, including the payTo treasury constraint. The description largely restates treasury addresses that already appear in the schema, adding little parameter meaning beyond the baseline.

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 states a specific verb (settle/forward/broadcast) and resource (x402 payment envelope), and immediately distinguishes itself from the sibling x402_facilitator_verify by describing the ordering (verify re-runs first, settle broadcasts). An agent can tell exactly what this tool does versus its sibling 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?

It gives a clear when-not-to-use cue ('Do not call this as a dry run') and implies the precondition that a payload must have passed verify. However, it never explicitly says when an agent should prefer this over x402_facilitator_verify or what state the caller must be in before settling.

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