Skip to main content
Glama

X402 ping

x402_ping
Read-onlyIdempotent

The smallest real x402 paid call: costs $0.001 in USDC and returns ok with the server time and payment network. Useful for checking that an x402 client can sign and settle a payment end to end. Costs $0.001 USDC on Base via x402.

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

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault
okNoboolean, e.g. true
paidNoboolean, e.g. true
priceNostring, e.g. "$0.001"
networkNostring, e.g. "eip155:84532"
serverTimeNostring, e.g. "2026-10-22T15:49:53.808Z"

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": true,
      +  "properties": {
      +    "network": {
      +      "description": "string, e.g. \"eip155:84532\""
      +    },
      +    "ok": {
      +      "description": "boolean, e.g. true"
      +    },
      +    "paid": {
      +      "description": "boolean, e.g. true"
      +    },
      +    "price": {
      +      "description": "string, e.g. \"$0.001\""
      +    },
      +    "serverTime": {
      +      "description": "string, e.g. \"2026-10-22T15:49:53.808Z\""
      +    }
      +  },
      +  "type": "object"
      +}
  2. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent and openWorld, so the bar is lower, and the description still adds material behavior beyond them: an actual monetary cost of $0.001 USDC, settlement on Base via x402, and the fact that a real payment is signed and settled. It is vague about wallet/auth prerequisites and whether failures still incur cost, but the cost-bearing nature of the call is disclosed.

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 cost-bearing nature is front-loaded and the text is short, but "Costs $0.001 USDC on Base via x402" restates the opening sentence's price and currency, spending a third sentence on already-delivered information.

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 zero inputs and an output schema present, the description need not explain return values, and it covers price, network and purpose adequately. The only gap is operational context such as needing a funded x402-capable client before calling, which is implied rather than stated.

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?

The tool takes zero parameters, so there is nothing for the description to disambiguate and the baseline of 4 applies. The schema is an empty object with full (vacuous) coverage.

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 operation and outcome: a minimal paid x402 call that returns ok with server time and payment network. It is clear this is a diagnostic/payment-verification endpoint rather than an analytics tool like the x402 market siblings, though it never explicitly names or contrasts those alternatives.

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?

"Useful for checking that an x402 client can sign and settle a payment end to end" gives a clear when-to-use condition tied to client/payment validation. There is no explicit when-not-to-use or named alternative, but the intended scenario is unambiguous.

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