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.
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": {
"train_no": "<train_no>",
"from": "<from>",
"to": "<to>"
},
"name": "get_train_fare"
}
}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 |