Skip to main content
Glama

x402 integration test: pay $0.001, get back the payer, network and amount the server saw

ping
Read-only

x402 integration test for agents and payment clients: after a real USDC payment it confirms the payment arrived and echoes back what the server saw: network (Base or Arc), scheme, payer address, amount, asset and recipient, plus server time and an optional echo string. Useful for checking that a wallet, x402 client and budget limits work end to end before calling costlier services, and for uptime monitoring. The cheapest paid call VerifyLite offers. Paid via x402; see list_prices.

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": "ping"
  }
}

Input Schema

NameRequiredDescriptionDefault
echoNoOptional text to echo back (up to 256 characters).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations only give readOnlyHint/openWorldHint; the description adds the materially important context that this call requires an actual USDC payment, its price, that it runs over x402, and precisely what payload comes back. It does not discuss failure/insufficient-budget behavior, and the readOnlyHint=true framing could mislead an agent into thinking nothing of value moves, though funds are spent — a nuance worth calling out.

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 a single dense but well-ordered paragraph that front-loads what the call does and what it returns before moving to use cases and pricing. Every clause carries information; it is long but not padded.

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?

With no output schema, the description does the necessary work of enumerating return fields (network, scheme, payer, amount, asset, recipient, server time, echo), which is exactly what an agent needs to interpret results. What's missing is error/failure behavior for a payment-gated call, which matters for a tool that can fail on budget or wallet state.

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% for the single optional 'echo' parameter, so the schema already carries the semantics; the description only restates 'an optional echo string'. Baseline 3 applies — no added format or behavior detail, and notably the prose does not resolve the schema's internal mismatch between maxLength 2048 and 'up to 256 characters'.

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 action — a real USDC payment is made and the tool confirms arrival plus echoes back what the server observed (network, scheme, payer, amount, asset, recipient, server time). It also distinguishes itself from the rest of the catalog by declaring itself 'the cheapest paid call VerifyLite offers' and pointing at list_prices, so an agent can tell it apart from the other paid/chain 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?

Explicit use cases are given: verifying a wallet, x402 client and budget limits end to end before calling costlier services, and uptime monitoring. That effectively routes the agent away from more expensive services toward this smoke-test call. It stops short of an explicit when-not-to-use clause or naming a specific alternative sibling to use 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