Skip to main content
Glama

X402 payment test

x402_payment_test

Test your x402 client end to end without buying anything else: pay a real price and get an echo back with what we saw (network, amount, payer). Use it once before wiring a paid tool into an agent. $0.004 per call over x402 (USDC on Arc, Base or Solana, or XNT on X1). Call once without payment for the terms, sign them with your own wallet, call again with payment.

Input Schema

NameRequiredDescriptionDefault
paymentNoa signed x402 payment (the base64 payload you would put in PAYMENT-SIGNATURE). Pass it and the purchase completes inside this tool call.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description carries the burden and does well: it discloses the real monetary cost ($0.004 per call), the accepted rails (USDC on Arc/Base/Solana, XNT on X1), that a genuine payment occurs, and what the response contains. It stops short of stating irreversibility of the spend, failure/refund behavior if the signed payload is rejected, or whether funds move on the no-payment terms call.

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?

Front-loads the value proposition, then cost and rails, then the call sequence, in four tight sentences with no filler. Every clause contributes a fact the agent needs (price, chains, handshake, precondition for use).

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 one-parameter tool with no output schema, the description covers cost, rails, invocation sequence, and the shape of the returned echo (network, amount, payer). There is no output schema, but the return content is described well enough that an agent knows what to expect.

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, and the description adds genuine meaning: `payment` is optional and the omission is a deliberate negotiation step that returns terms to be signed rather than an error. That two-phase semantics is not obvious from the schema alone, which only says a signed payload completes the purchase.

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 verb+resource: end-to-end test of an x402 client that charges a real price and echoes back network, amount and payer. It implicitly separates itself from sibling diagnostics (x402_endpoint_doctor, pay_preflight, x402_inspect) by framing itself as a live self-test, but never names an alternative, so the differentiation is inferential rather than explicit.

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 clear when-to-use guidance: 'Use it once before wiring a paid tool into an agent', plus the exact two-step procedure (call without `payment` for terms, sign, call again). It never states when NOT to use it or points to a specific sibling for cheaper/static validation, so it stops short of full routing guidance.

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.