Skip to main content
Glama

web_x402_check

Read-only

x402 paywall preflight check — Preflight any x402 paid URL without paying: calls it once unpaid, decodes the 402 PAYMENT-REQUIRED header (x402 v2) or JSON body (v1) and returns every payment option (scheme, network, USDC price in dollars, atomic amount, payTo validity, timeout, EIP-712 token name), whether a Bazaar discovery schema is present and its input keys, a list of issues, and a verdict PAYABLE / TESTNET_ONLY / INVALID / NOT_PAYWALLED / NOT_X402. Use it to compare prices or validate your own paywall. url: required; method: optional GET (default) or POST. Nothing is paid or signed. Price: $0.002 USDC (Base, via x402).

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

Input Schema

NameRequiredDescriptionDefault
urlYeshttps://blockrun.ai/api/v1/pm/polymarket/markets

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, and the description adds substantial behavior beyond them: a single unpaid call to the target, v2 header vs v1 JSON body decoding paths, the exact fields returned, the five possible verdicts, and a stated cost of $0.002 USDC. The side-effect profile is explicit ('Nothing is paid or signed'), so an agent knows precisely what will and will not happen.

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 the 'without paying' guarantee are front-loaded, and the dense parenthetical enumerations of returned fields are efficient rather than padded. It is a long single block, though, and the trailing pricing sentence plus deep field lists make it heavier to scan than ideal.

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 takes on the burden of enumerating return fields and verdict values, which is exactly what an agent needs to interpret results. The only real completeness defect is the reference to a 'method' parameter absent from the schema, which could confuse an agent attempting a POST.

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

Parameters4/5

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

Schema coverage is 100%, but the schema's only param description is a bare example URL rather than meaning, so the description genuinely adds value by clarifying that 'url' is the x402 paid URL to preflight and is required. It also mentions a 'method: optional GET (default) or POST' parameter that does not exist in the input schema, which is a real inconsistency an agent could trip over.

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?

The description names a specific verb and resource ('x402 paywall preflight check — Preflight any x402 paid URL without paying') and immediately distinguishes itself from generic fetching siblings by stating it decodes the 402 challenge rather than returning page content. The enumerated outputs and verdict names leave no ambiguity about what the tool produces.

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 to compare prices or validate your own paywall' gives a concrete use case, and the repeated 'without paying' / 'Nothing is paid or signed' framing tells the agent this is a safe preflight rather than a payment action. It stops short of naming an explicit alternative or stating when not to use it, so it lands just below the top band.

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