IRCTC Train Search Between Stations
irctc.trains.searchFind trains running between two Indian railway stations. Returns train number, name, departure/arrival time, distance, class availability, and running days for a specific journey date.
Instructions
Search trains running between two Indian railway stations. Returns train number, name, departure/arrival time, distance, class availability (1A/2A/3A/SL/CC/EC), and running days (Mon-Sun).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| from_station_code | Yes | Origin station code (3-5 uppercase letters). Examples: NDLS (New Delhi), CSMT (Mumbai CST), HWH (Howrah Kolkata), MAS (Chennai Central), SBC (Bengaluru). | |
| to_station_code | Yes | Destination station code (3-5 uppercase letters, same format as from_station_code). Use irctc.station_search to discover codes by name. | |
| date_of_journey | Yes | Journey date in YYYY-MM-DD format. Must be within the next 120 days from today. Example: 2026-05-15. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | No | Tool response payload. Shape varies per tool — consult the tool description and inputSchema. May be an object, array, string, or number depending on the upstream provider response. | |
| error | No | Present only when the call failed. Includes error code, message, request_id, and any provider-specific extras. |