Search empty legs
search_empty_legsSearches empty leg flights: discounted one-way repositioning flights that depart within a time window. All filters are optional. Each result has id and company_id for get_empty_leg.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "search_empty_legs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pax | No | group size; listed prices are minimums per jet, get_empty_leg prices the group | |
| page | No | ||
| sort | No | departure_date or price, ascending | |
| to_ref | No | ref from find_location | |
| date_to | No | YYYY-MM-DD | |
| currency | No | currency the user asked for; default EUR, follow-ups keep the search currency | |
| from_ref | No | ref from find_location | |
| language | No | response language; defaults to the client's Accept-Language, then en | |
| date_from | No | YYYY-MM-DD | |
| price_max | No | ||
| price_min | No | ||
| aircraft_class_ids | No | ids from list_aircraft_classes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pax | No | passengers the search was for | |
| page | Yes | ||
| currency | Yes | pass the same currency to get_empty_leg | |
| empty_legs | Yes | ||
| total_pages | Yes |