Connections from A to B
rmv_tripPlan RMV connections between two stops or places, returning departure and arrival times, transfers, realtime status, and a token to recheck a chosen trip.
Instructions
Searches connections in the RMV area between two stops or places, each with departure, arrival, duration, transfers, its legs (with trip_id), a status: ok, delayed, cancelled, unreachable (a transfer is missed or the first ride has left) or no_realtime, with the reasons, and a recheck_token for rmv_recheck. With arrive_by, the connections arriving last before time, and earlier ones to switch to. Use it to plan a route; to check a connection found before use rmv_recheck, for one stop's departures rmv_departures, for one ride with all stops rmv_journey. page_cursor.earlier and later page through more. Each call costs one or two requests of the access key's quota, and one more for each stop given by name (answer rate_limited with retry_after_seconds when it is used up); ask every few minutes at most for the same trip.
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": "rmv_trip"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Where to, like `from`. | |
| from | Yes | Where from: a stop ID, a stop name that fits one stop, or `LAT,LON`. | |
| time | No | Depart at this time, or arrive by it with `arrive_by`: RFC 3339 with an offset, or HH:MM today or a local time like 2026-11-28T07:50 in Europe/Berlin. Default now. | |
| count | No | How many connections to ask for, up to 6. Default 5. | |
| modes | No | Only these modes, like `["regional_rail", "suburban"]`, or `rail` for all trains. | |
| arrive_by | No | Arrive by `time`. The connections arriving last before it come with earlier ones, to switch to. | |
| page_cursor | No | The page before or after: `page_cursor.earlier` or `later` of the previous result, with the same other arguments. | |
| max_transfers | No | The most transfers, 0 to 11, like 0 for direct connections only. Default: no limit. | |
| realtime_routing | No | Route on the realtime timetable: cancelled rides and missed transfers then drop out instead of being reported. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | ||
| from | Yes | ||
| warnings | Yes | ||
| attribution | Yes | ||
| connections | Yes | Sorted by departure. | |
| page_cursor | Yes | ||
| realtime_as_of | No | When RMV last updated its realtime data. |