create_route
Create or edit a tracked flight route by setting travel dates, IATA origins and destinations, stops, duration, cabin, and passengers to monitor price changes.
Instructions
Create (or, with overwrite=True, edit) a route to track.
name: e.g. december_FCO_MUC (letters, digits, _ and -). dates: departure dates YYYY-MM-DD; every combination dates x origins x destinations is searched. origins / destinations: IATA codes, e.g. ["FCO"], ["MUC", "FRA"]. max_stops: NON_STOP, ONE_STOP_OR_FEWER, TWO_OR_FEWER_STOPS or ANY. max_duration: e.g. "5h" or "2h 30m"; null for no limit. cabin: ECONOMY, PREMIUM_ECONOMY, BUSINESS or FIRST. Editing a route keeps its price history.
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>",
"dates": "<dates>",
"origins": "<origins>",
"destinations": "<destinations>"
},
"name": "create_route"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| cabin | No | ECONOMY | |
| dates | Yes | ||
| adults | No | ||
| origins | Yes | ||
| max_stops | No | NON_STOP | |
| overwrite | No | ||
| destinations | Yes | ||
| max_duration | No | 5h |