Skip to main content
Glama

Find train departures

find_train_departures
Read-onlyIdempotent

Queries scheduled train departures, times, and fares between two station IDs for a planned date; use station and train-type IDs for accurate South Korea rail trip planning.

Instructions

Query scheduled train departures, times, and fares between depPlaceId and arrPlaceId. Obtain station IDs (nodeid) from list_train_stations and optional trainGradeCode from list_train_types.

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": {
      "depPlaceId": "<depPlaceId>",
      "arrPlaceId": "<arrPlaceId>"
    },
    "name": "find_train_departures"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNoPage number (1-1000); defaults to 1
pageSizeNoMaximum items per page (1-100); defaults to 10
arrPlaceIdYesArrival train station ID (nodeid) from list_train_stations
depPlaceIdYesDeparture train station ID (nodeid) from list_train_stations
depPlandTimeNoPlanned departure date in YYYYMMDD format (e.g. 20261125)
trainGradeCodeNoTrain type code from list_train_types

Output Schema

NameRequiredDescriptionDefault
itemsYes
sourceUrlYes
catalogUrlYes
observedAtYes
totalCountYes
sourceServiceYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

The annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false and openWorldHint=true, so the safety and idempotency profile is fully covered without the description. The description adds no behavioral context of its own — no note on pagination limits, result ordering, or fare availability — which is acceptable given the rich annotations and the existing output schema, but it is the minimum viable.

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

Conciseness5/5

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

Two sentences, zero filler, and the core capability is front-loaded ahead of the dependency note. Nothing could be removed without losing information.

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 six-parameter read-only search with full schema coverage, complete annotations, and an output schema, the description covers identity and dependency chaining adequately. The one real gap is not positioning it against train_departures_by_station_name, which an agent choosing between ID-based and name-based lookup would need.

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 description coverage is 100%, including the YYYYMMDD pattern, page/pageSize bounds, and the source of depPlaceId/arrPlaceId/trainGradeCode, so the baseline is 3. The description restates the station-ID and train-type-code sourcing already documented per-parameter in the schema, adding little new meaning.

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?

The description uses a specific verb and resource ('Query scheduled train departures, times, and fares') and scopes it to a depPlaceId→arrPlaceId pair, which is clear enough to act on. It does not explicitly distinguish itself from the sibling train_departures_by_station_name, which queries the same domain by name rather than ID, so the differentiation is only implicit in the ID-based wording.

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?

It gives useful prerequisite chaining: get nodeids from list_train_stations and trainGradeCode from list_train_types, which is real guidance for how to use it. It stops short of saying when to choose this over train_departures_by_station_name or the bus/flight siblings, and there is no statement about when not to use it.

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