Check compensation
check_compensationAssess one disrupted flight under EU261/UK261: works out which scheme applies (or none), route distance and band, whether fixed compensation is due and how much (EUR/GBP), care rights, the stated reason's effect, and next steps. Use for 'what am I owed for my flight?'. Do NOT use to write the claim; use generate_claim_letter.
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": {
"departure": "<departure>",
"arrival": "<arrival>",
"disrupted": "<disrupted>"
},
"name": "check_compensation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| arrival | Yes | Final arrival airport 3-letter IATA code, case-insensitive, e.g. JFK | |
| rerouted | No | For cancellations: true if the airline re-routed you on another flight. Default false. | |
| departure | Yes | Departure airport 3-letter IATA code, case-insensitive, e.g. LHR | |
| disrupted | Yes | What happened: delayed (arrived late) or cancelled. | |
| distance_km | No | Override the computed great-circle distance in km, e.g. 5540. Both airports must still be known IATA codes. | |
| notice_days | No | For cancellations: days of notice the airline gave before departure, e.g. 3. 14+ days means no fixed compensation. Default 0. | |
| carrier_country | No | Operating airline's 2-letter country code, e.g. DE for Lufthansa, US for United. Needed for flights arriving into the EU/UK from outside. | |
| reason_category | No | Cause the airline gave: weather, atc, security, political, strike_atc (third-party strike) are exempt; technical, strike_airline, other are not; crew is case-by-case. Default unknown. | |
| arrival_delay_hours | No | Hours late at the final destination, e.g. 4.5. Drives delay compensation (>= 3h) and care. Default 0. | |
| reroute_arrival_delay_hours | No | For re-routed cancellations: hours the replacement arrived after the original schedule, e.g. 2. Default 0. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| band | Yes | Distance band: short <=1500 km, medium <=3500 km, long beyond. | |
| route | Yes | Resolved airports and countries. | |
| reason | Yes | Assessment of the disruption cause. | |
| scheme | Yes | Passenger-rights scheme that applies to this route. | |
| disclaimer | Yes | Not-legal-advice disclaimer to show the user. | |
| next_steps | Yes | Recommended next actions in order. | |
| care_rights | Yes | Duty-of-care entitlements (meals, hotel, calls). | |
| distance_km | Yes | Route distance in km used for the band. | |
| compensation | Yes | Fixed-compensation outcome. | |
| jurisdiction_reason | Yes | Why that scheme does or does not apply. |