Skip to main content
Glama

Poll a flight search

brij_get_flight_search_updates
Read-onlyIdempotent

Free over MCP (the x402 price quoted below applies to the HTTP API only; MCP calls are rate-limited instead).

Poll a progressive search for offers still arriving (free).

Free companion to POST /air/search — no x402 payment: the search was already paid, and the unguessable search_id is the authorization.

A search answers within seconds with the fast tiers' offers and status: enriching when slower, cheaper fulfiller tiers are still working. Poll this endpoint (respecting poll_after_ms, ~5s) until status: complete. Each poll returns the full merged-and-deduplicated offer list so far — idempotent reads, safe to retry.

The search_id expires ~5 minutes after the search; after that this endpoint returns 410 and a new search is needed. The rest of the purchase tunnel (offer-details, intents, book) is unchanged — offers gained here are used exactly like offers from the initial response.

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": {
      "search_id": "<search_id>"
    },
    "name": "brij_get_flight_search_updates"
  }
}

Input Schema

NameRequiredDescriptionDefault
search_idYesThe search_id returned by POST /air/search.

Output Schema

NameRequiredDescriptionDefault
nextNoPresent while status is enriching: keep polling until complete before choosing. Absent when complete.
offersNoThe FULL merged offer list so far (not a delta), deduplicated across fulfiller tiers, shaped exactly like the original search request.
statusNo"complete" once no further offers can arrive.
fulfillersNoPer-tier quoting state.
highlightsNoThe three offers an agent asks about first — cheapest, fastest, cheapest nonstop — each taken from EVERYTHING that matched, before the limit cut. A page of the 15 cheapest is only honest if it says what it left out: on a long-haul route every one of the 15 cheapest can be a connection while a direct exists at a higher price. Read cheapest_nonstop before concluding a route has no direct flight. A field is absent when no offer qualifies (no nonstop on the route, or none within max_stops / the time window).
matched_countNoHow many offers survived the filters and grouping BEFORE the limit cut — what a full listing would hold.
poll_after_msNoSuggested delay before the next poll. Absent when complete.
new_since_last_pollNoHow many offers landed since the previous poll (all of them on the first poll).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Adds substantial behavior beyond the annotations: idempotent merged-and-deduplicated full-list reads, safe to retry, rate-limited rather than x402-priced, and the 5-minute expiry yielding 410. It also explains the authorization model (unguessable search_id) and the status:enriching lifecycle, which the readOnly/idempotent hints do not 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-loads the free/rate-limited clarification and the core polling instruction, then layers lifecycle details. Slightly verbose with repeated emphasis on 'free' and the payment model, but nearly every sentence carries actionable information.

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?

With an output schema present, return-value detail is unnecessary, and the description covers the remaining gaps: polling cadence, terminal status, expiry, idempotency, and how gained offers feed the unchanged purchase tunnel. Nothing an agent needs to poll correctly is missing.

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 coverage is 100% so the single search_id parameter is already documented. The description adds meaning the schema lacks: that search_id is the authorization token and expires ~5 minutes, which affects how the agent should treat the value.

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+resource (poll a progressive flight search for still-arriving offers) and explicitly positions it as the companion to the initial POST /air/search. An agent can distinguish it from brij_search_flights without opening either schema.

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

Usage Guidelines5/5

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

Gives explicit when-to-use (poll until status: complete), the cadence (respect poll_after_ms, ~5s), and the failure/expiry condition (search_id expires ~5 min, then 410 and a new search is needed). It also clarifies the search itself must be initiated elsewhere first.

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