Skip to main content
Glama

Verify a signed x402 Doctor answer (free)

verify_receipt
Read-only

Free: check the signed receipt that every paid x402 Doctor answer carries (diagnose, preflight, batch, deep, fix, delivery check; HTTP or MCP), for example to prove later which verdict you got before paying an endpoint. Pass the whole answer as response. Returns valid, the signer and whether it is an x402 Doctor signer; with route and input also whether the receipt is for exactly that request. A changed verdict or receipt fails. Read-only, nothing is stored. Same as POST /api/v1/verify.

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": {
      "response": "<response>"
    },
    "name": "verify_receipt"
  }
}

Input Schema

NameRequiredDescriptionDefault
inputNoThe tool arguments you sent (MCP), or the query parameters as strings (HTTP)
routeNoThe request it answered: "mcp <tool name>" for an MCP answer (e.g. "mcp x402_preflight"), "GET /api/v1/preflight" for an HTTP one
responseYesThe whole paid answer as you received it, including its receipt

Output Schema

NameRequiredDescriptionDefault
validYestrue: signed by an x402 Doctor signer, unchanged, and (when route and input are given) for that request
reasonNoWhy it is not valid
signerNoThe address that signed it
known_signerNoWhether that address is a current, retired or certified x402 Doctor signer
input_matchesNoOnly with route and input: whether the receipt is for exactly that request
signer_statusNocurrent, retired or certified

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • removedInput schema / additionalProperties
      Removed value: -false
    • addedInput schema / properties / input / propertyNames
      Added value: +{
      +  "type": "string"
      +}
    • addedInput schema / properties / response / propertyNames
      Added value: +{
      +  "type": "string"
      +}
    • changedOutput schema / additionalProperties
      Previous value: -trueNew value: +{}
  2. Added

TDQS

A4.5/5.0
Behavior5/5

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

Beyond readOnlyHint and openWorldHint, it discloses cost (free), that nothing is stored, what a successful call yields (valid, signer, whether it is an x402 Doctor signer), and what causes failure ('A changed verdict or receipt fails'). That failure semantics and storage statement are real additions not present in the annotations.

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 'Free:' and the core action, with parenthetical scope and return behavior following in one dense paragraph. It is information-rich with little waste, though the long multi-clause sentences could be broken up for faster scanning.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Covers purpose, cost, request-binding behavior, failure condition, and HTTP equivalence for a 3-parameter verification tool with nested objects. Return details are partly duplicated against the existing output schema, but nothing an agent needs in order to call it correctly 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, but the description adds real meaning: 'Pass the whole answer as response' clarifies the caller must send the entire received object, and 'with route and input also whether the receipt is for exactly that request' explains the functional effect of the two optional parameters rather than just their types.

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?

Specific verb and resource: 'check the signed receipt that every paid x402 Doctor answer carries', and it enumerates the producing tools (diagnose, preflight, batch, deep, fix, delivery check; HTTP or MCP) so the agent knows exactly which artifacts this applies to. It is clearly distinct from the generating siblings like x402_diagnose or x402_preflight.

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?

'for example to prove later which verdict you got before paying an endpoint' gives a concrete use case, and 'Free' plus 'Same as POST /api/v1/verify' clarifies cost and equivalences. It does not state when-not to use it or name a competing verification tool, so it stops short of full routing guidance.

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.