Alternative routes
mb_alternative_routesFind alternative trip options when direct trains are full or expensive, including one-change train/bus journeys and nearby train, bus, and flight routes.
Instructions
Alternatives when direct trains are full or dear: trips with one change, and nearby train, bus and flight routes.
with_one_change: up to 7 journeys with one change, any mix of train and bus (price per adult). nearby_*: routes near the two stations with the cheapest price where known (classes_listed is a raw count, not bookable classes); pass their ids to mb_search_trains, mb_search_buses or mb_search_flights. Seat counts here can be cached: confirm with a search.
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": {
"origin": "<origin>",
"destination": "<destination>",
"date": "<date>"
},
"name": "mb_alternative_routes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | Yes | Travel date YYYY-MM-DD (sales open about 18 days ahead). | |
| origin | Yes | Train station id from mb_find_place(mode='train'), e.g. 1 (Tehran). | |
| destination | Yes | Train station id from mb_find_place(mode='train'), e.g. 1 (Tehran). |