Skip to main content
Glama

CalcPronto: exact calculators (tax, payroll, loans, VAT, EU261)

Flight compensation check (EU261)

eu261_check_claim
Read-onlyIdempotent

Is compensation owed, and how much? Applies scope (Art. 3), distance band, delay of 3 h or more at the final destination, cancellation notice and re-routing exemptions (Art. 5), denied boarding (Art. 4), extraordinary circumstances and the 50% reductions (Art. 7(2)). Returns EUR (EU261) and/or GBP (UK261) per passenger. disruption: 'delay' | 'cancellation' | 'denied_boarding'. origin/final_destination: first departure and final destination of the booking (IATA). operating_carrier_licence: 'EU' | 'UK' | 'other'.

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": {
      "origin": "<origin>",
      "final_destination": "<final_destination>",
      "operating_carrier_licence": "<operating_carrier_licence>",
      "disruption": "<disruption>"
    },
    "name": "eu261_check_claim"
  }
}

Input Schema

NameRequiredDescriptionDefault
originYes
disruptionYes
volunteeredNo
final_destinationYes
arrival_delay_minutesNo
cancellation_notice_daysNo
operating_carrier_licenceYes
extraordinary_circumstancesNo
rerouting_arrival_delay_minutesNo
denied_boarding_reasonable_groundsNo
rerouting_departure_earlier_minutesNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so safety is covered. The description adds real behavioral context beyond that: it is a rule-application engine over specific articles, it accounts for exemptions and 50% reductions, and it returns amounts per passenger in two possible currencies. It does not describe how missing data (null delay/notice fields) is handled, but the output schema covers the return shape.

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 question is front-loaded, followed by the rule set, then a compact glossary of the non-obvious parameter values. It is dense and telegraphic but nearly every clause carries legal meaning; there is little filler.

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

Completeness3/5

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

An output schema exists and annotations cover the safety profile, so the description need not explain returns. But for an 11-parameter legal computation, the silence on how the null delay/notice inputs and the rerouting fields alter the result leaves meaningful gaps an agent must guess at.

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?

With 0% schema description coverage the description must carry the load, and it does supply enum-style values for disruption ('delay' | 'cancellation' | 'denied_boarding'), which the schema lacks, plus the meaning of origin/final_destination and the 'EU' | 'UK' | 'other' licence values. Yet 7 of 11 parameters (volunteered, arrival_delay_minutes, cancellation_notice_days, extraordinary_circumstances, rerouting fields, denied_boarding_reasonable_grounds) are never explained despite driving the Art. 5/Art. 7(2) branches.

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 opens with the exact question the tool answers (compensation owed and how much) and enumerates the statutory machinery applied (Art. 3 scope, distance band, 3h delay, Art. 5 exemptions, Art. 4 denied boarding, Art. 7(2) reductions). It also states the output units (EUR EU261 and/or GBP UK261 per passenger), so an agent can tell this is the end-to-end assessment rather than the narrower eu261_scope or eu261_flight_distance primitives.

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

Usage Guidelines3/5

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

Usage is implied by the framing as a complete entitlement check, and mentioning that it internally applies scope and distance band hints it is not to be chained with those primitives. However, there is no explicit when-to-use/when-not statement and no named alternative for partial questions such as downgrade refunds or right-to-care, so the agent must infer routing.

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.