How to get there
how_to_getUse this first for any 'how do I get / how to travel / route from A to B' question, also when the user names a date (the route options do not depend on the day; call flight_prices afterwards only if they also want flight fares for that day). Door-to-door ways to travel between two cities in Europe and Türkiye by plane, train, bus or ferry, from Routavio's route data: one option per transport mode with legs, operators, total duration, transfers and the lowest fare Routavio observed with the day it was checked, plus a link to the full Routavio page. Durations and fares are left out when Routavio could not confirm them.
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": {
"from": "<from>",
"to": "<to>"
},
"name": "how_to_get"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | City name in any language, e.g. İstanbul | |
| from | Yes | City name in any language, e.g. Ankara | |
| locale | No | Language of the user's question as a two-letter code (en, tr, de, fr, es, it, nl, pl, pt, ru, ar). The answer and the links use it. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | ||
| dir | No | ||
| from | No | ||
| legs | No | ||
| found | Yes | ||
| modes | No | ||
| locale | No | ||
| source | No | ||
| options | No | One door-to-door option per transport mode Routavio has a checked route for, lowest observed fare first. | |
| pageUrl | No | ||
| toLabel | No | ||
| fromLabel | No | ||
| operators | No | ||
| searchUrl | No | ||
| transfers | No | ||
| modeLabels | No | ||
| durationMin | No | ||
| fareCheckedOn | No | YYYY-MM-DD the fare was checked | |
| catalogueLabel | No | The label a catalogueFareEUR is printed under, e.g. Omio catalogue | |
| routeCalculatedOn | No | YYYY-MM-DD | |
| lowestObservedFareEUR | No |