Skip to main content
Glama

Search cheapest dates

search_cheapest_dates
Read-only

Compare the lowest one-way or round-trip fare for each departure date across 1 to 31 dates. Every date is checked and returned with a price or no_price status. Follow up with search_flights on the chosen date(s) for bookable itineraries.

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>",
      "departure_date_range": "<departure_date_range>"
    },
    "name": "search_cheapest_dates"
  }
}

Input Schema

NameRequiredDescriptionDefault
adultsNoNumber of adult passengers (1+). Max 9 total passengers.
marketNo2-letter country code affecting pricing currency and locale (e.g. US, GB).US
originYes3-letter IATA origin airport or metro code (e.g. NYC, SFO).
childrenNoNumber of child passengers.
max_priceNoMaximum whole-trip price in the selected market currency.
max_stopsNoMaximum number of stops in each direction (0 for nonstop, 1, or 2).
stay_daysNoOmit for one-way. For round trips, return this many days after each departure.
cabin_classNoPreferred cabin class: economy, premium_economy, business, or first.economy
destinationYes3-letter IATA destination airport or metro code (e.g. LON, JFK).
checked_bagsNoRequested total checked bags for the party, up to one per traveler with a seat. Zero, null or omitted means no preference.
carry_on_bagsNoRequested total carry-on bags for the party, up to one per traveler with a seat. Zero, null or omitted means no preference. Calendar returns date-level prices.
infants_on_lapNoNumber of lap infants (cannot exceed adults).
infants_in_seatNoNumber of infants with their own seat.
return_time_rangeNoOptional return departure and arrival local hour bounds (requires stay_days).
departure_date_rangeYesInclusive departure date window spanning 1 to 31 dates.
departure_time_rangeNoOptional outbound departure and arrival local hour bounds.

Output Schema

