Skip to main content
Glama

Taiwan Transit

Get metro fares and travel times

get_metro_trip
Read-onlyIdempotent

Fare, travel time and first and last trains between two stations of the Taipei, Taoyuan Airport, Taichung or Kaohsiung metro. 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:

  • metroRoute (Taiwan metro fares, travel time and first and last trains): For two stations of the Taipei, Taoyuan, Taichung or Kaohsiung metro: fares by ticket type and passenger class (including resident discounts), travel time and distance, and first and last train times at the departure station for each direction, with the directions that reach the destination marked. The system is inferred from the station names when omitted. Args: system: trtc (Taipei), tymc (Taoyuan), tmrt (Taichung) or krtc (Kaohsiung). Omit to infer from the station names.; 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_metro_trip"
  }
}

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/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint and destructiveHint=false, so the safety profile is covered. The description goes further by disclosing the upstream data source (CubeLV Taiwan open data service) and what the payload contains — fares broken out by ticket type and passenger class with resident discounts, distance, and first/last trains with reachable directions marked. Pagination via offset/page.nextOffset is left to the schema rather than explained here.

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

Conciseness3/5

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

Front-loaded and reasonably structured with a methods list, but there is noticeable duplication: the opening sentence and the metroRoute bullet both restate "fares, travel time and first and last trains," and the vendor URL earns little space in a tool definition.

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 carries the return-shape burden and does so adequately for fares, travel time and first/last trains. Minor gaps remain: nothing about failure behavior for unknown stations or cross-system journeys, though the system-inference note implies cross-system lookups are resolved automatically.

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 baseline is 3, but the description is doing real work the schema cannot: the nested args object is only documented here, with system codes (trtc/tymc/tmrt/krtc), required from/to accepting names or IDs in any supported language, and the inference rule when system is omitted. Only lang and offset are left to the schema.

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?

"Fare, travel time and first and last trains between two stations" names a concrete resource and the exact outputs, and the metro scope (Taipei, Taoyuan Airport, Taichung, Kaohsiung) cleanly separates it from sibling bus, rail-delay, timetable and YouBike tools without opening their schemas.

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

Usage Guidelines3/5

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

Usage is implied by the strongly scoped purpose and by method-level detail, but the description never states preconditions or alternatives (e.g. that find_stations should be used to resolve ambiguous station names, or when metroRoute is inappropriate). The only real routing guidance is "Omit to infer from the station names" for the system arg.

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