Skip to main content
Glama

preflight_x402

Paid public preflight for an autonomous x402 payment. No account, API key, policy token, or AP2 mandate is required. Submit the merchant's real PAYMENT-REQUIRED challenge and the exact intended HTTP request. Returns preflight_decision APPROVED, REVIEW or DENIED plus a signed preflight_token. APPROVED means the payment/merchant evidence is clear enough to proceed only if separate delegated authority permits the spend. Machine price: $0.001 via x402.

Input Schema

NameRequiredDescriptionDefault
requestYesExact HTTP request the agent intends to execute if the preflight permits it.
categoryNoOptional purchase/service category for audit context.
merchant_idNoOptional stable merchant identifier; defaults to the resource hostname.
payment_requiredYesMerchant's real x402 PAYMENT-REQUIRED payload, decoded or encoded.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description carries the burden well: it discloses no account/API key/policy token/AP2 mandate is required, the $0.001 x402 price, returned decision values, a signed preflight_token, and the conditional meaning of APPROVED. It does not explain REVIEW or DENIED handling.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loads the purpose, then access requirements, inputs, return values, the key approval caveat, and price. Dense but efficient, with no filler.

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?

No output schema exists, but the description explains the main return values and the critical APPROVED condition. It is nearly complete for invocation, though it could clarify what preflight_token is used for and what REVIEW means.

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 the schema already documents all four parameters. The description reinforces that payment_required must be the merchant's real challenge and request must be exact, but adds little syntactic or semantic detail beyond the schema.

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: a paid public preflight for an autonomous x402 payment. It also implicitly distinguishes itself from authorization siblings by saying APPROVED only permits proceeding if separate delegated authority allows the spend.

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?

Explains the context clearly: submit the merchant's real PAYMENT-REQUIRED challenge and exact intended HTTP request before proceeding. It does not explicitly name when to use it versus authorize_x402_ap2 or clearance_x402_ap2, but the delegated-authority caveat supplies useful positioning.

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