run_conformance
Tests an x402 facilitator against the conformance sequence, checking 402 negotiation, reachability, malformed verify rejection, and optional keyed verify/settle steps.
Instructions
Drive the x402 conformance sequence against a facilitator. Holds NO keys: automates the 402 negotiation (with resourceUrl), facilitator reachability (GET /supported), and malformed-verify rejection. The keyed steps (verify happy-path, tampered-reject, settle, idempotent re-settle) run ONLY when you supply a pre-signed paymentPayload + paymentRequirements; settle additionally requires allowSettle: true (it settles real testnet value). Assumes the standard facilitator API (POST /verify, POST /settle). Returns a pass/fail/skip line per step.
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": {
"facilitatorUrl": "<facilitatorUrl>"
},
"name": "run_conformance"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| allowSettle | No | Optional. Must be true to actually settle (settles real testnet value). Default false. | |
| resourceUrl | No | Optional. A payment-gated resource URL to test 402 negotiation. | |
| facilitatorUrl | Yes | Base URL of the facilitator (POST /verify, /settle). | |
| paymentPayload | No | Optional. A pre-signed payment payload (produced by your keyed SDK) to run the happy/tampered paths. | |
| paymentRequirements | No | Optional. The paymentRequirements the payload pays. |