Add Tracked Flight Route
create_routeAdd a new flight route to Fare Scout (exact dates, flexible date range via depart_date_end + trip_days, or multi-city via legs, plus optional extra_legs for train/bus/ferry).
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": {
"name": "<name>"
},
"name": "create_route"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| legs | No | Ordered legs for multi-city open-jaw itineraries | |
| name | Yes | Trip label, e.g. Toronto to Tokyo | |
| origin | No | Origin IATA airport code(s), comma-separated, e.g. YYZ | |
| max_stops | No | Optional max stops filter: 0 = Nonstop only, 1 = Max 1 stop, 2 = Max 2 stops (omit for any) | |
| trip_days | No | Trip length in days for flexible round-trip range search | |
| extra_legs | No | Optional train/bus/ferry legs to include in total trip cost | |
| depart_date | No | Exact departure date or earliest depart date (YYYY-MM-DD) | |
| destination | No | Destination IATA airport code(s), comma-separated, e.g. HND,NRT | |
| return_date | No | Exact return date (YYYY-MM-DD); omit for one-way or flexible range | |
| checked_bags | No | Number of checked bags planned (tracked for trip cost reference) | |
| carry_on_bags | No | Number of carry-on bags to include in fare search (0 = personal item only, 1 = 1 carry-on included, 2 = 2 carry-ons) | |
| depart_date_end | No | Latest depart date for flexible date range search (YYYY-MM-DD) | |
| fallback_target_price | No | Optional manual max price alert (omit for Auto) |