Skip to main content
Glama

APEX x402 Full MCP Hub

X402 endpoint doctor

x402_endpoint_doctor

Why will Coinbase not list an x402 endpoint, and can a standard client pay it? Reads its 402 like a client, checks what the facilitator and Bazaar enforce, asks Coinbase's validator, and gives each problem with its fix. $0.005 per call over x402.

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

Input Schema

NameRequiredDescriptionDefault
urlYesthe x402 endpoint (http/https)
methodNoGET or POST (optional)
paymentNoa signed x402 payment (the same base64 payload you would put in the PAYMENT-SIGNATURE header). Pass it here and the purchase completes inside this tool call.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior4/5

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

With no annotations, the description carries the full disclosure burden and does meaningful work: it reveals that the tool makes a live request posing as a client, consults the facilitator and Bazaar rules, calls Coinbase's validator, and returns per-problem fixes. It also discloses the price ($0.005 per call over x402) and that passing a signed payment completes the purchase inside the call. It stops short of stating timeout/failure behavior or whether diagnosis itself costs money if payment is omitted.

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 front-loaded with the problem it solves, then enumerates the checks performed and the output shape in one compact sentence, closing with cost. Nearly every clause carries information; the rhetorical question is slightly indirect but effective.

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?

No output schema exists, so the description must convey return shape, and 'gives each problem with its fix' only gestures at it without describing structure or severity. Cost and the multi-source checking behavior are covered, which is enough for a 3-parameter diagnostic, but the result format an agent would need to act on remains underspecified.

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 all three parameters (url, method, payment) are already documented, including the note that the payment payload completes the purchase inside the call. The description adds no further meaning about method selection or payment format beyond the schema, so the baseline 3 applies.

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 names a concrete verb-and-resource combination: diagnose an x402 endpoint's 402 response against Coinbase listing rules and standard-client payment capability. An agent can tell this is a diagnostic tool rather than a payment or discovery tool. It does not, however, name the closest siblings (x402_seller_check, x402_inspect, x402_payment_test, pay_preflight), so differentiation still requires comparing schemas.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is implied by the framing question ('Why will Coinbase not list an x402 endpoint, and can a standard client pay it?'), which tells the agent the triggering scenario. There is no explicit when-not guidance and no mention of when a lighter sibling like x402_inspect or pay_preflight would suffice.

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.