Skip to main content
Glama
google-flights-mcp

google-flights-mcp

by YahavBar3

find_cheapest_dates

Read-onlyIdempotent

Compare flight fares across each departure date in a range to identify lower-cost travel days. Runs one search per date, so wider ranges take longer.

Instructions

Compare the cheapest fare for each departure date in a range (one search per date).

Useful for flexible travel. Each date runs a full search, so wider ranges take longer.

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": {
      "origin": "<origin>",
      "destination": "<destination>",
      "start_date": "<start_date>",
      "end_date": "<end_date>"
    },
    "name": "find_cheapest_dates"
  }
}

Input Schema

NameRequiredDescriptionDefault
cabinNoCabin class.economy
adultsNoAdults (12+).
originYes3-letter IATA airport or city code, e.g. 'JFK', 'LON'.
airlinesNoRestrict to airlines by 2-letter IATA code (e.g. ['BA','AA']) or alliance ('ONEWORLD', 'STAR_ALLIANCE', 'SKYTEAM').
currencyNoISO 4217 currency code, e.g. 'USD', 'EUR', 'ILS'.USD
end_dateYesLast departure date to check, YYYY-MM-DD (max 31 days after start).
max_stopsNo0 = nonstop only, 1 = up to one stop, etc.
start_dateYesFirst departure date to check, YYYY-MM-DD.
destinationYes3-letter IATA airport or city code, e.g. 'JFK', 'LON'.
trip_length_daysNoNights away for a round trip; omit for one-way.

Output Schema

NameRequiredDescriptionDefault
datesYes
cheapestNo
currencyYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent and open-world behavior, so the safety profile is covered. The description adds meaningful context beyond that: each date triggers a full search and wider ranges are slower, which lets an agent reason about latency/load before calling. It stops short of stating any hard cap on range size (that lives only in the schema).

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?

Three short sentences, front-loaded with the core behavior and followed by the use case and the cost caveat. No filler or repetition of schema content.

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?

With an output schema present, the description needn't explain return values, and it correctly focuses on range semantics and the per-date search cost. It is nearly complete for a 10-parameter tool, missing only explicit routing to a single-date alternative for narrow needs.

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%, including the 31-day cap on end_date, cabin, airlines, max_stops and trip_length_days, so the schema carries the parameter burden. The description reinforces the range concept but adds no format, default, or interaction detail beyond what the schema already states; baseline 3 applies.

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: 'Compare the cheapest fare for each departure date in a range', which tells an agent this is a range-scan rather than a single itinerary lookup. It implicitly separates itself from a plain search via '(one search per date)', but never names or contrasts with the sibling search_flights tool.

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?

'Useful for flexible travel' implies the scenario (date-flexible trip planning) but gives no explicit when-not conditions and names no alternative tool. The note that wider ranges take longer is useful guidance but is about cost, not tool selection.

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