Skip to main content
Glama

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

TableJSON 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.3/5.0
Behavior3/5

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

There are no annotations, so the description carries the full burden. It discloses that payment occurs, the cost ($0.004), supported networks and tokens, and that the tool performs a real purchase (not a mock). However, it does not state what happens on failure, whether refunds are issued, or what the response structure is beyond 'echo back'. The behavior is mostly transparent for a test tool, but some edge behaviors remain undisclosed.

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?

The description is compact, three sentences that front-load the most critical behavior (test, echo, real payment) and then provide cost and usage sequence. Every sentence carries distinct information. Minor deduction because the sentence about networks and tokens is a list embedded in a longer sentence, slightly reducing scannability.

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 single-parameter, no-output-schema tool, the description covers the essential operational details: what to do before, what to pass, what to expect back, and the cost. It lacks explicit failure/refund behavior, but for an end-to-end test tool the provided information is sufficient for an agent to execute the two-step flow correctly. The absence of an output schema raises the bar for describing return values, and the description partially addresses this by naming the echo fields (network, amount, payer).

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% (the single `payment` parameter is documented in the schema), so the baseline is 3. The description adds value beyond the schema by explaining what `payment` actually is ('the base64 payload you would put in PAYMENT-SIGNATURE') and how to use it in a two-step process. It also explains what happens when it is omitted, effectively documenting both the 'with' and 'without' cases, which is more than the schema alone provides.

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?

The description states a specific verb ('Test'), a clear resource (your x402 client end to end), and a concrete expected outcome ('get an echo back with what we saw'). It distinguishes itself from payment, inspection, and how-to sibling tools by focusing on an end-to-end paid test that returns network, amount, and payer. The inclusion of 'return an echo' makes the purpose vivid and unambiguous.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description gives explicit when-to-use guidance: 'Use it once before wiring a paid tool into an agent.' It also provides a concrete call sequence: call once without `payment` for terms, sign them, then call again with `payment`. This is rare operational guidance that tells an agent exactly how to sequence invocations and what to expect at each step.

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