NameRequiredDescriptionDefault
datesYes
originYes
destinationYes
observed_atNoUTC time Ignav finished retrieving these prices; null when unknown. Not a guarantee of current fares.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed19 schema fields changed
    • addedInput schema / $defs
      Added value: +{
      +  "DepartureDateRange": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "end": {
      +        "description": "Last departure date to check (YYYY-MM-DD), inclusive; 1 to 31 dates total.",
      +        "format": "date",
      +        "title": "End",
      +        "type": "string"
      +      },
      +      "start": {
      +        "description": "First departure date to check (YYYY-MM-DD).",
      +        "format": "date",
      +        "title": "Start",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "start",
      +      "end"
      +    ],
      +    "title": "DepartureDateRange",
      +    "type": "object"
      +  },
      +  "TimeRangeInput": {
      +    "additionalProperties": false,
      +    "description": "Inclusive airport-local hour bounds; the full latest hour is included.",
      +    "properties": {
      +      "arrival_earliest_hour": {
      +        "anyOf": [
      +          {
      +            "maximum": 23,
      +            "minimum": 0,
      +            "type": "integer"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Earliest arrival hour (0-23, destination airport local time).",
      +        "title": "Arrival Earliest Hour"
      +      },
      +      "arrival_latest_hour": {
      +        "anyOf": [
      +          {
      +            "maximum": 23,
      +            "minimum": 0,
      +            "type": "integer"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Latest arrival hour (0-23, destination airport local time; full hour included).",
      +        "title": "Arrival Latest Hour"
      +      },
      +      "earliest_hour": {
      +        "anyOf": [
      +          {
      +            "maximum": 23,
      +            "minimum": 0,
      +            "type": "integer"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Earliest departure hour (0-23, origin airport local time).",
      +        "title": "Earliest Hour"
      +      },
      +      "latest_hour": {
      +        "anyOf": [
      +          {
      +            "maximum": 23,
      +            "minimum": 0,
      +            "type": "integer"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Latest departure hour (0-23, origin airport local time; full hour included).",
      +        "title": "Latest Hour"
      +      }
      +    },
      +    "title": "TimeRangeInput",
      +    "type": "object"
      +  }
      +}
    • changedInput schema / properties / adults / description
      Previous value: -"Number of adult passengers traveling."New value: +"Number of adult passengers (1+). Max 9 total passengers."
    • addedInput schema / properties / carry_on_bags
      Added value: +{
      +  "anyOf": [
      +    {
      +      "maximum": 9,
      +      "minimum": 0,
      +      "type": "integer"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Requested total carry-on bags for the party, up to one per traveler with a seat. Zero, null or omitted means no preference. Calendar returns date-level prices.",
      +  "title": "Carry On Bags"
      +}
    • addedInput schema / properties / checked_bags
      Added value: +{
      +  "anyOf": [
      +    {
      +      "maximum": 9,
      +      "minimum": 0,
      +      "type": "integer"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Requested total checked bags for the party, up to one per traveler with a seat. Zero, null or omitted means no preference.",
      +  "title": "Checked Bags"
      +}
    • changedInput schema / properties / children / description
      Previous value: -"Number of child passengers traveling."New value: +"Number of child passengers."
    • removedInput schema / properties / departure_date_end
      Removed value: -{
      -  "description": "Last departure date to compare, in YYYY-MM-DD format; at most 30 days after the start.",
      -  "format": "date",
      -  "title": "Departure Date End",
      -  "type": "string"
      -}
    • addedInput schema / properties / departure_date_range
      Added value: +{
      +  "$ref": "#/$defs/DepartureDateRange",
      +  "description": "Inclusive departure date window spanning 1 to 31 dates."
      +}
    • removedInput schema / properties / departure_date_start
      Removed value: -{
      -  "description": "First departure date to compare, in YYYY-MM-DD format.",
      -  "format": "date",
      -  "title": "Departure Date Start",
      -  "type": "string"
      -}
    • addedInput schema / properties / departure_time_range
      Added value: +{
      +  "anyOf": [
      +    {
      +      "$ref": "#/$defs/TimeRangeInput"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Optional outbound departure and arrival local hour bounds."
      +}
    • changedInput schema / properties / destination / description
      Previous value: -"Destination airport or metro IATA code."New value: +"3-letter IATA destination airport or metro code (e.g. LON, JFK)."
    • changedInput schema / properties / infants_in_seat / description
      Previous value: -"Number of infants traveling with their own seat."New value: +"Number of infants with their own seat."
    • changedInput schema / properties / infants_on_lap / description
      Previous value: -"Number of infants traveling on an adult's lap."New value: +"Number of lap infants (cannot exceed adults)."
    • changedInput schema / properties / market / description
      Previous value: -"2-letter market or country code affecting pricing and results."New value: +"2-letter country code affecting pricing currency and locale (e.g. US, GB)."
    • changedInput schema / properties / max_price / description
      Previous value: -"Maximum whole-trip price in the market currency."New value: +"Maximum whole-trip price in the selected market currency."
    • changedInput schema / properties / max_stops / description
      Previous value: -"Maximum number of stops in each direction."New value: +"Maximum number of stops in each direction (0 for nonstop, 1, or 2)."
    • changedInput schema / properties / origin / description
      Previous value: -"Origin airport or metro IATA code."New value: +"3-letter IATA origin airport or metro code (e.g. NYC, SFO)."
    • addedInput schema / properties / return_time_range
      Added value: +{
      +  "anyOf": [
      +    {
      +      "$ref": "#/$defs/TimeRangeInput"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Optional return departure and arrival local hour bounds (requires stay_days)."
      +}
    • changedInput schema / required
      Previous value: -[
      -  "origin",
      -  "destination",
      -  "departure_date_start",
      -  "departure_date_end"
      -]New value: +[
      +  "origin",
      +  "destination",
      +  "departure_date_range"
      +]
    • changedInput schema / title
      Previous value: -"SearchCheapestDatesArgs"New value: +"CheapestDatesRequest"
  2. Changed3 schema fields changed
    • changedOutput schema / $defs / CheapestDateModel / properties / price / description
      Previous value: -"Lowest qualifying whole-trip fare for the party. Null when no qualifying price was found or the date is marked unavailable."New value: +"Lowest qualifying whole-trip fare for the party. Null when the search found no qualifying quote."
    • changedOutput schema / $defs / CheapestDateModel / properties / status / description
      Previous value: -"A priced date has a qualifying fare. A no_price date had no qualifying quote. An unavailable date could not be confirmed."New value: +"A priced date has a qualifying fare. A no_price date was checked and had no qualifying quote."
    • changedOutput schema / $defs / CheapestDateModel / properties / status / enum
      Previous value: -[
      -  "priced",
      -  "no_price",
      -  "unavailable"
      -]New value: +[
      +  "priced",
      +  "no_price"
      +]
  3. Changed15 schema fields changed
    • addedOutput schema / $defs
      Added value: +{
      +  "CheapestDateModel": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "departure_date": {
      +        "title": "Departure Date",
      +        "type": "string"
      +      },
      +      "price": {
      +        "anyOf": [
      +          {
      +            "$ref": "#/$defs/PriceModel"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "description": "Lowest qualifying whole-trip fare for the party. Null when no qualifying price was found or the date is marked unavailable."
      +      },
      +      "return_date": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "title": "Return Date"
      +      },
      +      "status": {
      +        "description": "A priced date has a qualifying fare. A no_price date had no qualifying quote. An unavailable date could not be confirmed.",
      +        "enum": [
      +          "priced",
      +          "no_price",
      +          "unavailable"
      +        ],
      +        "title": "Status",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "departure_date",
      +      "price",
      +      "status"
      +    ],
      +    "title": "CheapestDateModel",
      +    "type": "object"
      +  },
      +  "PriceModel": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "amount": {
      +        "title": "Amount",
      +        "type": "number"
      +      },
      +      "currency": {
      +        "title": "Currency",
      +        "type": "string"
      +      },
      +      "status": {
      +        "enum": [
      +          "verified",
      +          "unverified"
      +        ],
      +        "title": "Status",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "amount",
      +      "currency",
      +      "status"
      +    ],
      +    "title": "PriceModel",
      +    "type": "object"
      +  }
      +}
    • removedOutput schema / description
      Removed value: -"Lowest fare for each requested departure date."
    • removedOutput schema / properties / dates / description
      Removed value: -"Every requested departure date in ascending order."
    • addedOutput schema / properties / dates / items / $ref
      Added value: +"#/$defs/CheapestDateModel"
    • removedOutput schema / properties / dates / items / additionalProperties
      Removed value: -false
    • removedOutput schema / properties / dates / items / properties
      Removed value: -{
      -  "departure_date": {
      -    "description": "YYYY-MM-DD.",
      -    "type": "string"
      -  },
      -  "price": {
      -    "anyOf": [
      -      {
      -        "description": "Total flight price details.",
      -        "properties": {
      -          "amount": {
      -            "description": "Numerical price amount in given currency.",
      -            "type": "number"
      -          },
      -          "currency": {
      -            "description": "Currency code of the price amount.",
      -            "type": "string"
      -          },
      -          "status": {
      -            "description": "Whether the price was confirmed or is an unverified search hint.",
      -            "enum": [
      -              "verified",
      -              "unverified"
      -            ],
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "amount",
      -          "currency",
      -          "status"
      -        ],
      -        "type": "object"
      -      },
      -      {
      -        "type": "null"
      -      }
      -    ],
      -    "description": "Lowest whole-trip fare for the whole party; null when none was found."
      -  },
      -  "return_date": {
      -    "description": "YYYY-MM-DD, for round trips only.",
      -    "type": "string"
      -  }
      -}
    • removedOutput schema / properties / dates / items / required
      Removed value: -[
      -  "departure_date",
      -  "price"
      -]
    • removedOutput schema / properties / dates / items / type
      Removed value: -"object"
    • addedOutput schema / properties / dates / title
      Added value: +"Dates"
    • removedOutput schema / properties / destination / description
      Removed value: -"Destination airport or metro IATA code."
    • addedOutput schema / properties / destination / title
      Added value: +"Destination"
    • addedOutput schema / properties / observed_at
      Added value: +{
      +  "anyOf": [
      +    {
      +      "format": "date-time",
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "UTC time Ignav finished retrieving these prices; null when unknown. Not a guarantee of current fares.",
      +  "title": "Observed At"
      +}
    • removedOutput schema / properties / origin / description
      Removed value: -"Origin airport or metro IATA code."
    • addedOutput schema / properties / origin / title
      Added value: +"Origin"
    • addedOutput schema / title
      Added value: +"CheapestDatesResponseModel"
  4. Added

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=true, and an output schema exists. The description adds one genuinely useful behavioral fact – every date is checked and returned with either a price or a no_price status, so the agent knows to expect partial results rather than a filtered list. It says nothing about pricing currency/volatility, failure modes, or cost of a wide 31-date sweep.

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 scope, then the return guarantee, then the next-step routing. Nothing is padded or repeated from the schema.

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 16-parameter read-only search with 100% schema coverage, an output schema and annotations, the description covers the essential scope and the follow-up path. Minor gaps remain around what no_price implies and how broad date sweeps behave, but nothing required for correct invocation is missing.

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% and the nested date-range/hour-bound objects are well documented, so the baseline is 3. The description only clarifies the one-way vs round-trip dimension implicitly; it adds no meaning to market, cabin_class, or the bag parameters beyond what the schema already states.

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 (compare lowest fare per departure date) plus a hard scope bound (1 to 31 dates), which is exactly the distinction an agent needs against the sibling search_flights that returns bookable itineraries.

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

Usage Guidelines4/5

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

"Follow up with search_flights on the chosen date(s)" gives explicit routing to the alternative for the next step, and "one-way or round-trip" clarifies when stay_days applies. It does not state the inverse case (a single fixed date should go straight to search_flights), so it stops short of full when/when-not coverage.

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.