Train status
train_statusRetrieve current train status by train number to view delays, reported station, next stop, GPS location, speed, causes, and stop-by-stop timetable.
Instructions
Current status of a train by number: delay, last reported station, next stop, GPS location and speed, delay causes, and the stop-by-stop timetable with actual/estimated times.
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": {
"train_number": "<train_number>"
},
"name": "train_status"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | Departure date YYYY-MM-DD (default: the latest/current run) | |
| train_number | Yes | Train number, e.g. 9 for IC 9. For commuter trains use the number from station_board. | |
| include_pass_through | No | Also list stations the train passes without a passenger stop |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| via | No | ||
| stops | Yes | ||
| train | Yes | ||
| origin | Yes | ||
| category | Yes | ||
| location | No | ||
| nextStop | No | ||
| operator | Yes | ||
| cancelled | Yes | ||
| delayCauses | No | ||
| destination | Yes | ||
| trainNumber | Yes | ||
| currentDelay | No | ||
| lastReported | No | ||
| departureDate | Yes | ||
| runningCurrently | Yes |