get_train_fare
Calculate official IRCTC train fare breakdown by travel class and quota between origin and destination stations for a given train number.
Instructions
Calculate official IRCTC train fare breakdown across travel classes (1A, 2A, 3A, 3E, SL, CC, 2S) and quotas between origin and destination stations.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Destination station code (e.g. "MFP"). | |
| from | Yes | Origin station code (e.g. "ANVT"). | |
| quota | No | Booking quota code ("GN", "TQ", "PT"). Defaults to "GN". | GN |
| train_no | Yes | The 4-5 digit train number (e.g. "12557"). | |
| class_code | No | Optional travel class filter (e.g. "all", "3A", "2A", "SL"). Defaults to "all". | all |