Skip to main content
Glama

get_operation_distance

Retrieve operational train distances between stations on Korean railway lines. Specify line, departure, or arrival station to get distance in kilometers for route planning.

Instructions

전국 철도 노선별 역간 운행거리를 조회합니다. (20개 노선 그룹)

열차가 실제로 주행하는 선로 거리 기준입니다. 운임 계산용 여객최단운행거리와 다를 수 있습니다. (예: 서울↔부산 KTX 운행거리 417.4 km, 여객최단운행거리 441.7 km)

⚠️ 이 데이터는 철도운행거리_전체 XLSX(노선별 삼각행렬)에 수록된 역만 포함합니다. KTX 전용선 경유 역(경부KTX: 서울·영등포·광명·천안아산·오송·대전·김천구미·동대구·부산 등)만 있고, 같은 KTX가 경유해도 행신·수원처럼 별도 인입선·재래선 역은 미포함일 수 있습니다.

Args: line_name: 노선명 부분 일치 (예: "경부", "호남", "전라", "강릉", "영동", "중앙", "태백"). 없으면 전체 노선 그룹 목록 반환. from_station: 출발역명 (정확 일치). 해당 역에서 출발하는 모든 거리 반환. to_station: 도착역명 (정확 일치). from_station과 함께 지정 시 두 역 간 거리 반환.

Returns: line_name 없음: available_lines 목록. line_name만: 매칭 노선과 역 목록. from_station 추가: 출발역에서 각 역까지의 거리 목록(거리 오름차순 정렬). from+to 모두: 두 역 간 거리(km). ※ 최초 호출 시 XLSX 파싱에 수 초 소요됩니다.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
line_nameNo
to_stationNo
from_stationNo
Install Server

TDQS

A4.6/5.0
Behavior4/5

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

With no annotations, the description discloses key behavioral traits: initial call parsing delay, data source limitations (only stations in the specific XLSX, KTX-only), and exact-match/partial-match handling. It is transparent about side effects and edge cases, though it does not state that the operation is read-only (implied by '조회'). Slightly below a 5 due to minor omissions like error behavior.

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 (purpose, caveat, args, returns) and front-loads the main purpose. Every sentence adds value, including the relevant example (Seoul–Busan KTX) and the latency note. No fluff.

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?

Given no output schema and 3 optional parameters, the description explains all return variations (no line_name, line_name only, with from_station, with both) and notes the parsing delay. It even clarifies the data source scope. For a query tool of this complexity, nothing an agent needs to call it correctly is missing.

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?

Schema coverage is 0%, and the description fully compensates: line_name is partial match with examples, from_station and to_station are exact match, and the behavior for each parameter combination is described in the Returns section. This adds comprehensive meaning beyond the bare 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?

The description states a specific verb and resource ('전국 철도 노선별 역간 운행거리를 조회합니다') and clarifies it is actual track distance (운행거리) distinct from fare-calculation shortest distance. This distinguishes it from the sibling get_station_distance without ambiguity.

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 that the tool returns operation distance, not passenger shortest distance, and warns about the KTX-dedicated-line data coverage. This implies when to use it (actual track distance), but it does not explicitly name alternative tools or give a when-not-to-use statement. Adequate but not fully explicit.

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