Skip to main content
Glama

Transaction Preflight

tx_preflight
Read-onlyIdempotent

Transaction Preflight: GO or STOP before your agent pays an x402 endpoint. Checks it answers, the live price is within max_price_usd, payTo matches expected_pay_to, the network is allowed, the asset is a known USD stablecoin, and flags drift from the price you were quoted/listed. Never pays the target. By OMENZ. (MCP calls run in AYNE, the free playzone; production: POST https://www.omenz.org/api/tollbooth/v1/tx-preflight, $0.002 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": "tx_preflight"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesfull https URL to check
methodNoHTTP method of the target endpoint (GET or POST)
networksNonetworks
allow_testnetNoallow testnet
max_price_usdNomost you are willing to pay per call, in USD
expected_pay_toNopayout wallet you expect (0x...), to catch swapped payees
listed_price_usdNolisted price usd

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changed
    • addedInput schema / properties / allow_testnet / description
      Added value: +"allow testnet"
    • addedInput schema / properties / expected_pay_to / description
      Added value: +"payout wallet you expect (0x...), to catch swapped payees"
    • addedInput schema / properties / listed_price_usd / description
      Added value: +"listed price usd"
    • addedInput schema / properties / max_price_usd / description
      Added value: +"most you are willing to pay per call, in USD"
    • addedInput schema / properties / method / description
      Added value: +"HTTP method of the target endpoint (GET or POST)"
    • addedInput schema / properties / networks / description
      Added value: +"networks"
    • addedInput schema / properties / url / description
      Added value: +"full https URL to check"
  2. First observed

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false, and openWorldHint=true, so the safety profile is largely structured data. The description adds genuine value beyond that by enumerating the specific checks and by stating outright that it never pays the target, but it does not describe the response shape (how GO/STOP and drift flags are surfaced) or how failures are reported.

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

Conciseness3/5

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

The first sentence is front-loaded and dense with useful content, but the trailing 'By OMENZ' plus the parenthetical about AYNE playzone and production pricing is promotional and operational clutter that competes with the actual invocation guidance. The core check list is packed into one long sentence, which reduces scannability.

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?

For a 7-parameter, single-required, read-only check with no output schema, the description covers why to call it and what it validates, and the annotations cover the safety profile. Gaps remain around the result format and around the semantics of the optional method, allow_testnet, and listed_price_usd parameters, which the description does not address.

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 description coverage is 100%, so the baseline is 3, and the description earns above it by tying parameters to consequences: max_price_usd becomes a hard cap the live price must satisfy, expected_pay_to is what catches swapped payees, and networks is the allowlist. It still says nothing about method, allow_testnet, or listed_price_usd semantics beyond what the schema already provides.

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?

States a specific verb and resource: it performs a pre-payment check on an x402 endpoint and returns GO or STOP, enumerating the six checks it runs (liveness, price cap, payTo match, network allowlist, stablecoin asset, price drift). That is far more concrete than the sibling 'preflight', though the description never explains how this differs from that sibling, leaving some ambiguity an agent must resolve elsewhere.

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 a clear trigger condition: run it before your agent pays an x402 endpoint. The line 'Never pays the target' implicitly sets the boundary against acting on the endpoint. However, it offers no explicit exclusion or named alternative for cases where the agent is not paying, and gives no instruction on what to do with a STOP result.

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