Skip to main content
Glama

x402 test purchase

x402_test_purchase
Read-onlyIdempotent

Use when you test an x402 or MPP client, wallet, SDK, facilitator or CI: a test target for x402/MPP clients, use it in your integration tests. Returns the paid x402 request for your input (GET /x402/test, $0.001 per call; schema linked). Call that URL with an x402 or MPP client to get the data. Bad input is refused before any charge.

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

Input Schema

NameRequiredDescriptionDefault
dryNodry=1: free list of every accepted rail, nothing charged
msgNoAny text; echoed back in echo.query. Any other query parameter or a POST body (hashed) works too

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.8/5.0
Behavior4/5

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

Beyond the annotations (readOnly/idempotent/openWorld/non-destructive), the description discloses the decisive behavioral facts an agent needs: real money is charged ($0.001 per call), the request is a paid x402 flow at GET /x402/test that must be driven by an x402/MPP client, and validation happens before any charge. The billing-on-a-readOnly-annotated tool could be stated more explicitly, but it is not a contradiction since readOnlyHint concerns side effects, not cost.

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?

It is short enough but structurally loose, mixing the use-when clause, the purpose clause, and the mechanics into one run-on first sentence with a redundant repetition ('a test target for x402/MPP clients, use it in your integration tests'). The most decision-relevant fact, the per-call charge, is buried mid-sentence rather than front-loaded.

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, all-optional test tool with no output schema, the description supplies the essentials: the endpoint, the price, the fact that a paid x402 response is returned, that a client is needed to consume it, and that invalid input costs nothing. Only the sibling relationship with the free x402 tools is left unaddressed.

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 description coverage is 100%, so the schema already defines both parameters (dry, msg) including the dry=1 free-mode behavior. The description adds only marginal meaning, mainly that arbitrary query parameters or a hashed POST body are also accepted, which is not visible in the two-property schema.

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 identifies the tool as 'a test target for x402/MPP clients' that 'Returns the paid x402 request for your input' at GET /x402/test, which is a concrete verb+resource. It is less sharp than it could be because the opening clause is a use-when condition rather than a purpose statement, and because it never distinguishes this paid endpoint from the free x402_echo/x402_ping siblings.

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 clear context for use: testing an x402 or MPP client, wallet, SDK, facilitator, or CI pipeline, and running it in integration tests. It adds one useful boundary ('Bad input is refused before any charge') but names no alternative tool and no situation in which the caller should prefer x402_echo, x402_ping, or a plain HTTP call instead.

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