Add flight to trip
flight_quickaddLook up a real flight by number and date, then create it as a segment in the trip. Combines flight_quickadd_lookup + segment_create in one call. May take 2-5 seconds due to external flight data lookup. Segment dates must fall within the parent trip dates; use trip_update first to extend the trip.
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>",
"flight_number": "<flight_number>",
"departure_date": "<departure_date>"
},
"name": "flight_quickadd"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| airline | No | Full airline name as fallback (e.g., 'American Airlines'). Used only if airline_code is not provided. | |
| trip_id | Yes | The trip ID to add the flight to | |
| airline_code | No | IATA or ICAO airline code (AA, UA, DL, AAL). Optional if embedded in flight_number. | |
| flight_number | Yes | Flight number, e.g. 'AA3242', 'UA100', or just '3242' if airline_code is provided | |
| departure_date | Yes | Departure date in YYYY-MM-DD format |