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.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
x402Yes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. 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"
  2. First observed

TDQS

B3.2/5.0
Behavior3/5

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

Annotations declare readOnlyHint=true, idempotentHint=true, and destructiveHint=false, so safety is covered. The description adds that the tool maps hashes into an 'evidence profile', implying a transformation, but it doesn't specify whether it computes anything, validates, or stores. No contradiction with annotations; no additional behavioral traits (e.g., side effects, required credentials) are disclosed.

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?

The description is a single sentence, which is efficient. It front-loads the action and lists the components. No wasted words, but it could benefit from a brief parameter-level clarification. It is structured acceptably for a concise description.

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?

The tool processes a complex nested object with many hashes, and there is an output schema. The description explains the high-level intent but not the semantics of each hash field, nor does it clarify how the output profile is used. Given the complexity, the description is adequate but lacks detail on field meanings and potential transformations.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/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 explain the 'x402' object and its fields. It only mentions 'request, 402 challenge, payment payload, facilitator response, and resource response hashes', which correspond to some fields, but doesn't explain the meaning of 'payment_required_hash' (402 challenge), 'facilitator_hash', or optional fields like amount, network, currency, replay_key. Most fields remain ambiguously named in the schema and are not elaborated in the description.

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 resource (x402 payment proof components into 'payment_context evidence profile'), which clearly indicates the tool's function. It distinguishes from siblings like 'normalize_payment_proof' by focusing on mapping hashes into a specific evidence profile, though it doesn't explicitly contrast with 'normalize_payment_proof' or other mapping tools.

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

Usage Guidelines3/5

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

The description implies usage when an x402 payment flow's hashes need to be structured into ProofRelay's payment_context profile. It provides no explicit when-to-use or when-not-to-use guidance, and no alternatives are mentioned. Sibling names like 'normalize_payment_proof' could be alternative, but no comparison is made.

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