Skip to main content
Glama

get-train-route-stations

Get detailed station stops, arrival and departure times, and dwell duration for a specific train code on a given departure date.

Instructions

查询特定列车车次在指定区间内的途径车站、到站时间、出发时间及停留时间等详细经停信息。当用户询问某趟具体列车的经停站时使用此接口。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
trainCodeYes要查询的车次 `train_code`,例如"G1033"。
departDateYes列车出发的日期 (格式: yyyy-MM-dd)。如果用户提供的是相对日期,请务必先调用 `get-current-date` 解析。
formatNo返回结果格式,默认为text,建议使用text。可选标志:[text, json]text
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It describes the output (stations, times, durations) but lacks details on error handling, authentication, rate limits, or what happens if the train does not exist. The description is functional but not fully transparent about behavioral traits.

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 a single concise sentence that efficiently conveys the tool's purpose and usage context. Every part of the sentence adds value, and there is no redundant information. It is appropriately front-loaded and easy to parse.

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 mentions querying stops within a 'specified interval,' but the input schema does not include an interval parameter, causing a slight mismatch. Without an output schema, the description lists some return fields but omits the full structure. The tool is moderately complex with three parameters, and the description could be more complete by clarifying the interval concept.

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?

The input schema already has 100% description coverage, so the description adds limited semantic value beyond the schema. It reinforces the context of querying stops but does not provide additional meaning for each parameter, except for the format parameter where it recommends 'text' default, which is already in the schema. Baseline score of 3 is appropriate.

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 that the tool queries detailed stop information for a specific train, including stations, arrival/departure times, and stop duration. It explicitly indicates when to use it: 'when the user asks about stops of a specific train.' This distinguishes it from sibling tools that deal with station codes or ticket purchasing.

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 provides a clear usage guideline: use this interface when the user asks about the stops of a specific train. However, it does not explicitly mention when not to use it or suggest alternatives among sibling tools, which would have improved the score.

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

Install Server

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/Joooook/12306-mcp'

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