Add Tracked Flight Route
create_routeCreate and save a new tracked flight route for the authenticated user in one of three modes: (1) Exact Dates using origin, destination, depart_date, and optional return_date; (2) Flexible Date Range using origin, destination, depart_date, depart_date_end, and optional trip_days; or (3) Multi-City / Open-Jaw using legs[]. Prices are fetched automatically on the twice-daily schedule (9 AM / 9 PM EST). Returns { route } with the newly assigned UUID. Failure modes: returns an error if required fields for the chosen mode are missing, if dates/codes are invalid, or if the user has reached their plan route quota (3 routes on Free, 20 on Pro — check list_routes first or delete an old route).
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 flight legs for multi-city/open-jaw mode (each leg requires origin, destination, depart_date) | |
| name | Yes | Short human-readable trip label, e.g. 'Toronto to Tokyo' | |
| origin | No | Origin 3-letter IATA airport code(s), comma-separated (required for exact/flexible modes), 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 | Round-trip duration in days for flexible date range search; omit for one-way | |
| extra_legs | No | Optional train, bus, ferry, or regional flight legs (e.g. VIA Rail or Calm Air) added to total trip cost | |
| depart_date | No | Exact departure date or start of flexible window in YYYY-MM-DD format (required for exact/flexible modes) | |
| destination | No | Destination 3-letter IATA airport code(s), comma-separated (required for exact/flexible modes), e.g. 'HND,NRT' | |
| return_date | No | Exact return date in YYYY-MM-DD format; omit for one-way or flexible range | |
| checked_bags | No | Default checked bags for both directions if outbound/return are not specified separately (0-2) | |
| carry_on_bags | No | Carry-on bags included in Google Flights search (0 = personal item only, 1 = 1 carry-on, 2 = 2 carry-ons) | |
| depart_date_end | No | End of flexible departure window in YYYY-MM-DD format (enables flexible calendar search) | |
| fallback_target_price | No | Optional manual max price alert threshold in the user's currency; omit to use automatic targets |