Skip to main content
Glama

Beggar Bot

payment_header_debug

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_debug"
  }
}

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

A4.1/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and does substantial work: it declares 'Pure compute' (no state change), states the cost ($0.02 USDC via x402), and clarifies the settlement rule that charges occur only after a 2xx response and never on input errors. Remaining gaps are minor - no detail on output shape on failure or rate limits - but the mutation/safety profile is unambiguous.

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?

Front-loaded with the core purpose and the inputs/outputs, followed by operational caveats. It is a single dense sentence plus short trailing statements, with no filler, though the colon-chained clause list makes it slightly harder to scan than a bulleted structure would.

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

Completeness5/5

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

For a 3-parameter, compute-only tool with no output schema, the description covers everything an agent needs: what goes in, what comes back (payload, signer, time-window, requirement match), that nothing is mutated, and the billing/settlement semantics.

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; the description adds modest value by tying the 'header' argument to v1 X-PAYMENT vs v2 PAYMENT-SIGNATURE and by explaining that 'requirements' is what the field-by-field match is computed against. The optional 'now' parameter for the time-window check is not discussed in the description, which keeps it from a 5.

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 names a specific verb and resource ('Payment header decoder and x402 payment header debugger') and enumerates concrete outputs (decoded payload, recovered EIP-3009 signer, time-window check, field-by-field match against 402 requirements). It is far more specific than a tautology, but it never distinguishes itself from the sibling 'payment_header' tool, leaving the agent to infer the difference from the '_debug' suffix 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?

It gives a clear use case: 'find out why a payment was rejected', which tells the agent the context in which to reach for this tool. It offers no explicit exclusions or named alternatives (e.g. when to call 'payment_header' or 'verify_payment' instead), so the guidance is contextual rather than comparative.

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.