Skip to main content
Glama

Search flights

search_flights
Read-only

Search live one-way, round-trip, open-jaw, or multi-city flights. Pass legs as a list of 1 or 2 objects ({origin, destination, departure_date}, plus optional max_stops and departure_time_range) — not top-level origin/destination. Returns ranked itineraries with prices, segments, baggage info, and an ignav_id. Pass an itinerary's ignav_id to get_booking_links for direct booking URLs.

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": {
      "legs": "<legs>"
    },
    "name": "search_flights"
  }
}

Input Schema

NameRequiredDescriptionDefault
legsYes1 or 2 ordered chronological legs. Use 1 leg for one-way, 2 reciprocal legs for round-trip, or 2 arbitrary legs for open-jaw or multi-city.
adultsNoNumber of adult passengers (1+). Max 9 total passengers.
marketNo2-letter country code affecting pricing currency and locale (e.g. US, GB).US
childrenNoNumber of child passengers.
max_priceNoMaximum whole-trip price in the selected market currency.
cabin_classNoPreferred cabin class: economy, premium_economy, business, or first.economy
max_resultsNoMaximum number of ranked itineraries to return.
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. Prices include estimated bag fees where available.
infants_on_lapNoNumber of lap infants (cannot exceed adults).
infants_in_seatNoNumber of infants with their own seat.
airlines_excludeNo2-character airline codes to exclude.
airlines_includeNo2-character airline codes to include (e.g. ['UA', 'DL']).
allow_third_partyNoInclude fares sold by third-party agencies (OTAs), including lower agency prices on flights also sold by airlines. Defaults to false (excludes offers known to be third-party only).
allow_mixed_carriersNoAllow multiple reported marketing carriers within a leg. This does not describe ticketing or connection protection.

Output Schema

