Train run by number
get_train_statusEvery run of a train number on one service date with every calling point: scheduled, expected and recorded arrival and departure in UTC, platform where stated, cancellations, per-stop delay, and the railway's stated reason for a delay or cancellation in its own words. Expected times appear only on networks whose operator publishes live expected times, and only while the run is not stale (updated in the last 15 minutes); elsewhere a run is the timetable plus recorded times and cancellations. A number can run more than once a day or under several operators: runs are never merged, each is listed, and number_identity says how far the number names one run on its network. total counts every matching run; returned holds the first 10 by scheduled departure: narrow with network, operator or origin when total is larger. Runs are kept for about 45 days; timetables are held up to about 36 hours ahead.
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": {
"number": "<number>",
"date": "<date>"
},
"name": "get_train_status"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | Yes | Service date YYYY-MM-DD: the date the run starts on in its railway's time zone. | |
| number | Yes | Train number as published, e.g. 1A23, 171 or RJX 860. | |
| origin | No | Origin station: its public code or its whole name. | |
| network | No | The railway's country code, e.g. GB, US or CH. | |
| operator | No | Operator code, e.g. VT or SBB. |