get-train-route-stations
Retrieve detailed stop information for a specific train, including station names, arrival and departure times, and stop durations, within a specified travel segment using the 12306-MCP server.
Instructions
查询特定列车车次在指定区间内的途径车站、到站时间、出发时间及停留时间等详细经停信息。当用户询问某趟具体列车的经停站时使用此接口。
Input Schema
Name | Required | Description | Default |
---|---|---|---|
departDate | Yes | 列车从 `fromStationTelecode` 指定的车站出发的日期 (格式: yyyy-MM-dd)。如果用户提供的是相对日期,请务必先调用 `get-current-date` 解析。 | |
fromStationTelecode | Yes | 该列车行程的**出发站**的 `station_telecode` (3位字母编码`)。通常来自 `get-tickets` 结果中的 `telecode` 字段,或者通过 `get-station-code-by-name` 得到。 | |
toStationTelecode | Yes | 该列车行程的**到达站**的 `station_telecode` (3位字母编码)。通常来自 `get-tickets` 结果中的 `telecode` 字段,或者通过 `get-station-code-by-name` 得到。 | |
trainNo | Yes | 要查询的实际车次编号 `train_no`,例如 "240000G10336",而非"G1033"。此编号通常可以从 `get-tickets` 的查询结果中获取,或者由用户直接提供。 |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"departDate": {
"description": "列车从 `fromStationTelecode` 指定的车站出发的日期 (格式: yyyy-MM-dd)。如果用户提供的是相对日期,请务必先调用 `get-current-date` 解析。",
"maxLength": 10,
"minLength": 10,
"type": "string"
},
"fromStationTelecode": {
"description": "该列车行程的**出发站**的 `station_telecode` (3位字母编码`)。通常来自 `get-tickets` 结果中的 `telecode` 字段,或者通过 `get-station-code-by-name` 得到。",
"type": "string"
},
"toStationTelecode": {
"description": "该列车行程的**到达站**的 `station_telecode` (3位字母编码)。通常来自 `get-tickets` 结果中的 `telecode` 字段,或者通过 `get-station-code-by-name` 得到。",
"type": "string"
},
"trainNo": {
"description": "要查询的实际车次编号 `train_no`,例如 \"240000G10336\",而非\"G1033\"。此编号通常可以从 `get-tickets` 的查询结果中获取,或者由用户直接提供。",
"type": "string"
}
},
"required": [
"trainNo",
"fromStationTelecode",
"toStationTelecode",
"departDate"
],
"type": "object"
}