Plan a rail journey
plan_journeyPlan a train trip between two stations on a date by finding trains, checking seat availability and fares for preferred classes, and ranking the best options.
Instructions
One-shot journey planner: finds trains between two stations on a date, then checks availability and fares for the preferred classes and ranks the options. Use this instead of chaining the individual tools when the user asks how to get from A to B.
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"). | |
| quota | No | Booking quota (default GN). | |
| maxOptions | No | How many trains to evaluate (default 5). | |
| passengers | No | Passenger count (default 1). | |
| optimiseFor | No | Ranking objective (default balanced). | |
| preferredClasses | No | Classes to price and check, best first (default ["3A","SL"]). |