Skip to main content
Glama

Search flights for a small party

egf_search_flights
Read-onlyIdempotent

Searches live public fares for 1 to 9 travellers and returns options with per-person prices, carriers and stops, cheapest first, each with an offer_id valid for 30 minutes. Results come in pages: pass next_cursor back as cursor, with the same route and dates, for more.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoFares per page. Defaults to 10.
cursorNonext_cursor from the previous page of this search. Omit for the first page.
originYesDeparture airport, IATA code, e.g. VIE.
passengersNoHow many people are travelling, 1 to 9. Defaults to 1.
destinationYesArrival airport, IATA code, e.g. BCN.
return_dateNoReturn date, ISO 8601 (YYYY-MM-DD). Omit for one way.
departure_dateYesOutbound date, ISO 8601 (YYYY-MM-DD).

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
faresYes
totalYesFares the search found, across all pages.
originYes
currencyYesISO 4217 code every price is in.
passengersYes
destinationYes
next_cursorNoPass as cursor for the next page. Absent on the last page.
return_dateNoISO 8601 date (YYYY-MM-DD). Absent for one way.
departure_dateYesISO 8601 date (YYYY-MM-DD).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changed
    • changedInput schema / properties / departure_date / description
      Previous value: -"Outbound date, YYYY-MM-DD."New value: +"Outbound date, ISO 8601 (YYYY-MM-DD)."
    • changedInput schema / properties / return_date / description
      Previous value: -"Return date, YYYY-MM-DD. Omit for one way."New value: +"Return date, ISO 8601 (YYYY-MM-DD). Omit for one way."
    • changedOutput schema / properties / departure_date / description
      Previous value: -"YYYY-MM-DD."New value: +"ISO 8601 date (YYYY-MM-DD)."
    • removedOutput schema / properties / fares / items / properties / booking_url
      Removed value: -{
      -  "type": "string"
      -}
    • changedOutput schema / properties / fares / items / properties / departure / description
      Previous value: -"Local departure, YYYY-MM-DDTHH:MM."New value: +"Local departure, ISO 8601 (YYYY-MM-DDTHH:MM)."
    • changedOutput schema / properties / fares / items / properties / return / description
      Previous value: -"Local return departure, YYYY-MM-DDTHH:MM."New value: +"Local return departure, ISO 8601 (YYYY-MM-DDTHH:MM)."
    • changedOutput schema / properties / return_date / description
      Previous value: -"YYYY-MM-DD. Absent for one way."New value: +"ISO 8601 date (YYYY-MM-DD). Absent for one way."
  2. Added

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already cover safety (readOnly, idempotent, openWorld), so the bar is lower, and the description adds genuinely useful behavior: results are cheapest-first, each offer_id is valid for only 30 minutes, and results are paginated. It does not mention rate limits or caching, keeping it short of a 5.

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?

Two sentences, zero waste: the first front-loads purpose and result shape, the second handles pagination. Every clause earns its place.

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?

An output schema exists, so return values need not be re-explained, yet the description still summarizes them usefully alongside the critical 30-minute offer_id validity and pagination contract. Only the absence of routing guidance to sibling tools leaves a gap.

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 baseline is 3, but the description adds real value by explaining that the cursor must be replayed with the same route and dates — a constraint the schema's cursor text does not convey. It still adds nothing on limit or passengers 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 (Searches), resource (live public fares), and scope (1 to 9 travellers), plus what is returned (per-person prices, carriers, stops). An agent can immediately tell this is the search entry point among siblings like egf_get_offer and egf_prepare_flight_offer.

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?

Gives clear pagination usage (pass next_cursor back as cursor with the same route/dates) but never states when to use this tool versus alternatives such as egf_prepare_group_quote for parties larger than 9 or egf_get_offer to fet up an offer. Usage is implied rather than routed.

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.