Get live train delays and on-time records
get_train_delaysLive delays of trains at a station or of one train, and on-time statistics of a train or of the trains between two stations over past days. Data comes from CubeLV's Taiwan open data service (https://cubelv.com/en/mcp/taiwan-transit/): each call names a method and passes its arguments in args.
Methods:
trainLiveBoard (Taiwan Railway live board): Live Taiwan Railway status. With a station: upcoming arrivals and departures there with scheduled times, delay, destination and platform. With a train number: where that train is now and how late it is. High speed rail live data is not available. Args: system: tra (default). Only Taiwan Railway has live data.; station: Station name or ID, in any supported language. Give either station or train.; train: Train number. Give either station or train..
trainDelayStats (Taiwan Railway delay statistics): Delay statistics for Taiwan Railway over recent days, excluding today: on-time rate (arriving 5 minutes late or less at the last recorded station), average and maximum delay, and the most delayed trains. Covers one train, the trains running between two stations today, or the whole network when neither is given. Delays are recorded every minute and kept for 400 days; historySince shows the first recorded day. Args: train: Train number.; from: Departure station name or ID; with to, covers trains running between the two stations today.; to: Arrival station name or ID.; days: Number of past days, 1 to 365; default 30..
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": {
"method": "<method>"
},
"name": "get_train_delays"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | No | Arguments of the method, as listed in the tool description | |
| lang | No | Language for data labels (industries, statement items, categories) and links: en, ja, ko or vi; default en | |
| method | Yes | Method from the list in the tool description | |
| offset | No | Position in the longest list of the response to start from. A response whose list is longer than fits carries page.nextOffset for the next part; default 0 |