Skip to main content
Glama

x402-endpoint-check

x402 endpoint check. Any public https URL in, a payment-posture scorecard out, probed live on the call: the 402 challenge decoded from the PAYMENT-REQUIRED header or the body, the advertised scheme, network, amount, asset, pay-to, and resource graded by fixed rules, with latency and the raw probe outcome. Unreachable targets return their fetch outcome as the result. Price: $0.002 per call, paid in USDC on Base mainnet over x402; an unpaid call answers HTTP 402 with the exact machine-readable payment terms.

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
urlYesThe public https URL of the x402 endpoint to check, e.g. https://example.com/api. http, IP literals, userinfo, and private hostnames are rejected.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.7/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 burden and does well: it discloses that probing happens live on the call, that unreachable targets return their fetch outcome rather than erroring, and that each call costs $0.002 paid in USDC on Base mainnet over x402, with unpaid calls returning HTTP 402 plus machine-readable payment terms. It stops short of naming timeout behavior, rate limits, or explicitly declaring the operation read-only.

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 purpose and output are front-loaded in the first two clauses, followed by the pricing/payment behavior, so nothing important is buried. It is somewhat dense in a single run-on sentence and repeats "check/probed," but every clause (output contents, unreachable handling, price, 402 behavior) earns its place.

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?

There is no output schema, so the description must explain return values, and it does: scorecard fields, grading rules, latency, raw probe outcome, and the unreachable-target case. It also covers the unusual cost/payment semantics. Minor gaps remain around timeouts and any per-caller rate limits, 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?

There is a single required `url` parameter whose schema description is already fully documented (public https, with http, IP literals, userinfo, and private hostnames rejected). The description restates "any public https URL in" without adding format, syntax, or validation details beyond the schema, so the baseline of 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 states a specific verb and resource ("x402 endpoint check", probing a public https URL) and enumerates exactly what the returned scorecard contains: decoded 402 challenge, scheme, network, amount, asset, pay-to, resource, latency, and raw probe outcome. It is clearly distinguishable from the unrelated sibling utilities, though no sibling performs a comparable function so no direct differentiation is needed.

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 rather than explicit: the tool is for checking the payment posture of an x402 endpoint, and "any public https URL" defines the input scope. There is no explicit when-to-use/when-not guidance or named alternative, so an agent must infer the appropriate context.

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