Skip to main content
Glama

Search flights

search_flights
Read-onlyIdempotent

Find live public Google Flights fares by origin and destination across a date window or flexibility range, returning real priced itineraries for trip planning.

Instructions

Search live public Google Flights fares across a short date window.

origin and destination take an IATA code or a city name. Defaults are 1 adult, economy, CHF. A planner can ask for one day, a few days around that day, or a from/to window such as a week. The price is the integer Google returned. This tool does not invent a fare, a flight number, or a bag rule.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cabinNoSeat cabin.economy
adultsNoAdults, 1 to 9. Children are not supported.
nightsNoStay length in nights. The return date is each departure plus this many days. Do not combine with return_date.
originYesIATA airport or city code (ZRH, BCN, NYC) or a city or airport name (Zurich, Barcelona).
nonstopNoWhen true, only nonstop itineraries.
currencyNoISO 4217 currency Google Flights can price in. Default CHF.CHF
depart_toNoLast departure date of a window, inclusive. At most 7 dates are searched; a longer window is sampled and the rest are listed as not searched.
depart_dateNoDeparture date YYYY-MM-DD. Use this, optionally with flexibility_days. Do not combine it with depart_from and depart_to.
depart_fromNoFirst departure date of a window, inclusive. Pair with depart_to.
destinationYesIATA airport or city code (ZRH, BCN, NYC) or a city or airport name (Zurich, Barcelona).
max_resultsNoHow many itineraries to return, at most 20.
return_dateNoFixed return date YYYY-MM-DD. Omit for one-way. Do not combine with nights.
flexibility_daysNoDays before and after depart_date. 0 searches that day only. Not used with a from/to window.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
daysYes
cabinYes
countYes
notesYes
picksYes
adultsYes
cachedYes
nightsYesLength of stay applied to each departure, when requested.
originYes
sourceYes
flightsYes
nonstopYes
currencyYes
depart_toYes
search_urlYesGoogle Flights search for the first date that was actually queried.
depart_dateYesThe depart_date argument when the search was anchored on one day, with or without flexibility. Null when the search used depart_from and depart_to.
depart_fromYes
destinationYes
origin_nameYes
return_dateYesFixed return date, when one was requested. Null for one-way or when nights varies the return.
dates_searchedYes
destination_nameYes
dates_not_searchedYesDates inside the requested window that were not queried, because of the 7-date cap or the timeout.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already cover readOnly/idempotent/openWorld/destructive, so the bar is lower. The description adds real behavioral context: the price is exactly 'the integer Google returned' and the tool 'does not invent a fare, a flight number, or a bag rule' — a useful data-fidelity guarantee. It omits rate limits or latency expectations.

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-loaded with the core purpose in the first sentence, followed by short, scannable points. Slight redundancy with the schema (defaults, IATA/city input) costs it the top score, but nothing is padded.

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 13-parameter tool with an output schema and rich annotations, the description covers the key ambiguities: date-window modes, defaults, and fare provenance. Mutual-exclusion rules (nights vs return_date, depart_date vs from/to) are left entirely to the schema, but the schema handles them well.

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 description coverage is 100%, so the schema already documents all 13 parameters including date formats, mutual exclusions and the 7-date search cap. The description restates defaults (1 adult, economy, CHF) and the accepted origin/destination forms, adding little beyond what the schema provides; baseline 3 applies.

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 and resource: 'Search live public Google Flights fares across a short date window.' It also implicitly separates itself from the resolve_airports sibling by noting origin/destination accept city names directly, so an agent knows it need not resolve codes first.

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?

It sketches the planning patterns supported ('one day, a few days around that day, or a from/to window'), which implies usage, but never states when to use this over resolve_airports or when the tool is inappropriate. No explicit exclusions or alternative-routing guidance.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools