Skip to main content
Glama

x402 endpoint checker

x402_check
Read-only

Calls an endpoint without paying and reads its x402 payment requirements (v1 body and v2 PAYMENT-REQUIRED header). Returns price in USD, network, pay-to address, description, discovery info, latency and a list of setup problems with a grade. Use it before paying an unknown API, or to test your own. Paid tool: $0.004 per call in USDC via x402 at GET https://x402-tools.com/v1/x402-check. Calling it here returns the endpoint, price and how to pay.

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 to test.
methodNoHTTP method to probe with: GET (default) or POST.

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?

Beyond readOnlyHint/openWorldHint the description discloses the key behavior an agent needs: the target is contacted without payment, both x402 protocol versions are read, and the tool itself costs $0.004 per call in USDC at a stated endpoint. The closing sentence ("Calling it here returns the endpoint, price and how to pay") is ambiguous about what happens on an unpaid invocation, slightly muddying the cost picture.

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 capability and return values are front-loaded in the first two sentences, with usage and pricing trailing. The pricing sentences partially repeat themselves ("Paid tool: $0.004 per call... Calling it here returns the endpoint, price and how to pay"), which is the only real slack.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/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 carries the return-value burden and does so thoroughly: price, network, pay-to address, description, discovery info, latency, and a graded problem list. Inputs are fully covered by the schema, and cost plus invocation context are stated.

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%, so both parameters (url, method with GET default / POST) are already documented in structured data. The description adds nothing about probe semantics, for example what differs when POST is chosen, so 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?

Specific verb and resource: it probes an endpoint without paying and extracts x402 payment requirements (v1 body, v2 PAYMENT-REQUIRED header), and it enumerates what it returns (price, network, pay-to address, discovery info, latency, problems with a grade). The purpose is unmistakable, but it never distinguishes itself from the closely related sibling x402_preflight, so it stops short of a 5.

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?

"Use it before paying an unknown API, or to test your own" gives clear situational guidance covering both the external-discovery and self-testing cases. It stops short of naming alternatives or stating when not to use it, so the agent must infer the boundary with x402_preflight and wallet.

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