Skip to main content
Glama

Beggar Bot

payment_header

Payment header decoder and x402 payment header debugger: paste an X-PAYMENT (v1) or PAYMENT-SIGNATURE (v2) header, get the decoded payload, recovered EIP-3009 signer, time-window check and a field-by-field match against the 402 requirements - find out why a payment was rejected. Pure compute. Payment settles only after a successful (2xx) response; input errors are never charged. Paid: $0.02 USDC via x402.

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": {
      "header": "<header>"
    },
    "name": "payment_header"
  }
}

Input Schema

NameRequiredDescriptionDefault
nowNooptional unix seconds
headerYesbase64 X-PAYMENT or PAYMENT-SIGNATURE value (or decoded JSON)
requirementsNo402 body / PAYMENT-REQUIRED header / accepts[] / one requirement

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior3/5

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

With no annotations, the description does real work: 'Pure compute', settlement only after a 2xx response, input errors never charged, and the $0.02 USDC x402 price. It still omits failure modes beyond 'input errors' (e.g. what a signer-recovery mismatch returns) and any indication of response shape, so a debugging agent lacks the full behavioral picture.

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?

Purpose is front-loaded in a single dense sentence, with output capabilities enumerated inline, and the pricing/billing caveats compressed into three short sentences. No filler.

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?

For a no-annotation, no-output-schema tool the description covers purpose, expected outputs, cost and charging behavior, which is most of what an agent needs. It falls short only on the undocumented `now` parameter and on describing the shape of a rejection result.

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%, so the baseline is 3; the description reinforces that `header` accepts both base64 v1/v2 values and decoded JSON, but that is largely restated from the schema. The optional `now` parameter is never mentioned in the description, so no extra meaning is added there.

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 and resource ('decoder', 'debugger') plus the exact input type (X-PAYMENT v1 / PAYMENT-SIGNATURE v2) and enumerates the outputs: decoded payload, recovered EIP-3009 signer, time-window check, field-by-field match. It does not differentiate from the similarly named sibling payment_header_debug, so the agent cannot be certain which to pick from the text alone.

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 triggering scenario ('find out why a payment was rejected') and names the accepted input formats, so an agent knows when this applies. It offers no explicit when-not guidance or named alternative, which is the only gap.

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.