Skip to main content
Glama

Check a flight for UK261 or EU261 compensation

check_flight_compensation
Read-onlyIdempotent

Works out compensation for a delayed or cancelled flight under UK261 or EU261. Takes the flight number and date. What happened comes from flight-status records, which cover about the last year, or from what_happened and arrival_delay_minutes when given. Returns the matched route, the arrival delay, the distance band, the amount per passenger, the extraordinary-circumstances caveat, the airline’s claim page, the dispute body for a refused claim, deadline guidance, a claim pack and the details needed to save the claim to an Untap account. When the airports given differ from the flight-status record, the result says so. No sign-in needed. Nothing is saved to an account. A record of the check, with no name, account or IP address, is kept for a year so answers can be verified.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dateYesDate the flight was due to depart, local time. YYYY-MM-DD is best.
price_paidNoOptional, in pounds: "£180" or 180. Not used for the amount, which is fixed in law, but needed to save the claim to an account.
to_airportNoThree-letter arrival airport code, if known: "BCN".
from_airportNoThree-letter departure airport code, if known: "LGW". Helps pick the right flight on multi-stop numbers.
flight_numberYesAirline code and number, as on the booking: "BA2551", "U2 8123".
what_happenedNoWhat happened, if known. When left out, Untap looks it up in flight-status records.
arrival_delay_minutesNoHow late the flight arrived at the gate, in minutes, if the person knows. Compensation turns on arrival, not departure.
cancellation_notice_daysNoFor a cancellation: how many days before departure the airline told the person. 14 or more means no compensation.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / price_paid / description
      Previous value: -"Optional. Not used for the amount, which is fixed in law, but needed to save the claim to an account."New value: +"Optional, in pounds: \"£180\" or 180. Not used for the amount, which is fixed in law, but needed to save the claim to an account."
  2. Changed1 schema field changed
    • changedInput schema / properties / what_happened / description
      Previous value: -"Only if the person has said what happened. Otherwise leave out and Untap looks it up."New value: +"What happened, if known. When left out, Untap looks it up in flight-status records."
  3. First observed

TDQS

A4.6/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Goes well beyond the readOnly/idempotent annotations: no sign-in required, nothing saved to an account, an anonymous record retained for a year, flight-status history limited to roughly the last year, and reconciliation behavior when supplied airports disagree with the record. These are exactly the operational traits an agent needs before calling.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with purpose and inputs, then the return payload. The long enumeration of returned fields is justified because there is no output schema, though it makes the description denser than strictly necessary.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema, the description carries the return-value burden and does so thoroughly: matched route, arrival delay, distance band, per-passenger amount, extraordinary-circumstances caveat, airline claim page, dispute body, deadline guidance, and claim pack. Privacy/retention and mismatch handling complete the picture.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the schema already documents every parameter (baseline 3). The description adds genuine meaning beyond it by explaining data-source selection: what_happened/arrival_delay_minutes are used when given, otherwise the flight-status record is consulted, and it reiterates that price_paid feeds account-saving rather than the amount.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Works out compensation for a delayed or cancelled flight'), names the governing regimes (UK261/EU261), and scopes it to flights, which separates it from siblings like check_train_delay or scan_for_claims. An agent can identify what this tool produces without opening the schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives clear context: it takes a flight number and date, and explains that the incident is either looked up in flight-status records or supplied via what_happened/arrival_delay_minutes. It does not name or exclude alternatives (e.g. save_claim, get_claim_instructions), so selection guidance is contextual rather than explicit.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.