Skip to main content
Glama

get_train_codes

Retrieve train operation codes for stations and main lines. Search by code type, exact code, or partial name to get matching codes.

Instructions

열차운행 코드정보 조회. 최소 하나 이상의 파라미터 필요. code_type=코드유형(예:stn_cd,mrnt_cd), code=코드값(정확일치), value=코드명(부분일치) 주요 code_type: stn_cd(역코드), mrnt_cd(주운행선코드)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
codeNo
valueNo
code_typeNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Install Server

TDQS

A3.9/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It discloses the minimum parameter requirement and matching behavior, but does not clarify the relationship between parameters (e.g., whether code_type is required when using code or value), nor does it mention any limitations or side effects. For a lookup tool, this is adequate but not fully transparent.

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 concise and front-loaded: the first sentence states the purpose, followed by parameter requirements and examples. It contains no filler or redundant information, and every line adds value.

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?

The output schema covers the return format, so that is not required. The description explains parameters and usage constraints, but leaves some ambiguity about how parameters interact (e.g., whether multiple parameters are combined with AND or OR, and whether code_type is needed when using code or value). For a tool of this complexity, it is mostly complete but could benefit from clarifying these interactions.

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 zero description coverage, so the description is the sole source of parameter meaning. It clearly defines each parameter (code_type with examples like stn_cd, mrnt_cd; code for exact match; value for partial match) and even lists common code_type values. This fully compensates for the schema's silence and is highly useful for an agent.

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 clearly states the tool retrieves train operation code information ('열차운행 코드정보 조회') with specific examples of code types. It is distinct from siblings like decode_station_code or search_station, but does not explicitly differentiate itself, which would have earned a 5.

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 specifies the requirement of at least one parameter and explains the matching semantics for code (exact) and value (partial). However, it does not mention when to prefer this tool over sibling tools like decode_station_code or search_station, nor does it describe any alternative or when-not-to-use scenario.

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