Find Trains Between Stations
railway_train_betweenStationsUse this tool to find trains between two station codes when date is not provided. Calls /trains/betweenStations. Do not use for non-India routes or booking/payment requests.
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": {
"from_station": "<from_station>",
"to_station": "<to_station>"
},
"name": "railway_train_betweenStations"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to_station | Yes | Destination station code. | |
| from_station | Yes | Source station code. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | Yes | ||
| trains | Yes | List of train records from the upstream API. | |
| time_stamp | No | ||
| to_station | Yes | ||
| search_note | No | ||
| from_station | Yes | ||
| journey_date | No | ||
| total_trains | Yes |