Skip to main content
Glama

minia2a — hosted x402 API marketplace (HTTP)

x402-publish-1793636034382-payment-header-check

payment-header-check: Payment Header Check API: reads an x402 PAYMENT-SIGNATURE header before you send it - base64/UTF-8/JSON, version, authorization fields, clock window, who signed and, with the seller's PAYMENT-REQUIRED, payTo/amount/network/asset. Nothing is sent anywhere. $0.005 USDC per check (1 cent is this catalog's minimum). Method: POST Input: {"payment_signature": "string, required", "payment_required": "string, optional"}

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "x402-publish-1793636034382-payment-header-check"
  }
}

Input Schema

NameRequiredDescriptionDefault
payment_requiredNo
payment_signatureNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / payment_required
      Added value: +{
      +  "type": "string"
      +}
    • addedInput schema / properties / payment_signature
      Added value: +{
      +  "type": "string"
      +}
  2. Added

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations present, the description carries the burden and does disclose key behavior: "Nothing is sent anywhere" rules out network side effects, and the explicit $0.005 USDC charge per check is important cost context. What's missing is whether invalid input produces an error or a structured verdict, and whether there are rate limits, but the safety and cost profile is otherwise well covered.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the core purpose, but the first sentence is a long run-on clause chain, and the "Payment Header Check API" restatement plus the pricing aside add noise. The parenthetical "1 cent is this catalog's minimum" is confusing when the stated price is $0.005 and reads as contradictory filler rather than useful information.

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 two-parameter validation tool with no annotations and no output schema, the description covers purpose, inputs, side-effect profile, and cost — enough to call it correctly. The remaining gap is that no output schema exists and the description never describes the shape of the result (pass/fail field, per-check findings), so the agent cannot anticipate the response structure.

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 description coverage is 0% and neither parameter has a description, so the description must compensate — and it largely does by identifying payment_signature as the x402 PAYMENT-SIGNATURE header and payment_required as the seller's PAYMENT-REQUIRED header, plus explaining what the second unlocks. It does not state the expected raw string format (e.g., base64 directly vs. with a scheme prefix), which leaves a small ambiguity.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource: reads/validates an x402 PAYMENT-SIGNATURE header before submission. It enumerates exactly what is inspected (base64/UTF-8/JSON encoding, version, authorization fields, clock window, signer) and what the optional PAYMENT-REQUIRED adds (payTo/amount/network/asset). No sibling in this catalog does x402 header pre-flight validation, so the tool is unambiguous.

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?

"before you send it" gives a clear temporal trigger for use, and the conditional phrasing "with the seller's PAYMENT-REQUIRED" tells the agent when to supply the optional second parameter. It stops short of naming an alternative tool or stating when not to use it, which is understandable given the ~1000-tool catalog has no direct equivalent.

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.