Skip to main content
Glama

GENESIS ProofRelay MCP Verifier

Adapt x402 payment proof

proofrelay.adapt_x402_payment_proof
Read-onlyIdempotent

Map public-safe x402 request, 402 challenge, payment payload, facilitator response, and resource response hashes into ProofRelay's payment_context evidence profile.

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": {
      "x402": "<x402>"
    },
    "name": "proofrelay.adapt_x402_payment_proof"
  }
}

Input Schema

NameRequiredDescriptionDefault
x402Yes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed8 schema fields changed
    • addedInput schema / properties / x402 / additionalProperties
      Added value: +false
    • changedInput schema / properties / x402 / properties / facilitator_hash / anyOf
      Previous value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "pattern": "^\\s*(?:sha256:)?[0-9a-fA-F]{64}\\s*$",
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedInput schema / properties / x402 / properties / payment_payload_hash / pattern
      Added value: +"^\\s*(?:sha256:)?[0-9a-fA-F]{64}\\s*$"
    • addedInput schema / properties / x402 / properties / payment_required_hash / pattern
      Added value: +"^\\s*(?:sha256:)?[0-9a-fA-F]{64}\\s*$"
    • addedInput schema / properties / x402 / properties / payment_response_hash / pattern
      Added value: +"^\\s*(?:sha256:)?[0-9a-fA-F]{64}\\s*$"
    • changedInput schema / properties / x402 / properties / replay_key / anyOf
      Previous value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "pattern": "^\\s*(?:sha256:)?[0-9a-fA-F]{64}\\s*$",
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedInput schema / properties / x402 / properties / request_hash / pattern
      Added value: +"^\\s*(?:sha256:)?[0-9a-fA-F]{64}\\s*$"
    • addedInput schema / properties / x402 / properties / resource_response_hash / pattern
      Added value: +"^\\s*(?:sha256:)?[0-9a-fA-F]{64}\\s*$"
  2. Changed6 schema fields changed
    • removedInput schema / $defs
      Removed value: -{
      -  "X402EvidenceInput": {
      -    "description": "Public-safe x402 lifecycle hashes to adapt into ProofRelay payment context.",
      -    "properties": {
      -      "amount": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "Amount requested by the service.",
      -        "title": "Amount"
      -      },
      -      "currency": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "Payment currency or unit.",
      -        "title": "Currency"
      -      },
      -      "facilitator_hash": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "Optional SHA-256 hash of the facilitator identifier.",
      -        "title": "Facilitator Hash"
      -      },
      -      "network": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "x402 network identifier.",
      -        "title": "Network"
      -      },
      -      "payment_payload_hash": {
      -        "description": "SHA-256 hash of the submitted x402 payment payload.",
      -        "title": "Payment Payload Hash",
      -        "type": "string"
      -      },
      -      "payment_required_hash": {
      -        "description": "SHA-256 hash of the HTTP 402 challenge/instructions.",
      -        "title": "Payment Required Hash",
      -        "type": "string"
      -      },
      -      "payment_response_hash": {
      -        "description": "SHA-256 hash of facilitator or server payment response.",
      -        "title": "Payment Response Hash",
      -        "type": "string"
      -      },
      -      "replay_key": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "Replay key or idempotency key hash.",
      -        "title": "Replay Key"
      -      },
      -      "request_hash": {
      -        "description": "SHA-256 hash of the original request.",
      -        "title": "Request Hash",
      -        "type": "string"
      -      },
      -      "resource_response_hash": {
      -        "description": "SHA-256 hash of the resource delivered after payment.",
      -        "title": "Resource Response Hash",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "request_hash",
      -      "payment_required_hash",
      -      "payment_payload_hash",
      -      "payment_response_hash",
      -      "resource_response_hash"
      -    ],
      -    "title": "X402EvidenceInput",
      -    "type": "object"
      -  }
      -}
    • removedInput schema / properties / x402 / $ref
      Removed value: -"#/$defs/X402EvidenceInput"
    • addedInput schema / properties / x402 / properties
      Added value: +{
      +  "amount": {
      +    "anyOf": [
      +      {
      +        "type": "string"
      +      },
      +      {
      +        "type": "null"
      +      }
      +    ]
      +  },
      +  "currency": {
      +    "anyOf": [
      +      {
      +        "type": "string"
      +      },
      +      {
      +        "type": "null"
      +      }
      +    ]
      +  },
      +  "facilitator_hash": {
      +    "anyOf": [
      +      {
      +        "type": "string"
      +      },
      +      {
      +        "type": "null"
      +      }
      +    ]
      +  },
      +  "network": {
      +    "anyOf": [
      +      {
      +        "type": "string"
      +      },
      +      {
      +        "type": "null"
      +      }
      +    ]
      +  },
      +  "payment_payload_hash": {
      +    "type": "string"
      +  },
      +  "payment_required_hash": {
      +    "type": "string"
      +  },
      +  "payment_response_hash": {
      +    "type": "string"
      +  },
      +  "replay_key": {
      +    "anyOf": [
      +      {
      +        "type": "string"
      +      },
      +      {
      +        "type": "null"
      +      }
      +    ]
      +  },
      +  "request_hash": {
      +    "type": "string"
      +  },
      +  "resource_response_hash": {
      +    "type": "string"
      +  }
      +}
    • addedInput schema / properties / x402 / required
      Added value: +[
      +  "request_hash",
      +  "payment_required_hash",
      +  "payment_payload_hash",
      +  "payment_response_hash",
      +  "resource_response_hash"
      +]
    • addedInput schema / properties / x402 / type
      Added value: +"object"
    • removedInput schema / title
      Removed value: -"adapt_x402_payment_proofArguments"
  3. First observed

TDQS

A3.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false, and openWorldHint=false, so the safety profile is covered. The description adds useful context by saying the operation works on 'public-safe' inputs and maps them into an evidence profile, though it does not explain validation failures or output shape beyond what the output schema provides.

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?

The definition is a single front-loaded sentence with no filler. It efficiently communicates the core transformation and the target evidence profile without redundant restatement of the title.

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

Completeness3/5

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

This is a complex nested-object tool with many subfields and no schema descriptions, and the output schema exists so return values need not be explained. However, the one-sentence description does not cover optional metadata fields or clarify how the hashes are mapped into the payment_context evidence profile, leaving some ambiguity for correct invocation.

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 0%, so the description must carry parameter semantics. It names the five required hash categories, but it does not explain the optional fields such as amount, network, currency, replay_key, or facilitator_hash, nor does it clarify the nested x402 object's expected semantics beyond the field names.

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?

The description states a specific verb ('Map') and a specific resource set (x402 request/challenge/payload/facilitator/resource hashes) into a named evidence profile. It clearly identifies the x402 domain, but it does not distinguish this tool from nearby siblings such as normalize_payment_proof or wrap_mcp_tool_evidence.

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

Usage Guidelines2/5

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

The description gives no explicit when-to-use or when-not-to-use guidance, nor does it name alternatives or prerequisites. The x402-specific wording implies a context, but an agent must infer the selection criteria from the tool name and schema alone.

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