Get train timetables and fares
get_train_timetableTaiwan High Speed Rail and Taiwan Railway trains between two stations on a date, with departure and arrival times, travel time, fares and, for Taiwan Railway, each train's on-time rate and average delay over the past 30 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:
railTimetable (Taiwan high speed rail and railway timetable): Trains between two stations of Taiwan High Speed Rail or Taiwan Railway on one day, with departure, arrival, travel time and adult one-way fare. High speed rail trains add fares for standard, business and non-reserved cars and, for today, remaining seats. Railway trains add the train class and an on-time rate and average delay over the past 30 days. Args: system (required): thsr for Taiwan High Speed Rail or tra for Taiwan Railway.; from (required): Departure station name or ID, in any supported language.; to (required): Arrival station name or ID, in any supported language.; date: Travel date YYYYMMDD, Taipei time; defaults to today. Timetables are published about a month ahead.; departAfter: Only trains departing at or after this time, HH:MM.; limit: Maximum number of trains, 1 to 200; default 20..
railFares (Taiwan high speed rail and railway fares): All fares between two stations of Taiwan High Speed Rail or Taiwan Railway by ticket type, passenger class and car class (high speed rail) or train class (railway), plus a short list of adult one-way fares. Railway results include the distance in km. Prices are in TWD. Args: system (required): thsr for Taiwan High Speed Rail or tra for Taiwan Railway.; from (required): Departure station name or ID, in any supported language.; to (required): Arrival station name or ID, in any supported language..
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_timetable"
}
}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 |