Find trains between two stations
find_trains_between_stationsFind direct trains between two stations on any date, showing departure, arrival, duration, and available classes. Enter station names or codes; they are resolved automatically.
Instructions
List direct trains connecting two stations on a given date, with departure, arrival, duration and available classes. Station names are accepted and resolved automatically.
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": "<from>",
"to": "<to>"
},
"name": "find_trains_between_stations"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Destination station: either the station code (e.g. "NDLS") or the name (e.g. "New Delhi"). | |
| date | No | Journey date as YYYY-MM-DD, or "today" / "tomorrow". Defaults to today in IST. | |
| from | Yes | Origin station: either the station code (e.g. "NDLS") or the name (e.g. "New Delhi"). | |
| sortBy | No | Sort order (default departure). | |
| travelClass | No | Only trains offering this class. | |
| onlyRunningOnDate | No | Drop trains that do not run on the given date (default true). |