compensation_calculator
Calculate the compensation a passenger is owed for a delayed German train under EU regulation 2021/782 / DB Fahrgastrechte: 25% of the fare from 60 minutes delay, 50% from 120 minutes. Season tickets (except BahnCard 100) collect delays of 20+ minutes and pay one flat rate per full 60 minutes of total delay; BahnCard 100 pays one flat rate per delay case of 60+ minutes. Returns gross amount, payout (after the 4 EUR minimum) and the applied rate.
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": {
"ticket_type": "<ticket_type>",
"delay_minutes": "<delay_minutes>"
},
"name": "compensation_calculator"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fare_eur | No | Fare paid in EUR (required for single tickets) | |
| delay_count | No | Number of like delays of "delay_minutes" each to combine (season tickets, default 1). Non-BahnCard-100: their minutes are summed (each must be 20+); BahnCard 100: counted as cases (each must be 60+). | |
| season_type | No | Season-ticket segment (required for season tickets) | |
| ticket_type | Yes | "single" for normal tickets, "season" for Zeitkarte/Abo/BahnCard 100 | |
| travel_class | No | Travel class (default: "2") | 2 |
| delay_minutes | Yes | Delay at the destination in minutes | |
| round_trip_total | No | true if fare_eur is the TOTAL for a round trip (basis is halved) | |
| ticket_value_eur | No | Season-ticket value in EUR — payouts are capped at 25% of it |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||