Skip to main content
Glama

Agent Preflight

preflight

Agent Preflight: can this agent finish the job with what it has, BEFORE it spends? Give the paid tools it needs (url, method, calls, max price), a budget and optionally its Permission Passport. We check each tool is answering and its live x402 price (never paying), the total against the budget, and the passport against each host and the total. READY, or BLOCKED with exactly what's missing. By OMENZ. (MCP calls run in AYNE, the free playzone; production: POST https://www.omenz.org/api/tollbooth/v1/preflight, $0.005 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": {
      "job": "<job>"
    },
    "name": "preflight"
  }
}

Input Schema

NameRequiredDescriptionDefault
jobYesjob

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / job / description
      Added value: +"job"
  2. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations cover the flags (readOnlyHint=false, destructiveHint=false, openWorldHint=true, idempotentHint=false), so the bar is lower, and the description still adds real value: it explicitly says the liveness and price probes never pay, describes the two result states (READY vs BLOCKED with exactly what is missing), and discloses the production endpoint plus its $0.005 x402 cost. The minor tension between 'never paying' and readOnlyHint=false is explained by live external probing, not a contradiction.

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?

It leads with the decision question, then the inputs, then the checks, then the outcomes — a logical front-loaded order with no repeated statements. The only slack is the attribution 'By OMENZ' and the parenthetical production routing/pricing note, which is operationally useful but crowds the end of the text.

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 nested-object tool with no output schema, the description supplies the inputs it expects, the three verification steps, and the shape of the verdict, which is enough to call it correctly. What is missing is how the 'BLOCKED' detail is returned and how the free AYNE playzone differs behaviourally from the production call.

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?

The schema is nominally 100% covered but in practice useless: the single required 'job' object is declared only as {"type":"object","description":"job"} with no nested properties. The description compensates well by enumerating the job's expected content — the paid tools with url, method, calls and max price, a budget, and an optional Permission Passport. It still leaves the exact nesting and field names to guesswork.

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 states a specific capability: a pre-spend feasibility check that verifies each paid tool's liveness and live x402 price, sums the cost against a budget, and validates a Permission Passport against hosts and totals. That is a concrete verb-plus-resource combination an agent can recognise. It does not name any sibling (e.g. tx_preflight or agent_ready) to disambiguate from, so it stops short of a 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The phrase 'BEFORE it spends' plus the required inputs implies the pre-execution checkpoint context clearly enough to act on. However, it never states when NOT to use it, nor which sibling to use for post-transaction or per-transaction checks, so the agent must infer the boundary between this and tx_preflight/agent_ready.

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