Skip to main content
Glama

Official Records Hub: Travel Advice & Flight Compensation

flight_delay_compensation

Read-onlyIdempotent

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. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Beyond the readOnly/openWorld/idempotent annotations, the description discloses commercial and error behavior: '$0.03 USDC per call (x402)' and 'Errors never charged,' plus an itemized list of what comes back (applicability, distance, amount per passenger, care rights, escalation steps, claim letter). It does not say what happens with incomplete inputs (e.g., a delay report with no delay_hours) or whether results are cached/stateless, so it stops short of fully fleshing out edge-case behavior.

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 the input/output summary, then the use case and exclusion, then pricing. Dense but every sentence carries information; only the pricing parenthetical and the x402 notation sit slightly awkwardly in the middle of the guidance flow.

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

Completeness4/5

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

With 8 parameters and no output schema, the description correctly compensates by enumerating the returned fields (eligibility, distance, amount, care rights, escalation, claim letter). Minor gaps remain around multi-leg/connecting itineraries and behavior when optional fields such as notice_days or rerouted_arrival_delay_hours are omitted.

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 the schema already documents every field including examples and allowed cause values. The description adds only a light narrative mapping ('the airports, what happened ... the arrival delay or notice given, and the cause'), which frames the scenario but contributes no syntax or validation detail beyond the schema. Baseline 3 is appropriate.

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: it checks whether UK261 or EU261 compensation applies and returns the amount owed, care rights and a claim letter. It is clearly distinguishable from siblings like travel_advice or travel_entry_requirements, which do not compute regulatory compensation.

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

Usage Guidelines5/5

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

Explicit when-to-use: '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.' Also gives an explicit exclusion: 'Not for: flights entirely outside UK/EU rules (e.g. US domestic).' Both sides of the routing decision are covered.

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