Skip to main content
Glama

Airline on-time record

get_airline_stats
Read-onlyIdempotent

An airline's last 30 days of the flights on record that it operates itself (coverage on_record: the flights on record, not its full schedule): arrivals graded against a published schedule, on-time and late counts, the on-time share, median and 90th-percentile arrival delay (all three only from 20 graded arrivals), landings left ungraded, cancellations, diversions, routes flown, up to five most and least delayed flights, the late rule, and a link to its airline page on gaduin.com.

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": {
      "code": "<code>"
    },
    "name": "get_airline_stats"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeYesAirline IATA code (e.g. BA) or ICAO code (e.g. BAW).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, openWorld), so the description's marginal value is the data-validity disclosure: an aggregate is only computed from 20+ graded arrivals, some landings are left ungraded, and "the late rule" governs grading. That is genuinely useful behavioral context beyond annotations, but it stops short of saying whether unknown codes error or return empty, or how the 30-day window is anchored.

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, and every phrase names a specific returned field. However it is a single ~70-word sentence with nested parentheses and trailing low-value items ("a link to its airline page on gaduin.com"), which costs readability. Tighter grouping or a short structure would earn a 5.

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 no output schema, the description does the necessary work of enumerating return contents, including the 20-arrival threshold that determines which metrics appear. What remains unspecified – whether the 30 days is per-day or aggregate, and error behavior for an invalid or non-existent code – is minor but real for a stats tool.

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 coverage is 100% and the single parameter already documents IATA/ICAO acceptance with examples, so the schema carries the load. The description adds nothing about the code parameter – no format, case sensitivity, or behavior for unknown codes – which is acceptable at this coverage level but not additive.

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

Purpose4/5

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

The resource and scope are stated precisely: an airline's last 30 days of self-operated flights, with the specific metrics returned (on-time/late counts, share, median and p90 delay, cancellations, diversions, routes, top delayed flights). The scope clauses ("that it operates itself", "coverage on_record: the flights on record, not its full schedule") meaningfully separate it from schedule- or history-oriented siblings like get_flight_history. The one gap is that it never states an action verb ("Returns/stats for…") – it reads as a field inventory rather than a purpose statement.

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

Usage Guidelines2/5

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

There is no when-to-use, when-not-to-use, or alternative-routing guidance; an agent must infer that this is for airline reliability questions rather than get_flight_status or get_flight_history. The coverage caveat explains what the data is, not when to pick this tool. Only implied usage is present.

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