Train ticket price
mb_train_priceCalculate exact train class prices for a group, including adult, child, infant, foreigner and empty-berth fares plus the total. Check seat availability before relying on a sold-out class price.
Instructions
Exact price of one train class for a party: per adult, child, infant, foreigner and empty berth, and the total.
A sold-out class still returns a price: check seats_left in the search first. The breakdown does not add up exactly to the price; the price is what is paid.
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": {
"class_id": "<class_id>"
},
"name": "mb_train_price"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| adults | No | Adults (12+). | |
| infants | No | Infants (under 2). | |
| children | No | Children (2-11). | |
| class_id | Yes | class_id from a fresh mb_search_trains result. | |
| foreigners | No | Foreign passengers (priced separately). | |
| empty_seats | No | Empty berths to buy for a whole compartment, e.g. 1 for 3 people in a 4-berth. |