Skip to main content
Glama

Station departures

rail_station_departures
Read-only

Query a station's timetable for scheduled departures across TRA, THSR, and metro systems, filtered by date, time, or destination.

Instructions

A station's departures on a day toward every destination, from its timetable: TRA, THSR or a metro (including Taipei Metro, whose live board shows arrivals only). Use tra_timetable or thsr_timetable for trains between two stations. Example: system "TRA", station "板橋"; or system "TRTC", station "台北車站", toward "淡水".

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": {
      "system": "<system>",
      "station": "<station>"
    },
    "name": "rail_station_departures"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateNoTravel date in Taiwan, YYYY-MM-DD (default: today).
afterNoOnly departures at or after this time, HH:mm (default: now for today, else 00:00).
limitNoMaximum number of departures to return (default 20).
systemYesRail system: TRA (臺鐵), THSR (高鐵) or a metro: TRTC 臺北捷運 Taipei Metro, NTMC 新北捷運 (環狀線) New Taipei Metro, TYMC 桃園機場捷運 Taoyuan Airport MRT, TMRT 臺中捷運 Taichung MRT, KRTC 高雄捷運 Kaohsiung MRT, KLRT 高雄輕軌 Kaohsiung LRT.
towardNoOnly trains whose terminus contains this, e.g. "淡水" or "Kaohsiung".
stationYesStation name in Chinese or English (台北, 板橋, Ximen) or station ID.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.7.1

TDQS

A4.3/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnlyHint and openWorldHint, so the description only has to add behavioral texture, which it does: it discloses that results derive from the timetable rather than a live board, and that Taipei Metro's live board is arrivals-only, explaining why towers that system differently. It does not describe result shape or how sparse timetables (e.g. metro off-hours) behave.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two tight sentences plus an example block, with the core purpose and the alternative routing front-loaded. The embedded parenthetical about Taipei Metro arrivals-only is slightly awkward but carries real information, so it earns its place.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a read-only, six-parameter query tool with no output schema, the definition covers purpose, system coverage, alternative tools, and worked examples. What remains unstated — result ordering and how empty/unsupported timetable cases surface — is minor but non-zero.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, and the description goes beyond it by demonstrating concrete system/station/toward combinations (including mixed Chinese/English station naming) that show how the parameters compose in practice. It does not add anything about date/after/limit interplay, which the schema already covers.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb+resource ('A station's departures on a day') plus the source (timetable) and the scope of systems (TRA, THSR, metrocodes). It also names the sibling tools (tra_timetable, thsr_timetable) it is not, so an agent can distinguish it without opening the schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly routes the agent away from this tool for between-two-stations queries ('Use tra_timetable or thsr_timetable for trains between two stations') and supplies two concrete call examples. It stops short of naming the live-board siblings (metro_live_board, tra_live_board) as alternatives, leaving that inference to the agent.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.