Skip to main content
Glama

x402_preflight

Read-onlyIdempotent

SYNTHORA x402-preflight: Before you pay an x402 endpoint: fetches its 402 challenge WITHOUT paying and checks it against the public x402 discovery catalog (daily copies of today and yesterday): same payTo, normal price (no spike), recent buyers and calls, wallet changed since yesterday, official USDC (or EURC) asset for the network, valid TLS, and your own expected payTo and max price. Returns pay / caution / do-not-pay with every signal, a plain-language note by our own model (marked as AI) and a self-resolving calibration question. https only, public addresses only, never pays. Ed25519-signe [x402: 0.005 USDC per call on Base]

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "url": "https://agent.pocket.network/v1/dns-whois-rdap",
      "expected_payTo": "0x...",
      "max_price_usdc": 0.01
    },
    "name": "x402_preflight"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYeshttps URL of the x402 endpoint you are about to pay
langNo
explainNo
expected_payToNo
max_price_usdcNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior5/5

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

Annotations already declare read-only, non-destructive, open-world and idempotent, and the description layers on genuinely new behavioral facts: it never pays, it is restricted to https and public addresses, it discloses the paid model note is AI-generated, and it states the per-call price of 0.005 USDC on Base. That cost and side-effect disclosure is exactly the kind of context 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?

The critical constraints are front-loaded ('Before you pay', 'WITHOUT paying', 'never pays') and the verdict vocabulary appears before the caveats. It is one very long run-on sentence with a truncated tail ('Ed25519-signe'), which costs some readability but not information.

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 does the work of describing the return: pay/caution/do-not-pay plus every signal, an AI-marked note, and a calibration question. Combined with the pricing and transport restrictions, an agent has enough to invoke it correctly, though the unexplained lang/explain switches are a residual gap.

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 only 20%, so the description needs to carry weight: it explains url (https, public addresses only), expected_payTo, and max_price_usdc through the phrase 'your own expected payTo and max price'. The lang and explain parameters receive no treatment at all, leaving two of five parameters unilluminated by both schema and description.

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 verb chain (fetches the 402 challenge without paying, then checks it against the discovery catalog) and enumerates the exact signals evaluated, so the resource and operation are unmistakable. It does not, however, distinguish itself from the sibling payto_preflight even though both appear to involve payTo/price checking.

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?

'Before you pay an x402 endpoint' gives an explicit trigger condition, which is stronger than most preflight tools. It stops short of stating when not to use it or naming a preferred alternative for scenarios like already-paid transactions or non-x402 payment flows.

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.