Skip to main content
Glama

Metro journey time

metro_travel_time
Read-only

Calculate metro journey time between two stations, including line changes, walking transfers, train frequency and expected waits across Taipei, Kaohsiung, Taichung and Taoyuan Airport lines.

Instructions

How long a metro journey takes between two stations, with the line changes: each leg with its line, direction (toward) and stops, the walking time at each change, how often trains run now and the expected wait. TRTC covers Taipei and New Taipei (including the Circular line); also Kaohsiung, Taichung and the Taoyuan airport line (express and local). Example: system "TRTC", from "台北車站", to "台北101/世貿".

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>",
      "from": "<from>",
      "to": "<to>"
    },
    "name": "metro_travel_time"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYesDestination station: name (台北車站, 台北101/世貿, Ximen, 美麗島) or station ID (BL12).
dateNoDay of travel in Taiwan, YYYY-MM-DD, for how often trains run (default: today).
fromYesStarting station: name (台北車站, 台北101/世貿, Ximen, 美麗島) or station ID (BL12).
systemYesTRTC (臺北捷運 with 新北捷運: 環狀線, 三鶯線), KRTC (高雄捷運), TMRT (臺中捷運) or TYMC (桃園機場捷運).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.7.1

TDQS

A4.1/5.0
Behavior4/5

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

With readOnlyHint and openWorldHint annotations already covering the safety profile, the description still adds real substance by describing the shape of the answer, including the walking time at each change and the wait implied by current service frequency. It does not mention data recency or fallback behavior for cross-system itineraries, which keeps it from being fully transparent.

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?

The output content is front-loaded in the first sentence and the coverage/example follow, with no wasted clauses. It is dense for a single sentence, but every clause carries information an agent needs.

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?

With no output schema, the description takes on the job of explaining what comes back, and it does so thoroughly (legs, direction, stops, transfer walking, frequency, wait). Remaining gaps are minor: nothing on cross-system journeys or whether frequency is real-time for a future date.

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

Parameters3/5

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

Schema coverage is 100%: the schema already documents station names/IDs, the system enum, and the date format and default. The description's example values ('TRTC', '台北車站', '台北101/世貿') illustrate acceptable input but add little meaning beyond those schema descriptions, so the baseline of 3 is right.

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?

Names the exact resource (a metro journey's duration between two named stations) and the scope of what is returned: legs, lines, direction, stops, walking transfers, service frequency and expected wait. That combination clearly separates it from sibling tools such as metro_frequency (headways only), metro_fare and metro_first_last_train without needing to name them.

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?

The covered systems and the example pair of stations give an agent enough context to know when this tool applies, and the example is directly callable. It stops short of stating exclusions or naming an alternative for fare-only or timetable-only questions, so the routing guidance is implied rather than explicit.

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