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.

Input Schema

TableJSON 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

TableJSON 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. Added

TDQS

A3.9/5.0
Behavior4/5

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

Adds real behavioral context beyond the readOnlyHint annotation: it discloses what is returned (valid, signer, x402-signer status), when the request-matching check applies (with route and input), that a changed verdict/receipt fails, and that nothing is stored. This is useful, non-redundant disclosure.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loads the key point ('Free: check ...') but then runs into a long parenthetical enumeration and multiple clauses in one paragraph. It is dense and mostly earns its place, but could be tightened.

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?

Given an output schema and full schema coverage, the description need not explain return values, yet it does summarize them and covers failure semantics and storage behavior. Adequate and nearly complete for this tool's complexity.

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 functional meaning: response is the whole answer, and route+input enable an exact-request match. That clarifies the intent of the optional parameters beyond their schema text.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb (check/verify) and resource (the signed receipt carried by every paid x402 Doctor answer), and enumerates which answer types it covers. It is clear what the tool does, though it does not explicitly distinguish itself from the sibling check_payment_proof, which could overlap.

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?

Gives a concrete motivating scenario ('to prove later which verdict you got before paying an endpoint') and notes the equivalent HTTP route. There are no explicit when-not conditions or named alternatives, so it stops short of a 5.

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.