Get Prices
get_pricesGet ticket prices for one or more Swiss train connections. Apply Half-Fare or GA discounts. With SwissTrip, enter traveler names to obtain family pricing.
Instructions
Get ticket prices for one or more train connections. Supports Half-Fare card (Halbtax) and GA travelcard discounts. When connected to SwissTrip (SWISSTRIP_TOKEN), pass traveler_names to get family pricing for multiple travelers.
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": {
"trip_ids": "<trip_ids>"
},
"name": "get_prices"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| trip_ids | Yes | Trip IDs from search_connections results | |
| traveler_type | No | Traveler type (used when no traveler_names given) | ADULT |
| reduction_card | No | Swiss reduction card (used when no traveler_names given) | HALF_FARE |
| traveler_names | No | Names of SwissTrip travelers to price for (e.g. ["Fabian", "Anna"]). Requires SWISSTRIP_TOKEN. Each traveler's reduction card is applied automatically. |