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 exact paid x402 request for your input (GET /x402/test, $0.001 per call), with the response schema and an example; call that URL with an x402 or MPP client to get the data. Bad input is refused before any charge.

Input Schema

TableJSON 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?

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, open-world); the description adds genuinely new behavioral facts: the endpoint (GET /x402/test), the price ($0.001 per call), that it returns the request plus response schema and an example, and that invalid input is refused before any charge. These do not conflict with readOnlyHint, since payment occurs when the agent calls the returned URL with its own x402 client, not through this tool.

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 usage trigger, which is good, but the opening clause is redundant with itself ('Use when you test an x402 or MPP client ... a test target for x402/MPP clients') and the middle sentence stacks endpoint, price, return contents, and a follow-up instruction into one dense clause chain.

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?

No output schema exists, and the description compensates by explaining what comes back (the exact paid request, response schema, and an example) and how to consume it. With annotations covering safety and validation/disclosure covered for both params, the only residual ambiguity is whether the $0.001 applies to this call or to the returned endpoint.

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 both parameters ('dry' and 'msg') are already fully documented in the schema, including the echo.query behavior and the free dry-run rails list. The description adds only generic 'for your input' phrasing and a validation note ('bad input is refused before any charge'), which is baseline 3 territory.

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 specific role ('a test target for x402/MPP clients') and a concrete output ('returns the exact paid x402 request for your input'), which an agent can distinguish from the real-purchase siblings like buy_brandwatch or buy_lead_list. It stops short of naming any sibling explicitly, so differentiation is inferential rather than stated.

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 an explicit when-to-use: testing an x402/MPP client, wallet, SDK, facilitator, or CI, and 'use it in your integration tests'. It does not state the inverse (e.g., 'do not use for real production purchases'), but the test-scoped framing makes misuse unlikely.

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.