Title99/100
Search for flights with Kiwi.com
The title clearly communicates the tool’s action and subject. Keep it concise.
Description99/100
# Search for flights Searches Kiwi.com for available flights between two locations for the given dates and passengers. City or airport names are resolved automatically, so call this whenever the user wants to search for flights — whether they gave IATA codes or just place names. ## Result shape Returns `{ query, currency, passengers, resultsCount, itineraries, searchTimeMs }`. Each item in `itineraries` has: - `price` (number) and `priceFormatted` (e.g. "123 EUR") - `totalDurationSeconds` - `bookingUrl` — the link to book the flight - `imageId` — destination city id for a hero photo (https://images.kiwi.com/photos/600x600/{imageId}.jpg) - `baggage` — total included baggage across all travelers: `{ personalItem, cabinBag, checkedBag }` (counts) - `outbound` (and `inbound` for return flights), each a leg with: `route` (list of airport codes including layovers, e.g. ["PRG","MAD","BCN"]), `departureTime` / `arrivalTime` (local ISO timestamps), `durationSeconds`, `stops`, `cabinClass`, and a `segments` list. Each segment has `from`/`to` (IATA), `fromCity`/`toCity`, `fromName`/`toName` (full airport names), `fromCountry`/`toCountry`, `carrier` (code) and `carrierName` (airline name), `flightNumber`, and `cabinClass`. ## How to display Render a markdown table. Group results into cheapest (lowest `price`), shortest (lowest `totalDurationSeconds`), and other notable options. For each itinerary show, in order: - Route: join `outbound.route` with " → " (e.g. "PRG → MAD → BCN"); for return flights show `inbound.route` on a second line. - Times & duration: `outbound.departureTime` → `outbound.arrivalTime` (local), formatted readably (e.g. "12 Jun 06:05 → 09:30 (3h 25m)") using `outbound.durationSeconds`; add the `inbound` equivalents for return flights. - Cabin: `outbound.cabinClass` (e.g. "Economy"). - Price: `priceFormatted`. - Booking link: `bookingUrl`. Finally, summarise the best price and the shortest option, give a recommendation, and end wishing the user a nice trip with a short fun fact about the destination!
The description explains the capability, when to use it, and what to expect.
Inputs94/100
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
flyFrom
Origin: IATA code, city or airport name (e.g. "PRG", "Prague", "London Heathrow")
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
flyTo
Destination: IATA code, city or airport name
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
departureDate
Departure date in dd/mm/yyyy — the day to fly, or the earliest date of a range (see departureDateTo)
Clear enough to supply this argument.
departureDateFlexDays
Search +/- this many days around departureDate (symmetric). Leave 0 when using departureDateTo
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
departureDateTo
Latest departure date in dd/mm/yyyy for an explicit range [departureDate .. departureDateTo]. Use instead of departureDateFlexDays for a one-directional or asymmetric range; must be >= departureDate
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
returnDate
Return date in dd/mm/yyyy — the day to fly back, or the earliest return date of a range (omit for one-way)
Clear enough to supply this argument.
returnDateFlexDays
Search +/- this many days around returnDate (symmetric). Leave 0 when using returnDateTo
Clear enough to supply this argument.
returnDateTo
Latest return date in dd/mm/yyyy for an explicit range [returnDate .. returnDateTo]. Requires returnDate; use instead of returnDateFlexDays; must be >= returnDate
Clear enough to supply this argument.
adults
Number of adults (12+)
Clear enough to supply this argument.
children
Number of children (2-11)
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
infants
Number of infants (<2)
Clear enough to supply this argument.
cabinClass
M=economy, W=premium economy, C=business, F=first
Clear enough to supply this argument.
currency
Currency code (e.g. EUR, USD)
Clear enough to supply this argument.
locale
Locale (e.g. en, de, fr)
Clear enough to supply this argument.
nights_in_dst_from
Minimum nights at destination before return flight. Turns the search into a return search
Clear enough to supply this argument.
nights_in_dst_to
Maximum nights at destination before return flight
Clear enough to supply this argument.
one_for_city
If true, return only the single best result per destination city — useful for 'explore' searches with broad destinations
Clear enough to supply this argument.
max_sector_stopovers
Maximum number of stopovers (connections) allowed per flight sector
Clear enough to supply this argument.
price_from
Minimum total price filter in the specified currency
Clear enough to supply this argument.
price_to
Maximum total price filter in the specified currency
Clear enough to supply this argument.
max_fly_duration
Maximum total flight duration in hours
Clear enough to supply this argument.
select_airlines
Only include flights operated by these airlines — comma-separated IATA codes, e.g. 'FR,U2,BA'. Mutually exclusive with exclude_airlines
Clear enough to supply this argument.
exclude_airlines
Exclude flights operated by these airlines — comma-separated IATA codes, e.g. 'FR,W6'. Mutually exclusive with select_airlines
Clear enough to supply this argument.
dtime_from
Earliest outbound departure hour (0-23, local)
Clear enough to supply this argument.
dtime_to
Latest outbound departure hour (0-23, local)
Clear enough to supply this argument.
atime_from
Earliest outbound arrival hour (0-23, local)
Clear enough to supply this argument.
atime_to
Latest outbound arrival hour (0-23, local)
Clear enough to supply this argument.
ret_dtime_from
Earliest return departure hour (0-23, local)
Clear enough to supply this argument.
ret_dtime_to
Latest return departure hour (0-23, local)
Clear enough to supply this argument.
ret_atime_from
Earliest return arrival hour (0-23, local)
Clear enough to supply this argument.
ret_atime_to
Latest return arrival hour (0-23, local)
Clear enough to supply this argument.
stopover_from
Minimum layover duration in hours
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
stopover_to
Maximum layover duration in hours
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
adults_hold_bags
Checked (hold) bags per adult, one entry per adult (each 0-2), e.g. [1, 0]
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
adults_hand_bags
Cabin (hand) bags per adult, one entry per adult (each 0-1), e.g. [1, 1]
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
children_hold_bags
Checked (hold) bags per child, one entry per child (each 0-2), e.g. [2]
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
children_hand_bags
Cabin (hand) bags per child, one entry per child (each 0-1), e.g. [1]
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
allow_self_transfer
Allow self-transfer (virtual interlining) connections between separate tickets
Clear enough to supply this argument.
allow_overnight_stopovers
Allow overnight (red-eye) layovers
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
allow_diff_airport_connection
Allow connections that change airports within the same city
Clear enough to supply this argument.
stopover_airports
Only connect via these airports — comma-separated IATA codes. Constrains connecting flights only; direct (non-stop) flights are still returned.
Clear enough to supply this argument.
exclude_stopover_airports
Never connect via these airports — comma-separated IATA codes
Clear enough to supply this argument.
stopover_countries
Only connect via these countries — comma-separated ISO 3166-1 alpha-2 codes, e.g. 'DE,AT'. Constrains connecting flights only; direct (non-stop) flights are still returned.
Clear enough to supply this argument.
exclude_stopover_countries
Never connect via these countries — comma-separated ISO 3166-1 alpha-2 codes
Clear enough to supply this argument.
fly_days
Allowed outbound departure weekdays — comma-separated 0=Sun..6=Sat, e.g. '1,2,3,4,5' for weekdays
Clear enough to supply this argument.
ret_fly_days
Allowed return departure weekdays — comma-separated 0=Sun..6=Sat
Clear enough to supply this argument.
sort
Result ordering
Clear enough to supply this argument.
Annotations100/100
All four behavior hints are declared.
{
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}Output schema68/100
Describe the returned fields so an agent can interpret the result.
View output schema
{
"type": "object",
"$defs": {
"SearchFlightsLegOutput": {
"type": "object",
"title": "SearchFlightsLegOutput",
"properties": {
"to": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "To",
"default": null
},
"from": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "From",
"default": null
},
"route": {
"type": "array",
"items": {
"type": "string"
},
"title": "Route"
},
"stops": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Stops",
"default": null
},
"segments": {
"type": "array",
"items": {
"$ref": "#/$defs/SearchFlightsSegmentOutput"
},
"title": "Segments"
},
"cabinClass": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Cabinclass",
"default": null
},
"arrivalTime": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Arrivaltime",
"default": null
},
"departureTime": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Departuretime",
"default": null
},
"durationSeconds": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Durationseconds",
"default": null
}
},
"additionalProperties": true
},
"SearchFlightsBaggageOutput": {
"type": "object",
"title": "SearchFlightsBaggageOutput",
"properties": {
"cabinBag": {
"type": "integer",
"title": "Cabinbag",
"default": 0
},
"checkedBag": {
"type": "integer",
"title": "Checkedbag",
"default": 0
},
"personalItem": {
"type": "integer",
"title": "Personalitem",
"default": 0
}
},
"description": "Included per-traveler baggage counts (see ``transform._included_baggage``)."
},
"SearchFlightsSegmentOutput": {
"type": "object",
"title": "SearchFlightsSegmentOutput",
"properties": {
"to": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "To",
"default": null
},
"from": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "From",
"default": null
},
"toCity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Tocity",
"default": null
},
"toName": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Toname",
"default": null
},
"carrier": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Carrier",
"default": null
},
"fromCity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Fromcity",
"default": null
},
"fromName": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Fromname",
"default": null
},
"toCountry": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Tocountry",
"default": null
},
"cabinClass": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Cabinclass",
"default": null
},
"arrivalTime": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Arrivaltime",
"default": null
},
"carrierName": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Carriername",
"default": null
},
"fromCountry": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Fromcountry",
"default": null
},
"flightNumber": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Flightnumber",
"default": null
},
"departureTime": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Departuretime",
"default": null
},
"durationSeconds": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Durationseconds",
"default": null
}
},
"additionalProperties": true
},
"SearchFlightsItineraryOutput": {
"type": "object",
"title": "SearchFlightsItineraryOutput",
"properties": {
"id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Id",
"default": null
},
"price": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Price",
"default": null
},
"baggage": {
"anyOf": [
{
"$ref": "#/$defs/SearchFlightsBaggageOutput"
},
{
"type": "null"
}
],
"default": null
},
"imageId": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Imageid",
"default": null
},
"inbound": {
"anyOf": [
{
"$ref": "#/$defs/SearchFlightsLegOutput"
},
{
"type": "null"
}
],
"default": null
},
"outbound": {
"anyOf": [
{
"$ref": "#/$defs/SearchFlightsLegOutput"
},
{
"type": "null"
}
],
"default": null
},
"bookingUrl": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Bookingurl",
"default": null
},
"priceFormatted": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Priceformatted",
"default": null
},
"totalDurationSeconds": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Totaldurationseconds",
"default": null
}
},
"additionalProperties": true
},
"SearchFlightsPassengersOutput": {
"type": "object",
"title": "SearchFlightsPassengersOutput",
"properties": {
"adults": {
"type": "integer",
"title": "Adults",
"default": 0
},
"infants": {
"type": "integer",
"title": "Infants",
"default": 0
},
"children": {
"type": "integer",
"title": "Children",
"default": 0
}
}
}
},
"title": "SearchFlightsStructuredOutput",
"required": [
"query"
],
"properties": {
"error": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Error",
"default": null
},
"query": {
"type": "string",
"title": "Query"
},
"currency": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Currency",
"default": null
},
"passengers": {
"anyOf": [
{
"$ref": "#/$defs/SearchFlightsPassengersOutput"
},
{
"type": "null"
}
],
"default": null
},
"itineraries": {
"type": "array",
"items": {
"$ref": "#/$defs/SearchFlightsItineraryOutput"
},
"title": "Itineraries"
},
"resultsCount": {
"type": "integer",
"title": "Resultscount",
"default": 0
},
"searchTimeMs": {
"type": "integer",
"title": "Searchtimems",
"default": 0
}
},
"description": "Wire shape for ``structuredContent`` (see ``transform.format_itineraries``).",
"additionalProperties": true
}