Taiwan Railway timetable
tra_timetableQuery Taiwan Railway trains between two stations for a travel date up to two months ahead, returning train type, departure/arrival times, and travel time. Filter by departure time.
Instructions
TRA (臺鐵) trains from one station to another on a day: train type, departure, arrival, travel time, from now on for today. TDX covers about two months ahead. Example: from "臺北", to "花蓮", date "2026-10-23".
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": {
"from": "<from>",
"to": "<to>"
},
"name": "tra_timetable"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Arrival TRA station: name (臺北, 台中, Hualien) or station ID (1000). | |
| date | No | Travel date in Taiwan, YYYY-MM-DD (default: today). | |
| from | Yes | Departure TRA station: name (臺北, 台中, Hualien) or station ID (1000). | |
| after | No | Only departures at or after this time, HH:mm (default: now for today, else 00:00). | |
| limit | No | Maximum number of trains to return (default 10). |