Skip to main content
Glama

check_x402

Read-onlyIdempotent

x402 Doctor: is a URL a valid agent-payable paid resource (v1+v2). GET /x402/x402-check?url= — $0.01.

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

Input Schema

NameRequiredDescriptionDefault
urlYeshttps URL of a paid endpoint
paymentNoOptional. Your x402 payment proof for this exact call — the PAYMENT-SIGNATURE value produced by settling this route's 402 challenge (USDC on Base, Polygon or Solana), or an MPP 'Authorization: Payment ...' value. Omit on a first call: the tool then returns the live 402 challenge to pay against. This server relays your proof upstream and retries; it never creates or settles payments itself.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / payment / description
      Previous value: -"Optional. Your x402 payment proof for this exact call — the PAYMENT-SIGNATURE value produced by settling this route's 402 challenge (USDC on Base or Solana), or an MPP 'Authorization: Payment ...' value. Omit on a first call: the tool then returns the live 402 challenge to pay against. This server relays your proof upstream and retries; it never creates or settles payments itself."New value: +"Optional. Your x402 payment proof for this exact call — the PAYMENT-SIGNATURE value produced by settling this route's 402 challenge (USDC on Base, Polygon or Solana), or an MPP 'Authorization: Payment ...' value. Omit on a first call: the tool then returns the live 402 challenge to pay against. This server relays your proof upstream and retries; it never creates or settles payments itself."
  2. First observed

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint and destructiveHint=false, so the safety profile is covered. The description adds genuinely new context — the $0.01 call cost and multi-version (v1+v2) support — but omits the operationally important behavior that a first call without a proof returns a live 402 challenge and that the server relays proofs upstream without settling; that only lives in the schema.

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?

It is a single compact line with the core question front-loaded and no filler. The trailing 'GET /x402/x402-check?url= — $0.01' is partly transport/implementation detail, but the price tag is worth keeping.

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?

With only two well-documented parameters and no output schema, the description should describe the shape of the answer — pass/fail verdict, version detected, diagnostic reasons — but instead says nothing about what a check returns. For a tool branded 'Doctor', that diagnostic payload is the main thing an agent needs to anticipate.

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 both the url and the optional payment proof are already fully documented with format, source chains and the omit-on-first-call rule. The description only repeats the 'url=' parameter name and adds no syntax or format detail, so baseline 3 is correct.

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 specific check — whether a URL is a valid agent-payable paid resource — and scopes it to x402 v1 and v2. That is far more concrete than a tautology, but it never contrasts itself with adjacent validation tools (check_webmcp, get_agent_card, lint_protocol_card), so an agent still has to reason about which check applies.

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

Usage Guidelines2/5

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

There is no explicit when-to-use, when-not-to-use, or alternative guidance. The only hint is the phrase 'agent-payable paid resource', leaving the agent to infer that this tool is for payment-rail validation rather than general URL or protocol checking.

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