Skip to main content
Glama

Official Records Hub (UK & US): property, company, sanctions, health, vehicle & travel checks

flight_delay_compensation

Pay-per-call flight compensation check for AI agents. Send the airports, what happened (delay, cancellation, denied boarding), the arrival delay or notice given, and the cause, and get whether UK261 or EU261 applies, the distance, the amount owed per passenger, care rights, step-by-step claim and escalation guidance and a ready-to-send claim letter, as JSON. Errors never charged. Use this when the user's flight was delayed, cancelled or overbooked and they ask whether they are owed compensation under UK261/EU261 and how to claim. Not for: flights entirely outside UK/EU rules (e.g. US domestic). Price: $0.03 USDC per call (x402).

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": {
      "from": "<from>",
      "to": "<to>"
    },
    "name": "flight_delay_compensation"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYesFinal destination airport code, e.g. JFK, or an unambiguous airport name. Example: JFK
fromYesFirst departure airport code, e.g. LHR, or an unambiguous airport name such as Heathrow (for connecting flights on one booking, the first airport). Example: LHR
typeNodelay (default), cancellation or denied_boarding. Example: delay
causeNoReason given: technical, crew_shortage, airline_staff_strike, overbooking, operational, late_inbound_aircraft, weather, air_traffic_control, airport_staff_strike, security, bird_strike, medical_emergency, political_unrest, unknown. Example: technical
delay_hoursNoHours late arriving at the final destination (for delays). Example: 4.5
notice_daysNoDays of notice before departure (for cancellations). Example: 3
airline_regionNoWhere the operating airline is based: uk, eu or other (matters for flights into the UK/EU). Example: uk
rerouted_arrival_delay_hoursNoFor cancellations or denied boarding: how many hours after the original arrival time the replacement flight arrived. Example: 2.5

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / from / description
      Previous value: -"First departure airport code, e.g. LHR (for connecting flights on one booking, the first airport). Example: LHR"New value: +"First departure airport code, e.g. LHR, or an unambiguous airport name such as Heathrow (for connecting flights on one booking, the first airport). Example: LHR"
    • changedInput schema / properties / to / description
      Previous value: -"Final destination airport code, e.g. JFK. Example: JFK"New value: +"Final destination airport code, e.g. JFK, or an unambiguous airport name. Example: JFK"
  2. First observed

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses the payment model and exact price ($0.03 USDC per call via x402), the billing safeguard ('Errors never charged'), and the JSON shape of the response. It stops short of stating latency, idempotency, or that the operation is a pure read with no side effects.

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?

The critical scoping statement ('What it does / when to use') is front-loaded and the exclusion and pricing are kept brief. The central sentence is a long run-on list of inputs and outputs, which slightly slows parsing but every clause carries information.

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?

For an 8-parameter, no-output-schema tool, the description compensates by enumerating the return payload (UK261/EU261 applicability, distance, per-passenger amount, care rights, escalation steps, ready-to-send letter). Combined with the explicit not-for scope and billing terms, an agent has everything needed to call it correctly and interpret the result.

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

Parameters3/5

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

Schema description coverage is 100%, so both required and optional fields are already documented with examples and enum-like value lists in the schema. The description's recital of 'airports, what happened, arrival delay or notice given, and the cause' restates the schema in narrative form and adds no formatting or edge-case detail beyond it, so the baseline 3 applies.

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?

The description states a specific verb and resource — 'flight compensation check' under 'UK261 or EU261' — and enumerates the inputs and outputs, so the agent knows exactly what the tool produces (eligibility, distance, amount owed, care rights, claim letter). It is clearly distinct from the sibling travel_advice and travel_entry_requirements tools.

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?

It gives an explicit use condition ('when the user's flight was delayed, cancelled or overbooked and they ask whether they are owed compensation') and an explicit exclusion ('Not for: flights entirely outside UK/EU rules (e.g. US domestic)'). It does not name a sibling alternative to route to, but the when and when-not framing is strong and unambiguous.

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.

Resources