Choose a flight for a leg
choose_flightSaves the flight the traveller picked for one leg of a trip, identified by leg_key from the trip's legs, with its summary, price and booking link, such as a fare from a flight search or one saved in the new-trip draft. Booking itself happens on the airline's or booking site.
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": {
"trip_id": "<trip_id>",
"leg_key": "<leg_key>",
"summary": "<summary>",
"price": "<price>",
"currency": "<currency>"
},
"name": "choose_flight"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| link | No | ||
| price | Yes | Total for all travellers | |
| source | No | Where the offer was found, e.g. the airline or booking site | |
| leg_key | Yes | ||
| summary | Yes | One line: airline, flight numbers, times | |
| trip_id | Yes | ||
| currency | Yes |