Realtime delays at a station (GTFS-RT)
get_realtime_delaysRetrieve realtime arrival and departure delays and cancellations for a single Swiss station using its 7-digit UIC number. Returns GTFS trip and route IDs, delay minutes, and status.
Instructions
Realtime arrival/departure delays and cancellations at one Swiss station from the national GTFS-RT trip-update feed (opentransportdata.swiss). Input the 7-digit UIC station number (use search_stations to find it; e.g. 8503000 = Zürich HB, 8507000 = Bern). Returns GTFS trip_id/route_id, delay in minutes and status (CANCELED/SKIPPED). Requires env OPENTRANSPORTDATA_API_KEY (free). For line names and platforms prefer get_departures.
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": {
"station_id": "<station_id>"
},
"name": "get_realtime_delays"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| station_id | Yes | 7-digit UIC/DiDok number, e.g. '8503000' | |
| min_delay_minutes | No | Only trips delayed at least this much (cancellations always shown) |