plan_open_jaw_trip
Plan an open-jaw trip to two countries, flying into one and returning from the other. Searches nearby departure airports and compares both directions to show flight options and total prices.
Instructions
Plan an open-jaw trip visiting two destinations — fly into one country and out of another without backtracking. Ideal for "Nottingham to Argentina and Chile in October: what's the cheapest combination?".
Searches all nearby departure airports at once and compares two itinerary directions:
Option A: fly into destination_a, return from destination_b
Option B: fly into destination_b, return from destination_a
Returns both options ranked by total combined price (outbound + return), with flight details and booking tokens for each leg. Uses 4 API credits total.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| gl | No | Country code | |
| hl | No | Language code | |
| stops | No | 0=Any, 1=Nonstop only, 2=1 stop or fewer, 3=2 stops or fewer | |
| adults | No | Number of adults | |
| currency | No | Currency code (e.g. GBP, EUR, USD) | |
| max_price | No | Maximum price per person per leg | |
| return_date | Yes | Return departure date (YYYY-MM-DD) | |
| travel_class | No | 1=Economy, 2=Premium economy, 3=Business, 4=First | |
| destination_a | Yes | First destination country or city (e.g. 'Argentina'). The trip will fly into OR out of this destination. | |
| destination_b | Yes | Second destination country or city (e.g. 'Chile'). The trip will fly into OR out of this destination. | |
| outbound_date | Yes | Outbound departure date (YYYY-MM-DD) | |
| departure_location | Yes | Departure city or region (e.g. 'Nottingham', 'London'). All nearby airports will be searched. | |
| max_departure_airports | No | How many nearby UK airports to include (default 5) | |
| max_destination_airports | No | How many airports per destination to include (default 2) |