Skip to main content
Glama

Check an x402 endpoint before paying (x402 Doctor)

x402_check
Read-only

Does this paid x402 endpoint work for a paying agent? Pass, warn or fail with the main problems. Never pays the endpoint. Powered by x402 Doctor (x402-doctor.fizzl.eu, by Fizzl: fizzl.eu), which has the full report.

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

Input Schema

NameRequiredDescriptionDefault
urlYesThe x402 endpoint, e.g. https://api.example.com/paid
methodNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

B3.1/5.0
Behavior3/5

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

Annotations already declare readOnlyHint and openWorldHint, so the safety profile is partly covered; the description usefully adds 'Never pays the endpoint', which is a real concern for a paid-API tool and goes beyond the annotations. It also discloses the verdict vocabulary (pass/warn/fail) despite no output schema. However, it never says what is actually probed, whether it makes live network requests to the target, how long it takes, or what constitutes a 'main problem'.

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 lead question plus verdict sentence is well front-loaded and wastes nothing. The closing branding sentence — a product name, full domain, and vendor domain — is largely promotional and duplicates information already in the title, diluting an otherwise tight description.

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?

For a two-parameter read-only probe with no output schema, the description covers the essential safety guarantee and the shape of the verdict, which is enough to call it. It is still incomplete on the undocumented 'method' parameter and on what the check actually validates, leaving the agent guessing about scope.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is only 50%: 'url' is documented in the schema, but 'method' (an enum of GET/POST) has no description anywhere. The description adds no meaning to either parameter — it never mentions method selection or how the HTTP verb affects the check, so it fails to compensate for the coverage gap.

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 gives a concrete verb and resource — it diagnoses whether a paid x402 endpoint 'works for a paying agent' and returns pass/warn/fail. That framing is clearly distinct from the sibling checks (injection_check, presign_check, rugcheck), though the description never names them, so differentiation is left to the tool name and resource type.

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 at the top by the title and by 'before paying', so an agent can infer it should call this prior to paying an x402 endpoint. There is no explicit when-not guidance (e.g. for non-x402 URLs or endpoints already verified) and no statement of what to do with a 'warn' versus 'fail' verdict.

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