Skip to main content
Glama

P0: agent memory and utilities

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 a link to the full schema; call that URL with an x402 or MPP client to get the data. Bad input is refused before any charge.

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. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent and non-destructive, and the description adds real value on top: the $0.001 per-call price, the two-step flow (return the request, then call that URL with an x402/MPP client), and that invalid input is rejected before any charge. The remaining wrinkle is that it is not entirely unambiguous whether invoking this tool itself incurs the $0.001 or only the returned URL does, which slightly muddies the cost picture for a cautious agent.

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?

The content is packed into one long, comma-spliced sentence that repeats itself ("Use when you test…" followed by "a test target for x402/MPP clients, use it in your integration tests"). The key facts are present but not front-loaded or broken into scannable clauses.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema, the description must carry the return story, and it only says it returns "the exact paid x402 request" plus a schema link. That is enough to know a follow-up HTTP call is required, but the agent gets no sense of what the returned payload contains or what the free dry-mode response looks like.

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 coverage is 100% and both parameters (dry, msg) carry their own descriptions, so the schema does the heavy lifting. The tool description adds nothing about either parameter; the documented dry=1 free-rail listing and the msg echo behavior are only visible in the 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 states a concrete verb and resource: it is a test target that returns the exact paid x402 request for a given input, hitting GET /x402/test. That is enough for an agent to tell it apart from the real purchase siblings (buy_brandwatch, list_paid_data_products), although it never names those alternatives explicitly.

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?

"Use when you test an x402 or MPP client, wallet, SDK, facilitator or CI" gives a clear audience and condition, and "use it in your integration tests" reinforces it. There is no explicit when-not statement, but the test-target framing makes non-use for production data implicit.

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