Skip to main content
Glama

Live x402 endpoint preflight

x402_preflight
Read-only

Before paying an x402 service: safely makes one unauthenticated HTTPS request, confirms the endpoint is live and returns a current 402 challenge, then checks its price, USDC token, payee and site. Never signs or settles a payment. HTTPS only; redirects and private/local targets are refused. Price: $0.01 USDC per call after 25 free calls per day.

Input Schema

NameRequiredDescriptionDefault
urlYesThe public HTTPS x402 endpoint to preflight.
_paymentNox402 v2 payment: base64 PaymentPayload, as you would send in the PAYMENT-SIGNATURE header. Only needed after the free allowance is used.
maxPriceNoOptional. Your maximum acceptable US-dollar price, e.g. "0.05".
knownPayeesNoOptional. Payee addresses you have paid before (max 200). GET: comma-separated.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior5/5

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

Adds substantial context beyond readOnlyHint/openWorldHint: it never signs or settles a payment, only unauthenticated HTTPS, refuses redirects and private/local targets, and discloses the $0.01 USDC cost after 25 free calls per day. Cost and safety refusal rules are exactly the behavioral facts annotations cannot convey.

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?

Front-loaded with the decision-relevant condition ('Before paying…') and every clause earns its place (safety scope, no signing, HTTPS-only, cost). It is a single run-on sentence with several stacked clauses, which is dense but not padded.

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?

No output schema exists, and the description still tells the agent what a successful call yields (liveness confirmation, 402 challenge, price, token, payee, site). Combined with the safety and pricing disclosures, nothing an agent needs to call it correctly is missing.

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 url, _payment, maxPrice and knownPayees are already documented in the schema. The description mentions the price/token/payee checks but adds no syntax or usage detail for maxPrice or knownPayees, so 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 ('preflight' an x402 endpoint) and enumerates exactly what it verifies: liveness, a current 402 challenge, price, USDC token, payee and site. That is far more specific than the sibling names address_check/link_check/payment_check, so an agent can tell which to pick without opening schemas.

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?

Gives an explicit trigger ('Before paying an x402 service'), which places it clearly ahead of any payment action. It does not name the sibling tools as alternatives or state when-not-to-use beyond the safety exclusions, so it stops short of a 5.

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