Get Train By Number
railway_train_getByNumberUse this tool when the user asks train details for a known 5-digit train number. Calls /trains/getTrain and returns core train information.
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_number": "<train_number>"
},
"name": "railway_train_getByNumber"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| train_number | Yes | 5-digit train number (e.g., 19489). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | Upstream railway API payload. | |
| train_no | Yes | Queried 5-digit train number. | |
| time_stamp | No |