Skip to main content
Glama

Find cheapest dates

find_cheapest_dates
Read-onlyIdempotent

Cheapest known fare for each day of a month on one route. Example: {"origin":"DSS","destination":"LIS","month":"2026-12","currency":"EUR"}. Round trips: add tripDays (1 to 30). Cached, one adult; confirm with search_flights.

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>",
      "month": "<month>"
    },
    "name": "find_cheapest_dates"
  }
}

Input Schema

NameRequiredDescriptionDefault
monthYesMonth, YYYY-MM.
nightsNoAlias of tripDays (tripDays wins).
originYesDeparture airport or city: IATA code or a plain name.
currencyNoISO 4217 display currency. Default EUR.
stayDaysNoAlias of tripDays (tripDays wins).
tripDaysNoRound trip stay length, 1 to 30 days. Each day is the cheapest return leaving that day. Omit for one-way.
directOnlyNotrue keeps non-stop fares only; days or destinations without one are left out.
destinationYesArrival airport or city: IATA code or a plain name.

Output Schema

NameRequiredDescriptionDefault
daysYes
originYes
destinationYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed11 schema fields changed
    • removedInput schema / $schema
      Removed value: -"https://json-schema.org/draft/2020-12/schema"
    • changedInput schema / properties / currency / description
      Previous value: -"ISO 4217 display currency. Default EUR. XOF is shown as FCFA."New value: +"ISO 4217 display currency. Default EUR."
    • removedInput schema / properties / currency / examples
      Removed value: -[
      -  "EUR",
      -  "USD",
      -  "XOF",
      -  "NGN",
      -  "GBP"
      -]
    • changedInput schema / properties / destination / description
      Previous value: -"Arrival airport or city: a 3-letter IATA airport/metro code (ABJ, DSS, LOS, CDG, LON, NYC) or a plain name (\"Abidjan\", \"Paris\")."New value: +"Arrival airport or city: IATA code or a plain name."
    • removedInput schema / properties / destination / examples
      Removed value: -[
      -  "CDG",
      -  "LON",
      -  "Nairobi"
      -]
    • changedInput schema / properties / directOnly / description
      Previous value: -"Optional: true keeps non-stop fares only; a day or destination without one is left out (calendar days get price null and a note)."New value: +"true keeps non-stop fares only; days or destinations without one are left out."
    • removedInput schema / properties / month / examples
      Removed value: -[
      -  "2026-12"
      -]
    • changedInput schema / properties / origin / description
      Previous value: -"Departure airport or city: a 3-letter IATA airport/metro code (ABJ, DSS, LOS, CDG, LON, NYC) or a plain name (\"Abidjan\", \"Paris\")."New value: +"Departure airport or city: IATA code or a plain name."
    • removedInput schema / properties / origin / examples
      Removed value: -[
      -  "ABJ",
      -  "DSS",
      -  "Lagos"
      -]
    • changedInput schema / properties / tripDays / description
      Previous value: -"Optional round trip: stay length in days, a whole number 1 to 30. Each day becomes the cheapest round trip leaving that day and returning tripDays later (returnDate, tripType return, total price), plus cheapestReturnDate. Omit for one-way."New value: +"Round trip stay length, 1 to 30 days. Each day is the cheapest return leaving that day. Omit for one-way."
    • removedOutput schema / $schema
      Removed value: -"https://json-schema.org/draft/2020-12/schema"
  2. Changed1 schema field changed
    • changedInput schema / properties / directOnly / type
      Previous value: -[
      -  "boolean",
      -  "string"
      -]New value: +[
      +  "boolean",
      +  "string",
      +  "number"
      +]
  3. Changed4 schema fields changed
    • addedInput schema / properties / directOnly
      Added value: +{
      +  "description": "Optional: true keeps non-stop fares only; a day or destination without one is left out (calendar days get price null and a note).",
      +  "type": [
      +    "boolean",
      +    "string"
      +  ]
      +}
    • addedInput schema / properties / nights
      Added value: +{
      +  "description": "Alias of tripDays (tripDays wins).",
      +  "type": [
      +    "number",
      +    "string"
      +  ]
      +}
    • addedInput schema / properties / stayDays
      Added value: +{
      +  "description": "Alias of tripDays (tripDays wins).",
      +  "type": [
      +    "number",
      +    "string"
      +  ]
      +}
    • addedInput schema / properties / tripDays
      Added value: +{
      +  "description": "Optional round trip: stay length in days, a whole number 1 to 30. Each day becomes the cheapest round trip leaving that day and returning tripDays later (returnDate, tripType return, total price), plus cheapestReturnDate. Omit for one-way.",
      +  "type": [
      +    "number",
      +    "string"
      +  ]
      +}
  4. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "https://json-schema.org/draft/2020-12/schema",
      +  "additionalProperties": {},
      +  "properties": {
      +    "days": {
      +      "items": {
      +        "additionalProperties": {},
      +        "properties": {
      +          "date": {
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "date"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "destination": {
      +      "type": "string"
      +    },
      +    "origin": {
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "origin",
      +    "destination",
      +    "days"
      +  ],
      +  "type": "object"
      +}
  5. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already cover read-only, idempotent, non-destructive, and open-world behavior, so the bar is lower. The description still contributes beyond them by disclosing that results are cached (implying possible staleness), that pricing assumes one adult, and that verification requires search_flights. It does not state refresh cadence or coverage gaps per day, keeping it below 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.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The purpose is front-loaded in the first sentence, followed by a compact example, then round-trip and freshness caveats in the last two sentences. Every element earns its place, though the embedded JSON example consumes space that could have been spent on alias or directOnly semantics. No filler or redundancy.

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 an 8-parameter query tool with a full output schema, the description covers purpose, an example call, round-trip behavior, currency handling, and freshness. What an agent still lacks is guidance on which filter parameters (directOnly, aliases) matter in practice and what happens when a day has no cached fare. Those are minor against the schema's 100% coverage.

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 beyond the schema: a concrete example call, the round-trip instruction 'add tripDays (1 to 30),' and the day-level interpretation carried in the schema. It does not explain the alias parameters (nights, stayDays) or directOnly behavior, but the core round-trip/one-way distinction is conveyed.

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?

The description gives a precise resource and scope: 'Cheapest known fare for each day of a month on one route,' which tells an agent exactly what this returns (a per-day fare calendar for a single route/month). It does not spell out a verb such as 'find' or explicitly distinguish itself from explore_cheap_destinations, but the month-plus-route framing is specific enough to separate it from fare-search siblings.

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?

There is one useful positioning cue: 'confirm with search_flights,' which signals this is a preliminary, cached lookup rather than a booking path. However, it stops short of saying when to prefer this over explore_cheap_destinations or search_flights directly, and offers no explicit when-not-to-use conditions. Usage is implied rather than stated.

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.