Skip to main content
Glama

x402_endpoint_check

Validate that an x402 API endpoint is standards-compliant and discoverable: requests it without payment and inspects the HTTP 402 challenge (version, scheme, network, atomic amount, payTo, absolute resource URL). Returns a list of concrete problems.

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

Input Schema

NameRequiredDescriptionDefault
urlYesAbsolute URL of the paid endpoint

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

No annotations are supplied, so the description carries the full burden and does meaningful work: it discloses that the tool issues a real network request, that it deliberately does so without payment (so no funds are spent and no 402 flow is completed), and that it reads version/scheme/network/amount/payTo/resource from the challenge. It stops short of stating timeout behavior, redirect handling, rate limits, or whether the probe could have side effects on the endpoint.

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?

A single dense sentence with the action front-loaded, followed by the mechanism and the return value, then the parenthetical enumerating exactly which challenge fields are checked. Every clause earns its place and nothing is repeated from the schema.

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 correctly closes the loop by saying it returns a list of concrete problems, and it enumerates the inspected fields, which is enough for an agent to know what it can diagnose. Minor gap: it never says whether a successful validation is reported as an empty list versus a pass flag, or what happens on non-402 / unreachable responses.

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?

Only one parameter and schema coverage is 100%, so the schema already documents 'url' as the absolute URL of the paid endpoint. The description adds only the implied context that this URL is what gets requested unpaid; it contributes no format, scheme constraint, or validation rule beyond the schema. Baseline 3 applies.

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 ('Validate that an x402 API endpoint is standards-compliant and discoverable') and goes on to name the exact mechanism (unpaid request, HTTP 402 challenge inspection) and the return (list of problems). An agent can tell this apart from the lone sibling china_reachability purely on domain and intent without opening a schema.

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: an agent can infer this is a pre-integration/diagnostic check to run before wiring up a paid endpoint. But there is no explicit when-to-use, no when-not (e.g. live production endpoints, endpoints you cannot afford to probe), and no named alternative path for reachability vs compliance. Minimum viable guidance only.

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.