Skip to main content
Glama

Taiwan Transit

Get live train delays and on-time records

get_train_delays
Read-onlyIdempotent

Live 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

NameRequiredDescriptionDefault
argsNoArguments of the method, as listed in the tool description
langNoLanguage for data labels (industries, statement items, categories) and links: en, ja, ko or vi; default en
methodYesMethod from the list in the tool description
offsetNoPosition 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

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive, and the description adds substantial context on top: the CubeLV data source, the definition of on-time (arriving 5 minutes late or less at the last recorded station), that delays are sampled every minute and retained 400 days, that statistics exclude today, and that HSR live data is unavailable. These are real behavioral constraints an agent cannot get from the annotations.

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?

Front-loaded summary followed by a clean per-method breakdown with args inline is an efficient shape for a two-method multiplexer. There is minor repetition: 'Give either station or train' is stated under both station and train, and the lack of HSR live data is implied twice, which slightly inflates length.

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

Completeness5/5

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

For a nested-args multiplexer with no output schema, the description covers what each method returns (times, delay, destination, platform; on-time rate, average/max delay, most delayed trains) and the retention window, and pagination is handled by the schema's offset/nextOffset field. Nothing an agent needs to invoke either method correctly appears missing.

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

Parameters5/5

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

Schema coverage is 100% for the top-level fields, but the nested args object is essentially opaque ('as listed in the tool description'), so the description carries the real burden. It documents each per-method arg — system (default tra), station, train, from, to, days (1 to 365, default 30) — including language handling and mutually exclusive combinations.

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?

The opening sentence names the concrete resources and scope: live train delays at a station or for a single train, plus on-time statistics over past days. The method list then names each operation (trainLiveBoard, trainDelayStats) with the exact data it returns, so an agent can tell which behavior it is getting 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?

Selection guidance between the two methods is explicit: live board for current status, delay statistics for past days 'excluding today', and the description states the hard exclusion that high-speed-rail live data is not available. It also states the station-or-train exclusivity and that from/to restricts stats to trains between two stations. It stops short of naming when to prefer a sibling such as get_train_timetable for schedules.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources