Skip to main content
Glama

Train departures by station name

train_departures_by_station_name
Read-onlyIdempotent

Look up scheduled train departures between two Korean cities and stations by name, optionally for a specific YYYYMMDD date. Returns candidate matches when station names are ambiguous.

Instructions

Find scheduled trains from city and station names in one call. Exact names are preferred; ambiguous names return candidates. date is YYYYMMDD and defaults to the TAGO API behavior when omitted.

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": {
      "departureCity": "<departureCity>",
      "departureStation": "<departureStation>",
      "arrivalCity": "<arrivalCity>",
      "arrivalStation": "<arrivalStation>"
    },
    "name": "train_departures_by_station_name"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateNoPlanned departure date in YYYYMMDD format (e.g. 20261125)
arrivalCityYesKorean arrival city name
departureCityYesKorean departure city name
arrivalStationYesArrival station name
departureStationYesDeparture station name

Output Schema

NameRequiredDescriptionDefault
dataYes
stageYes
statusYes
detailsNo
messageYes
summaryYes
resolvedYes
candidatesYes
observedAtNo
sourceServicesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already cover read-only, idempotent, open-world, non-destructive behavior, so the bar is lower. The description adds real context beyond them: ambiguous inputs fall back to returning candidate matches rather than failing, and an omitted date delegates to API default behavior.

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?

Three short sentences, front-loaded with the core action, with no filler about return values. 'In one call' is mildly promotional but harmless.

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?

An output schema exists, so return shape need not be described. For a read-only lookup tool, the description covers the action, the matching behavior, and the optional date parameter — everything needed to invoke it correctly.

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. The description still adds meaning: name-matching semantics (exact preferred, ambiguity resolves to candidates) for the four required name parameters, plus a note that date is optional and defaults server-side, though it never states what that default actually is.

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

Purpose4/5

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

States a specific verb and resource: find scheduled trains from city and station names. This distinguishes it from the ID-based find_train_departures and from the list_train_* lookup tools, though the description never explicitly contrasts with them.

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?

Offers input-side guidance (exact names preferred, ambiguous names yield candidates), which implies when this tool works well. It never says when another tool is a better choice, such as when station codes are already known, so the routing guidance is only implied.

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