Skip to main content
Glama

run_conformance

Destructive

Tests an x402 facilitator against the standard conformance sequence: 402 negotiation, supported-endpoint reachability, and malformed-verify rejection, with optional keyed verify and 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

NameRequiredDescriptionDefault
allowSettleNoOptional. Must be true to actually settle (settles real testnet value). Default false.
resourceUrlNoOptional. A payment-gated resource URL to test 402 negotiation.
facilitatorUrlYesBase URL of the facilitator (POST /verify, /settle).
paymentPayloadNoOptional. A pre-signed payment payload (produced by your keyed SDK) to run the happy/tampered paths.
paymentRequirementsNoOptional. The paymentRequirements the payload pays.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.7/5.0
Behavior4/5

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

Annotations already declare destructive=true, openWorld=true, and non-idempotent, so the safety profile is partly covered; the description adds real value on top by noting it holds NO keys, that settling moves real testnet value, and that the settle path is opt-in behind a flag. It also discloses the return shape (a pass/fail/skip line per step), though it says nothing about rate limits, timeouts, or what partial failures look like.

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?

Three dense sentences with no filler; the conditional permissions (no keys, opt-in settle) are front-loaded before the step enumeration. Parenthetical API endpoints and the return-line note each carry information an agent needs.

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 stateful, destructive, multi-step orchestration tool with no output schema, the description covers preconditions, keying requirements, the value-moving guard, and the result format. Given the rich 100%-covered schema, nothing essential for correct invocation is missing.

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%, so the baseline is 3; the description earns more by linking parameters to behavior rather than restating them — resourceUrl drives 402 negotiation, paymentPayload must be pre-signed by your own keyed SDK, and allowSettle is the value-moving switch. It does not clarify the expected shape or required fields of paymentPayload/paymentRequirements, which are nested objects.

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?

States a specific verb and resource ("Drive the x402 conformance sequence against a facilitator") and then enumerates the exact steps covered, which operationally separates it from siblings like check_compliance or decode_402. An agent knows what this tool executes and what it does not (the unkeyed vs keyed split).

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives explicit conditional gating: keyed steps run ONLY when a pre-signed paymentPayload and paymentRequirements are supplied, and settle additionally requires allowSettle: true. It also states the precondition that the facilitator must implement the standard POST /verify and /settle API, which tells the agent when not to use it.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.