search_trains
Search running Indian Railways trains between two station codes to get departure and arrival times, duration, distance, running days, and base fare estimates.
Instructions
Search running trains between any two Indian Railways station codes with departure/arrival times, travel duration, distance in kilometers, running days, and base fare estimates.
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": "search_trains"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Destination station code (e.g. "BTI" for Bathinda, "CSMT" for Mumbai). | |
| date | No | Optional journey date in YYYY-MM-DD format (e.g. "2026-11-15"). | |
| from | Yes | Origin station code (e.g. "NDLS" for New Delhi, "PNBE" for Patna). |