Skip to main content
Glama

The x402 payment header for a signed voucher

hold_header
Read-onlyIdempotent

After hold_pay and the payer's signature: the header the merchant reads (PAYMENT-SIGNATURE, or X-PAYMENT for x402 version 1), base64 JSON with the voucher { hold, cumulative, signature }. Reads no chain and sends nothing; recovers a 65-byte signature to the hold's payer. Send the same request again with header.name set to header.value.

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": {
      "payment_required": "<payment_required>",
      "voucher": "<voucher>",
      "signature": "<signature>"
    },
    "name": "hold_header"
  }
}

Input Schema

NameRequiredDescriptionDefault
voucherYesThe voucher hold_pay returned, as it returned it
signatureYesThe payer's signature of hold_pay's typed_data (0x hex)
payment_requiredYesThe same payment_required given to hold_pay

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.6/5.0
Behavior3/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; the description usefully reinforces this with 'Reads no chain and sends nothing'. It also discloses that it locally recovers a 65-byte signature against the hold's payer, which matters behaviorally, but it does not say what happens when recovery fails or the voucher is mismatched with the hold.

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?

Prerequisite, output shape, and next action are front-loaded in a compact block with no filler. The prose is telegraphic and slightly dense ('Reads no chain and sends nothing; recovers a 65-byte signature to the hold's payer'), which costs a little readability but wastes no words.

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?

There is no output schema, so the description must carry the return shape, and it does: header name variants plus the base64 JSON payload contents. Inputs, prerequisite ordering, and the subsequent request are all covered; only failure behavior on signature mismatch is absent.

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 coverage is 100% and the property descriptions already say voucher is 'the voucher hold_pay returned' and signature is '0x hex'. The description adds only marginally, by restating the voucher's internal shape { hold, cumulative, signature } and the 65-byte signature length; the baseline 3 applies when the schema carries the semantics.

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 concrete artifact: the merchant-facing x402 payment header (PAYMENT-SIGNATURE, or X-PAYMENT for v1) carrying a base64 JSON voucher. That is specific enough to separate it from hold_pay (which precedes it) and from the other hold_* tools, though it never explicitly contrasts itself with credit_bill_header, the other header-producing sibling.

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 clear precondition ('After hold_pay and the payer's signature') and a clear follow-up ('Send the same request again with header.name set to header.value'), so an agent knows its position in the flow. It does not name when-not-to-use or an alternative for agents that have not yet called hold_pay.

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