Skip to main content
Glama

x420_x402_probe

Read-onlyIdempotent

x402 endpoint probe: Sends one unpaid GET to a URL and decodes its x402 payment challenge (v2 PAYMENT-REQUIRED header or v1 JSON body): version, scheme, network, asset, price in USDC, payTo, resource, Bazaar extension, plus a conformance checklist. Never pays. Source: the endpoint itself. Not professional, legal, insurance, engineering, medical, financial or tax advice. Price: $0.002 USDC per call (x402 on Base). This hosted tool does NOT pay and does NOT return the deliverable: it validates the input and returns payment instructions (pay_to, network, price and the x402 URL to pay at). GET the url; read PAYMENT-REQUIRED from the 402; retry with PAYMENT-SIGNATURE (x402 v2). Or run the local x420-mcp server with your own wallet key to pay automatically. Deliverable once paid: JSON: status, latency_ms, x402_version, accepts[{scheme, network, asset, amount, pay_to}], bazaar_extension, checks{}, conformant.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "url": "<url>"
    },
    "name": "x420_x402_probe"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYespublic http(s) URL of a paid endpoint

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior5/5

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

Well beyond the annotations (readOnly, idempotent, openWorld, non-destructive), it discloses that the tool never pays, that the hosted version returns payment instructions rather than the deliverable, the $0.002 per-call price, and that the data source is the endpoint itself. That is exactly the kind of behavioral context an agent needs before calling a hosted, metered tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loads the core action in the first clause and follows with field list, constraints, pricing, and the payment workflow. Despite its length, every sentence carries operational information for a metered, two-step payment tool. No filler or repetition.

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, so the description compensates by sketching the returned structure (status, latency_ms, x402_version, accepts[], bazaar_extension, checks{}, conformant) and the payment-required fields. The distinction between the hosted stub response and the paid deliverable is the one area that could be sharper, but an agent has enough to call it correctly.

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 the single parameter already documents itself as a public http(s) URL of a paid endpoint. The description adds only the useful nuance that the request is a GET rather than a POST. Baseline 3 applies when the schema does the heavy lifting.

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?

States a specific verb and resource: 'Sends one unpaid GET to a URL and decodes its x402 payment challenge', then enumerates exactly which fields it extracts (version, scheme, network, asset, price, payTo, resource, Bazaar extension). An agent knows precisely what this does and what it returns without opening the schema.

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?

Explains the operating mode clearly: use it against a known paid endpoint, read PAYMENT-REQUIRED from the 402, retry with PAYMENT-SIGNATURE, or run the local x420-mcp server with a wallet key to pay automatically. It does not name the other x402 siblings (discover, ping) as alternatives, so routing between those is left to inference, but the when/how context is otherwise explicit.

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