Skip to main content
Glama

get_ktx_long_term_stats

Retrieve 20 years of KTX statistics for Gyeongbu and Honam lines, including trip frequency, fares, and monthly passengers, with filters for route and year range.

Instructions

KTX 장기 통계 조회 (2004~2023년, 로컬 XLSX).

경부선(서울-부산)·호남선(용산-목포) 2개 노선의 20년 역사 데이터.

category 선택: "운행횟수_주중" — 화요일 기준 편도 운행 횟수 (단위: 회) "운행횟수_주말" — 토요일 기준 편도 운행 횟수 (단위: 회) "운임_원" — 해당 연도 운임 (단위: 원, 서울-부산·용산-목포 기준) "이용객_천명월" — 월평균 이용객 수 (단위: 천명/월) 빈값 — 위 4개 카테고리 전체 반환

route: "경부선" | "호남선" 부분일치 필터 (빈값=전체) year_from / year_to: 연도 범위 필터 (예: year_from=2010, year_to=2019)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
routeNo
year_toNo
categoryNo
year_fromNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Install Server

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations, the description carries the behavioral burden. It discloses that data comes from a local XLSX file, explains partial matching for route, and defines the default behavior of returning all categories when category is empty. However, it does not mention performance, authentication, or error handling, leaving some transparency gaps.

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?

The description is well-structured with a header, scope statement, and bullet-point-like list for category values, followed by concise explanations for route and years. It is front-loaded with the purpose and avoids redundancy, though it could be slightly tighter by combining the year filter explanation.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The description covers all parameters and data scope, and the output schema exists, so return format is not needed. However, it leaves a gap: the defaults for year_from/year_to are ambiguous—the schema defaults to 0, but the description does not explicitly state that an empty or zero value means 'all years' (unlike category and route where it clearly states empty means all). This is a notable missing detail for an agent to use the tool correctly.

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 description coverage is 0%, so the description fully compensates. It explains every parameter: category with four specific values and a default of returning all, route with partial match and default of all, and year_from/year_to with an example range. This adds substantial meaning beyond the bare schema types and defaults.

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 retrieves KTX long-term statistics (2004-2023) for two specific routes, with a clear verb ('조회' = query) and resource. It distinguishes from sibling tools by being KTX-specific and long-term, and lists the exact data categories and data source (local XLSX).

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?

The description implies usage (for querying KTX long-term stats) but does not explicitly state when to use this tool versus alternatives, nor does it mention exclusions. While the tool's specificity makes the choice obvious, there is no guidance on when not to use it or which sibling might be more appropriate for other statistics.

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