get-train-no-by-train-code
Convert train codes (including three-letter codes or full names) to official train numbers for China railway queries. Use this tool before checking train schedules or stops.
Instructions
车次号转官方唯一编号(train_no),支持三字码/全名。常用于经停站查询前置转换。
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"train_code": "<train_code>",
"from_station": "<from_station>",
"to_station": "<to_station>",
"train_date": "<train_date>"
},
"name": "get-train-no-by-train-code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| train_code | Yes | 车次号 | |
| from_station | Yes | 出发站 | |
| to_station | Yes | 到达站 | |
| train_date | Yes | 出发日期,格式:YYYY-MM-DD |