NameRequiredDescriptionDefault
legsYes
itinerariesYes
observed_atNoUTC time Ignav finished retrieving this search result; null when unknown. Not a guarantee of the current fare.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / allow_third_party
      Added value: +{
      +  "default": false,
      +  "description": "Include fares sold by third-party agencies (OTAs), including lower agency prices on flights also sold by airlines. Defaults to false (excludes offers known to be third-party only).",
      +  "title": "Allow Third Party",
      +  "type": "boolean"
      +}
  2. Changed42 schema fields changed
    • addedInput schema / $defs
      Added value: +{
      +  "SearchLegInput": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "departure_date": {
      +        "description": "Departure date in YYYY-MM-DD format.",
      +        "format": "date",
      +        "title": "Departure Date",
      +        "type": "string"
      +      },
      +      "departure_time_range": {
      +        "anyOf": [
      +          {
      +            "$ref": "#/$defs/TimeRangeInput"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Optional airport-local departure and arrival hour bounds for this leg."
      +      },
      +      "destination": {
      +        "description": "3-letter IATA destination airport or metro code (e.g. JFK, PAR).",
      +        "title": "Destination",
      +        "type": "string"
      +      },
      +      "max_stops": {
      +        "anyOf": [
      +          {
      +            "maximum": 2,
      +            "minimum": 0,
      +            "type": "integer"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Maximum stops allowed on this leg (0 for nonstop, 1, or 2). Omit for any.",
      +        "title": "Max Stops"
      +      },
      +      "origin": {
      +        "description": "3-letter IATA origin airport or metro code (e.g. SFO, LON).",
      +        "title": "Origin",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "origin",
      +      "destination",
      +      "departure_date"
      +    ],
      +    "title": "SearchLegInput",
      +    "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."
    • changedInput schema / properties / airlines_exclude / description
      Previous value: -"Airline codes to specifically exclude from search results."New value: +"2-character airline codes to exclude."
    • changedInput schema / properties / airlines_include / description
      Previous value: -"Airline codes to specifically include in search results."New value: +"2-character airline codes to include (e.g. ['UA', 'DL'])."
    • changedInput schema / properties / allow_mixed_carriers / description
      Previous value: -"Allow multiple reported marketing carriers within a direction. This does not describe ticketing or connection protection."New value: +"Allow multiple reported marketing carriers within a leg. This does not describe ticketing or connection protection."
    • 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. Prices include estimated bag fees where available.",
      +  "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
      Removed value: -{
      -  "description": "Departure date in YYYY-MM-DD format.",
      -  "format": "date",
      -  "title": "Departure Date",
      -  "type": "string"
      -}
    • removedInput schema / properties / destination
      Removed value: -{
      -  "description": "Destination airport or metro IATA code.",
      -  "title": "Destination",
      -  "type": "string"
      -}
    • 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)."
    • addedInput schema / properties / legs
      Added value: +{
      +  "description": "1 or 2 ordered chronological legs. Use 1 leg for one-way, 2 reciprocal legs for round-trip, or 2 arbitrary legs for open-jaw or multi-city.",
      +  "items": {
      +    "$ref": "#/$defs/SearchLegInput"
      +  },
      +  "maxItems": 2,
      +  "minItems": 1,
      +  "title": "Legs",
      +  "type": "array"
      +}
    • 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 price in the selected market currency for flight results."New value: +"Maximum whole-trip price in the selected market currency."
    • changedInput schema / properties / max_results / default
      Previous value: -8New value: +10
    • changedInput schema / properties / max_results / description
      Previous value: -"Maximum number of flight results to return."New value: +"Maximum number of ranked itineraries to return."
    • changedInput schema / properties / max_results / maximum
      Previous value: -10New value: +25
    • removedInput schema / properties / max_stops
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "maximum": 2,
      -      "minimum": 0,
      -      "type": "integer"
      -    },
      -    {
      -      "type": "null"
      -    }
      -  ],
      -  "default": null,
      -  "description": "Maximum number of stops allowed in the flight itinerary.",
      -  "title": "Max Stops"
      -}
    • removedInput schema / properties / origin
      Removed value: -{
      -  "description": "Origin airport or metro IATA code.",
      -  "title": "Origin",
      -  "type": "string"
      -}
    • removedInput schema / properties / return_date
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "format": "date",
      -      "type": "string"
      -    },
      -    {
      -      "type": "null"
      -    }
      -  ],
      -  "default": null,
      -  "description": "Optional return date in YYYY-MM-DD format for round-trip flights.",
      -  "title": "Return Date"
      -}
    • changedInput schema / required
      Previous value: -[
      -  "origin",
      -  "destination",
      -  "departure_date"
      -]New value: +[
      +  "legs"
      +]
    • addedOutput schema / $defs
      Added value: +{
      +  "BaggageAllowanceModel": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "carry_on": {
      +        "anyOf": [
      +          {
      +            "type": "integer"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "title": "Carry On"
      +      },
      +      "checked": {
      +        "anyOf": [
      +          {
      +            "type": "integer"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "title": "Checked"
      +      }
      +    },
      +    "title": "BaggageAllowanceModel",
      +    "type": "object"
      +  },
      +  "BaggagePricingModel": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "carry_on_bags": {
      +        "description": "Requested party total.",
      +        "title": "Carry On Bags",
      +        "type": "integer"
      +      },
      +      "checked_bags": {
      +        "description": "Requested party total.",
      +        "title": "Checked Bags",
      +        "type": "integer"
      +      },
      +      "status": {
      +        "enum": [
      +          "estimated",
      +          "reported_included",
      +          "unknown"
      +        ],
      +        "title": "Status",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "carry_on_bags",
      +      "checked_bags",
      +      "status"
      +    ],
      +    "title": "BaggagePricingModel",
      +    "type": "object"
      +  },
      +  "LegModel": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "carrier": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "title": "Carrier"
      +      },
      +      "duration_minutes": {
      +        "anyOf": [
      +          {
      +            "type": "integer"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "title": "Duration Minutes"
      +      },
      +      "segments": {
      +        "items": {
      +          "$ref": "#/$defs/SegmentModel"
      +        },
      +        "title": "Segments",
      +        "type": "array"
      +      }
      +    },
      +    "required": [
      +      "segments"
      +    ],
      +    "title": "LegModel",
      +    "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"
      +  },
      +  "SearchItineraryModel": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "baggage_pricing": {
      +        "anyOf": [
      +          {
      +            "$ref": "#/$defs/BaggagePricingModel"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null
      +      },
      +      "bags": {
      +        "anyOf": [
      +          {
      +            "$ref": "#/$defs/BaggageAllowanceModel"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null
      +      },
      +      "cabin_class": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "title": "Cabin Class"
      +      },
      +      "has_mixed_carriers": {
      +        "anyOf": [
      +          {
      +            "type": "boolean"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "True when a leg contains multiple reported marketing carriers. Missing carrier codes are ignored; this does not describe ticketing or connection protection.",
      +        "title": "Has Mixed Carriers"
      +      },
      +      "ignav_id": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "title": "Ignav Id"
      +      },
      +      "legs": {
      +        "items": {
      +          "$ref": "#/$defs/LegModel"
      +        },
      +        "title": "Legs",
      +        "type": "array"
      +      },
      +      "price": {
      +        "$ref": "#/$defs/PriceModel"
      +      }
      +    },
      +    "required": [
      +      "price",
      +      "legs"
      +    ],
      +    "title": "SearchItineraryModel",
      +    "type": "object"
      +  },
      +  "SearchLegModel": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "departure_date": {
      +        "title": "Departure Date",
      +        "type": "string"
      +      },
      +      "destination": {
      +        "title": "Destination",
      +        "type": "string"
      +      },
      +      "origin": {
      +        "title": "Origin",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "origin",
      +      "destination",
      +      "departure_date"
      +    ],
      +    "title": "SearchLegModel",
      +    "type": "object"
      +  },
      +  "SegmentModel": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "aircraft": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "title": "Aircraft"
      +      },
      +      "arrival_airport": {
      +        "title": "Arrival Airport",
      +        "type": "string"
      +      },
      +      "arrival_time_local": {
      +        "title": "Arrival Time Local",
      +        "type": "string"
      +      },
      +      "arrival_time_utc": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "title": "Arrival Time Utc"
      +      },
      +      "arrival_timezone": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "title": "Arrival Timezone"
      +      },
      +      "departure_airport": {
      +        "title": "Departure Airport",
      +        "type": "string"
      +      },
      +      "departure_time_local": {
      +        "title": "Departure Time Local",
      +        "type": "string"
      +      },
      +      "departure_time_utc": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "title": "Departure Time Utc"
      +      },
      +      "departure_timezone": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "title": "Departure Timezone"
      +      },
      +      "duration_minutes": {
      +        "title": "Duration Minutes",
      +        "type": "integer"
      +      },
      +      "flight_number": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "title": "Flight Number"
      +      },
      +      "marketing_carrier_code": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "title": "Marketing Carrier Code"
      +      },
      +      "operating_carrier_name": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "title": "Operating Carrier Name"
      +      }
      +    },
      +    "required": [
      +      "marketing_carrier_code",
      +      "flight_number",
      +      "operating_carrier_name",
      +      "departure_airport",
      +      "departure_time_local",
      +      "departure_timezone",
      +      "departure_time_utc",
      +      "arrival_airport",
      +      "arrival_time_local",
      +      "arrival_timezone",
      +      "arrival_time_utc",
      +      "duration_minutes",
      +      "aircraft"
      +    ],
      +    "title": "SegmentModel",
      +    "type": "object"
      +  }
      +}
    • addedOutput schema / additionalProperties
      Added value: +false
    • removedOutput schema / description
      Removed value: -"Flight itinerary details including prices, times, and stops."
    • removedOutput schema / else
      Removed value: -{
      -  "properties": {
      -    "itineraries": {
      -      "items": {
      -        "not": {
      -          "required": [
      -            "inbound"
      -          ]
      -        },
      -        "properties": {
      -          "booking_options": {
      -            "items": {
      -              "properties": {
      -                "legs": {
      -                  "const": [
      -                    "outbound"
      -                  ]
      -                }
      -              }
      -            },
      -            "maxItems": 1
      -          }
      -        }
      -      }
      -    }
      -  }
      -}
    • removedOutput schema / if
      Removed value: -{
      -  "properties": {
      -    "return_date": {
      -      "type": "string"
      -    }
      -  },
      -  "required": [
      -    "return_date"
      -  ]
      -}
    • removedOutput schema / properties / departure_date
      Removed value: -{
      -  "description": "Scheduled departure date (YYYY-MM-DD).",
      -  "type": "string"
      -}
    • removedOutput schema / properties / destination
      Removed value: -{
      -  "description": "Destination airport details for flight search.",
      -  "type": "string"
      -}
    • removedOutput schema / properties / itineraries / description
      Removed value: -"List of flight itineraries."
    • addedOutput schema / properties / itineraries / items / $ref
      Added value: +"#/$defs/SearchItineraryModel"
    • removedOutput schema / properties / itineraries / items / properties
      Removed value: -{
      -  "bags": {
      -    "description": "Details on baggage allowance.",
      -    "properties": {
      -      "carry_on": {
      -        "description": "Number of allowed carry-on bags.",
      -        "type": [
      -          "integer",
      -          "null"
      -        ]
      -      },
      -      "checked": {
      -        "description": "Number of allowed checked bags.",
      -        "type": [
      -          "integer",
      -          "null"
      -        ]
      -      }
      -    },
      -    "type": "object"
      -  },
      -  "booking_link": {
      -    "description": "Clickable link for the booking group's covered legs.",
      -    "properties": {
      -      "price": {
      -        "description": "Price for this link's covered legs, when known.",
      -        "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"
      -      },
      -      "provider_name": {
      -        "description": "Name of booking provider.",
      -        "type": "string"
      -      },
      -      "provider_type": {
      -        "description": "Type of booking provider.",
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "url": {
      -        "description": "Direct URL to book the covered legs.",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "provider_name",
      -      "url"
      -    ],
      -    "type": "object"
      -  },
      -  "booking_options": {
      -    "description": "Choose one link from every group. Multiple groups require separate bookings.",
      -    "items": {
      -      "properties": {
      -        "legs": {
      -          "items": {
      -            "enum": [
      -              "outbound",
      -              "inbound"
      -            ]
      -          },
      -          "type": "array"
      -        },
      -        "links": {
      -          "items": {
      -            "description": "Clickable link for the booking group's covered legs.",
      -            "properties": {
      -              "price": {
      -                "description": "Price for this link's covered legs, when known.",
      -                "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"
      -              },
      -              "provider_name": {
      -                "description": "Name of booking provider.",
      -                "type": "string"
      -              },
      -              "provider_type": {
      -                "description": "Type of booking provider.",
      -                "type": [
      -                  "string",
      -                  "null"
      -                ]
      -              },
      -              "url": {
      -                "description": "Direct URL to book the covered legs.",
      -                "type": "string"
      -              }
      -            },
      -            "required": [
      -              "provider_name",
      -              "url"
      -            ],
      -            "type": "object"
      -          },
      -          "minItems": 1,
      -          "type": "array"
      -        }
      -      },
      -      "required": [
      -        "legs",
      -        "links"
      -      ],
      -      "type": "object"
      -    },
      -    "maxItems": 2,
      -    "minItems": 1,
      -    "type": "array"
      -  },
      -  "booking_provider_name": {
      -    "description": "Name of booking provider.",
      -    "type": "string"
      -  },
      -  "booking_provider_type": {
      -    "description": "Type of booking provider.",
      -    "type": [
      -      "string",
      -      "null"
      -    ]
      -  },
      -  "booking_url": {
      -    "description": "Direct URL when one booking covers the whole itinerary.",
      -    "type": "string"
      -  },
      -  "cabin_class": {
      -    "description": "Class of cabin booked.",
      -    "type": [
      -      "string",
      -      "null"
      -    ]
      -  },
      -  "has_mixed_carriers": {
      -    "description": "True when a direction contains multiple reported marketing carriers. This does not describe ticketing or connection protection.",
      -    "type": [
      -      "boolean",
      -      "null"
      -    ]
      -  },
      -  "ignav_id": {
      -    "description": "Unique Ignav identifier for the itinerary.",
      -    "type": [
      -      "string",
      -      "null"
      -    ]
      -  },
      -  "inbound": {
      -    "description": "Inbound flight itinerary details for round-trip flights.",
      -    "properties": {
      -      "carrier": {
      -        "description": "Airline operating the flight segment.",
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "duration_minutes": {
      -        "description": "Flight duration in minutes.",
      -        "type": [
      -          "integer",
      -          "null"
      -        ]
      -      },
      -      "segments": {
      -        "description": "List of individual flight segments.",
      -        "items": {
      -          "properties": {
      -            "arrival_airport": {
      -              "description": "Airport code for arrival location.",
      -              "type": "string"
      -            },
      -            "arrival_time_local": {
      -              "description": "Local arrival date and time.",
      -              "type": "string"
      -            },
      -            "departure_airport": {
      -              "description": "Airport code for departure location.",
      -              "type": "string"
      -            },
      -            "departure_time_local": {
      -              "description": "Local departure date and time.",
      -              "type": "string"
      -            },
      -            "duration_minutes": {
      -              "description": "Flight duration in minutes.",
      -              "type": "integer"
      -            },
      -            "flight_number": {
      -              "description": "Flight number assigned by airline.",
      -              "type": [
      -                "string",
      -                "null"
      -              ]
      -            },
      -            "marketing_carrier_code": {
      -              "description": "Airline code marketing the flight segment.",
      -              "type": [
      -                "string",
      -                "null"
      -              ]
      -            },
      -            "operating_carrier_name": {
      -              "description": "Name of the airline operating the flight segment.",
      -              "type": [
      -                "string",
      -                "null"
      -              ]
      -            }
      -          },
      -          "type": "object"
      -        },
      -        "type": "array"
      -      }
      -    },
      -    "required": [
      -      "segments"
      -    ],
      -    "type": "object"
      -  },
      -  "outbound": {
      -    "description": "Outbound flight itinerary details.",
      -    "properties": {
      -      "carrier": {
      -        "description": "Airline operating the flight segment.",
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "duration_minutes": {
      -        "description": "Flight duration in minutes.",
      -        "type": [
      -          "integer",
      -          "null"
      -        ]
      -      },
      -      "segments": {
      -        "description": "List of individual flight segments.",
      -        "items": {
      -          "properties": {
      -            "arrival_airport": {
      -              "description": "Airport code for arrival location.",
      -              "type": "string"
      -            },
      -            "arrival_time_local": {
      -              "description": "Local arrival date and time.",
      -              "type": "string"
      -            },
      -            "departure_airport": {
      -              "description": "Airport code for departure location.",
      -              "type": "string"
      -            },
      -            "departure_time_local": {
      -              "description": "Local departure date and time.",
      -              "type": "string"
      -            },
      -            "duration_minutes": {
      -              "description": "Flight duration in minutes.",
      -              "type": "integer"
      -            },
      -            "flight_number": {
      -              "description": "Flight number assigned by airline.",
      -              "type": [
      -                "string",
      -                "null"
      -              ]
      -            },
      -            "marketing_carrier_code": {
      -              "description": "Airline code marketing the flight segment.",
      -              "type": [
      -                "string",
      -                "null"
      -              ]
      -            },
      -            "operating_carrier_name": {
      -              "description": "Name of the airline operating the flight segment.",
      -              "type": [
      -                "string",
      -                "null"
      -              ]
      -            }
      -          },
      -          "type": "object"
      -        },
      -        "type": "array"
      -      }
      -    },
      -    "required": [
      -      "segments"
      -    ],
      -    "type": "object"
      -  },
      -  "price": {
      -    "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"
      -  }
      -}
    • removedOutput schema / properties / itineraries / items / required
      Removed value: -[
      -  "price",
      -  "outbound",
      -  "booking_options"
      -]
    • removedOutput schema / properties / itineraries / items / type
      Removed value: -"object"
    • addedOutput schema / properties / itineraries / title
      Added value: +"Itineraries"
    • addedOutput schema / properties / legs
      Added value: +{
      +  "items": {
      +    "$ref": "#/$defs/SearchLegModel"
      +  },
      +  "title": "Legs",
      +  "type": "array"
      +}
    • addedOutput schema / properties / observed_at
      Added value: +{
      +  "anyOf": [
      +    {
      +      "format": "date-time",
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "UTC time Ignav finished retrieving this search result; null when unknown. Not a guarantee of the current fare.",
      +  "title": "Observed At"
      +}
    • removedOutput schema / properties / origin
      Removed value: -{
      -  "description": "Origin airport details for flight search.",
      -  "type": "string"
      -}
    • removedOutput schema / properties / return_date
      Removed value: -{
      -  "description": "Scheduled return date for round-trip flights (YYYY-MM-DD).",
      -  "type": [
      -    "string",
      -    "null"
      -  ]
      -}
    • changedOutput schema / required
      Previous value: -[
      -  "origin",
      -  "destination",
      -  "departure_date",
      -  "itineraries"
      -]New value: +[
      +  "legs",
      +  "itineraries"
      +]
    • removedOutput schema / then
      Removed value: -{
      -  "properties": {
      -    "itineraries": {
      -      "items": {
      -        "properties": {
      -          "booking_options": {
      -            "oneOf": [
      -              {
      -                "maxItems": 1,
      -                "minItems": 1,
      -                "prefixItems": [
      -                  {
      -                    "properties": {
      -                      "legs": {
      -                        "const": [
      -                          "outbound",
      -                          "inbound"
      -                        ]
      -                      }
      -                    }
      -                  }
      -                ]
      -              },
      -              {
      -                "maxItems": 1,
      -                "minItems": 1,
      -                "prefixItems": [
      -                  {
      -                    "properties": {
      -                      "legs": {
      -                        "const": [
      -                          "inbound",
      -                          "outbound"
      -                        ]
      -                      }
      -                    }
      -                  }
      -                ]
      -              },
      -              {
      -                "maxItems": 2,
      -                "minItems": 2,
      -                "prefixItems": [
      -                  {
      -                    "properties": {
      -                      "legs": {
      -                        "const": [
      -                          "outbound"
      -                        ]
      -                      }
      -                    }
      -                  },
      -                  {
      -                    "properties": {
      -                      "legs": {
      -                        "const": [
      -                          "inbound"
      -                        ]
      -                      }
      -                    }
      -                  }
      -                ]
      -              },
      -              {
      -                "maxItems": 2,
      -                "minItems": 2,
      -                "prefixItems": [
      -                  {
      -                    "properties": {
      -                      "legs": {
      -                        "const": [
      -                          "inbound"
      -                        ]
      -                      }
      -                    }
      -                  },
      -                  {
      -                    "properties": {
      -                      "legs": {
      -                        "const": [
      -                          "outbound"
      -                        ]
      -                      }
      -                    }
      -                  }
      -                ]
      -              }
      -            ]
      -          }
      -        },
      -        "required": [
      -          "inbound"
      -        ]
      -      }
      -    }
      -  }
      -}
    • addedOutput schema / title
      Added value: +"FareSearchModel"
  3. Changed4 schema fields changed
    • addedInput schema / properties / allow_mixed_carriers
      Added value: +{
      +  "default": true,
      +  "description": "Allow multiple reported marketing carriers within a direction. This does not describe ticketing or connection protection.",
      +  "title": "Allow Mixed Carriers",
      +  "type": "boolean"
      +}
    • removedInput schema / properties / allow_self_transfer
      Removed value: -{
      -  "default": true,
      -  "description": "Whether to include self-transfer flight options (true or false).",
      -  "title": "Allow Self Transfer",
      -  "type": "boolean"
      -}
    • addedOutput schema / properties / itineraries / items / properties / has_mixed_carriers
      Added value: +{
      +  "description": "True when a direction contains multiple reported marketing carriers. This does not describe ticketing or connection protection.",
      +  "type": [
      +    "boolean",
      +    "null"
      +  ]
      +}
    • removedOutput schema / properties / itineraries / items / properties / requires_self_transfer
      Removed value: -{
      -  "description": "Indicates if itinerary includes self-transfer.",
      -  "type": [
      -    "boolean",
      -    "null"
      -  ]
      -}
  4. Changed9 schema fields changed
    • addedOutput schema / else
      Added value: +{
      +  "properties": {
      +    "itineraries": {
      +      "items": {
      +        "not": {
      +          "required": [
      +            "inbound"
      +          ]
      +        },
      +        "properties": {
      +          "booking_options": {
      +            "items": {
      +              "properties": {
      +                "legs": {
      +                  "const": [
      +                    "outbound"
      +                  ]
      +                }
      +              }
      +            },
      +            "maxItems": 1
      +          }
      +        }
      +      }
      +    }
      +  }
      +}
    • addedOutput schema / if
      Added value: +{
      +  "properties": {
      +    "return_date": {
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "return_date"
      +  ]
      +}
    • changedOutput schema / properties / itineraries / items / properties / booking_link / description
      Previous value: -"Clickable booking link for the itinerary."New value: +"Clickable link for the booking group's covered legs."
    • addedOutput schema / properties / itineraries / items / properties / booking_link / properties / price
      Added value: +{
      +  "description": "Price for this link's covered legs, when known.",
      +  "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"
      +}
    • changedOutput schema / properties / itineraries / items / properties / booking_link / properties / url / description
      Previous value: -"Direct URL to book the itinerary."New value: +"Direct URL to book the covered legs."
    • addedOutput schema / properties / itineraries / items / properties / booking_options
      Added value: +{
      +  "description": "Choose one link from every group. Multiple groups require separate bookings.",
      +  "items": {
      +    "properties": {
      +      "legs": {
      +        "items": {
      +          "enum": [
      +            "outbound",
      +            "inbound"
      +          ]
      +        },
      +        "type": "array"
      +      },
      +      "links": {
      +        "items": {
      +          "description": "Clickable link for the booking group's covered legs.",
      +          "properties": {
      +            "price": {
      +              "description": "Price for this link's covered legs, when known.",
      +              "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"
      +            },
      +            "provider_name": {
      +              "description": "Name of booking provider.",
      +              "type": "string"
      +            },
      +            "provider_type": {
      +              "description": "Type of booking provider.",
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "url": {
      +              "description": "Direct URL to book the covered legs.",
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "provider_name",
      +            "url"
      +          ],
      +          "type": "object"
      +        },
      +        "minItems": 1,
      +        "type": "array"
      +      }
      +    },
      +    "required": [
      +      "legs",
      +      "links"
      +    ],
      +    "type": "object"
      +  },
      +  "maxItems": 2,
      +  "minItems": 1,
      +  "type": "array"
      +}
    • changedOutput schema / properties / itineraries / items / properties / booking_url / description
      Previous value: -"Direct URL to book the itinerary."New value: +"Direct URL when one booking covers the whole itinerary."
    • changedOutput schema / properties / itineraries / items / required
      Previous value: -[
      -  "price",
      -  "outbound",
      -  "booking_url",
      -  "booking_link"
      -]New value: +[
      +  "price",
      +  "outbound",
      +  "booking_options"
      +]
    • addedOutput schema / then
      Added value: +{
      +  "properties": {
      +    "itineraries": {
      +      "items": {
      +        "properties": {
      +          "booking_options": {
      +            "oneOf": [
      +              {
      +                "maxItems": 1,
      +                "minItems": 1,
      +                "prefixItems": [
      +                  {
      +                    "properties": {
      +                      "legs": {
      +                        "const": [
      +                          "outbound",
      +                          "inbound"
      +                        ]
      +                      }
      +                    }
      +                  }
      +                ]
      +              },
      +              {
      +                "maxItems": 1,
      +                "minItems": 1,
      +                "prefixItems": [
      +                  {
      +                    "properties": {
      +                      "legs": {
      +                        "const": [
      +                          "inbound",
      +                          "outbound"
      +                        ]
      +                      }
      +                    }
      +                  }
      +                ]
      +              },
      +              {
      +                "maxItems": 2,
      +                "minItems": 2,
      +                "prefixItems": [
      +                  {
      +                    "properties": {
      +                      "legs": {
      +                        "const": [
      +                          "outbound"
      +                        ]
      +                      }
      +                    }
      +                  },
      +                  {
      +                    "properties": {
      +                      "legs": {
      +                        "const": [
      +                          "inbound"
      +                        ]
      +                      }
      +                    }
      +                  }
      +                ]
      +              },
      +              {
      +                "maxItems": 2,
      +                "minItems": 2,
      +                "prefixItems": [
      +                  {
      +                    "properties": {
      +                      "legs": {
      +                        "const": [
      +                          "inbound"
      +                        ]
      +                      }
      +                    }
      +                  },
      +                  {
      +                    "properties": {
      +                      "legs": {
      +                        "const": [
      +                          "outbound"
      +                        ]
      +                      }
      +                    }
      +                  }
      +                ]
      +              }
      +            ]
      +          }
      +        },
      +        "required": [
      +          "inbound"
      +        ]
      +      }
      +    }
      +  }
      +}
  5. Changed2 schema fields changed
    • changedInput schema / properties / destination / description
      Previous value: -"Destination airport code for flight search."New value: +"Destination airport or metro IATA code."
    • changedInput schema / properties / origin / description
      Previous value: -"Origin airport code for flight search."New value: +"Origin airport or metro IATA code."
  6. Changed2 schema fields changed
    • addedOutput schema / properties / itineraries / items / properties / price / properties / status
      Added value: +{
      +  "description": "Whether the price was confirmed or is an unverified search hint.",
      +  "enum": [
      +    "verified",
      +    "unverified"
      +  ],
      +  "type": "string"
      +}
    • changedOutput schema / properties / itineraries / items / properties / price / required
      Previous value: -[
      -  "amount",
      -  "currency"
      -]New value: +[
      +  "amount",
      +  "currency",
      +  "status"
      +]
  7. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnly/openWorld/non-destructive, so the safety profile is covered. The description adds genuine behavioral context beyond that: results are ranked, include prices, segments and baggage data, and carry an ignav_id that chains into another tool. It says nothing about rate limits or result freshness, which keeps 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.

Conciseness5/5

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

Three tight sentences, front-loaded with the purpose, then the critical input shape, then the follow-up workflow. No filler; the structural warning is placed exactly where an agent would otherwise guess wrong.

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 15-parameter tool with 100% schema coverage and an output schema, the description covers the required shape and the downstream workflow adequately. It does not flag the result-affecting default of allow_third_party=false, which is the main residual gap.

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 coverage is 100%, so the baseline is 3 and the description largely restates schema-defined structure. Its one added-value point is the pitfall warning that legs must be a list of 1–2 objects, not top-level origin/destination — useful, but not enough to lift it above baseline.

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 plus the supported trip types (one-way, round-trip, open-jaw, multi-city), which no sibling offers. An agent can distinguish this broad flight search from search_cheapest_dates or search_airports without opening any schema.

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?

Gives a clear usage path: call this, then pass the returned ignav_id to get_booking_links for booking URLs. It does not state when to prefer search_cheapest_dates instead, so the alternative-routing half of the guidance is missing.

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.