Skip to main content
Glama

get_station_distance

Find the shortest operating distance between two Korean railway stations, including passenger and freight distances and intermediate stops. Specify a departure and arrival station to get accurate distance data for fare and route planning.

Instructions

두 역 간 최단 운행거리(km)를 조회합니다. 여객·화물 거리를 구분하며 경유역 정보 포함.

Args: from_station: 출발역명 (정확한 역명 권장, 부분 일치도 지원. 예: "서울", "부산"). to_station: 도착역명 (부분 일치). 없으면 출발역에서 출발하는 모든 구간 거리 반환. current_only: True면 현재 유효 데이터(적용종료일자=9999-12-31)만 반환. 기본 True.

Returns: 출발역명, 도착역명, 여객최단운행거리(km), 화물운행거리(km), 구간거리내용(경유역), 적용기간. ※ 총 220,782건. 최초 호출 시 로딩에 수 초가 소요됩니다. 최대 200건 반환. ※ 출발역명 기준 인덱스만 존재. "특정 역에 도착하는 모든 경로" 역방향 조회는 미지원. ※ 여객최단운행거리는 운임 계산 기준 거리로, 실제 열차 운행거리(XLSX 기준)와 다를 수 있음. 예: 서울↔부산 여객최단 441.7 km vs KTX 운행거리 417.4 km (고속선 vs 운임 기준선 차이).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
to_stationNo
current_onlyNo
from_stationYes
Install Server

TDQS

A4.8/5.0
Behavior5/5

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

With no annotations provided, the description fully carries the burden of behavioral disclosure. It discloses performance (initial load takes seconds, max 200 records), indexing limitation (only departure-based lookup, no reverse query), and semantic distinction (fare-basis vs actual distance) with a concrete example. This is exceptionally transparent about constraints and data characteristics.

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?

The description is well-structured with clear sections (Args, Returns, notes). Every sentence adds value: parameter explanations, return field list, performance caveat, and distance semantics. It is informative without redundancy, and the most critical purpose is stated first.

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 tool with 3 parameters and no output schema, the description is comprehensive. It lists return fields, total record count, maximum result limit, initial load time, indexing limitation, and defines the semantic of '여객최단운행거리' vs actual track distance. This covers all necessary context for an agent to call the tool correctly and interpret results.

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?

The schema has no descriptions, so the description compensates fully. Each parameter is explained: from_station (exact recommended, partial matches), to_station (partial match, absence returns all segments), current_only (default true, filters to current data). This exceeds what the schema provides and enables correct usage.

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 description clearly states the tool queries the shortest operating distance between two stations, distinguishing passenger and freight distances and including via-station information. It uses a specific verb ('조회') and resource ('두 역 간 최단 운행거리'). Among the large sibling list, this tool is uniquely about station-to-station distance, and the description clarifies its scope, making it easy to differentiate.

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 description explains when to use the tool (for distance between stations) and includes behavior for optional parameters (e.g., if to_station is omitted, returns all segments from departure). It also warns that the distance is fare-basis, not actual track distance, implicitly distinguishing it from get_operation_distance. However, it does not explicitly state 'use X for actual distance' or 'when not to use this tool', though context implies alternatives.

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

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/lovelyquality/korail-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server