Get empty leg
get_empty_legReturns details, the price for a given number of passengers and the booking link for one empty leg. Booking happens on mirai.flights or in the Mirai app.
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": {
"id": "<id>",
"company_id": "<company_id>"
},
"name": "get_empty_leg"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| pax | No | group size; the price depends on it, so pass it whenever known | |
| currency | No | currency the user asked for; default EUR, follow-ups keep the search currency | |
| language | No | response language; defaults to the client's Accept-Language, then en | |
| company_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| to | Yes | ||
| from | Yes | ||
| link | No | booking link for the user | |
| image | No | destination photo URL | |
| seats | Yes | ||
| photos | No | aircraft and cabin photo URLs | |
| status | Yes | ||
| to_city | No | ||
| from_city | No | ||
| company_id | Yes | ||
| price_from | Yes | ||
| flight_time | Yes | ||
| aircraft_type | Yes | ||
| price_for_pax | No | ||
| departure_window | Yes | local time range the flight can depart in |