Skip to main content
Glama

Airline / AWB Prefix Lookup

airline_lookup
Read-onlyIdempotent

Search 6,357 airlines by name, IATA code, ICAO code, AWB prefix, or country. AWB prefixes are the first 3 digits of an air waybill number and identify the issuing carrier (e.g. 176 = Emirates).

Provide ONE parameter: query is a ranked fuzzy search across names and codes; iata / icao / prefix / country are exact filters.

Behavior: read-only; fuzzy query hits report their match quality through the envelope's confidence (basis match_quality, score 0-1) with a FUZZY_BEST_MATCH advisory naming the matched field; a query with no hits returns count 0 with a NO_MATCH advisory rather than an error. Rate-limited (anonymous use: 25 requests/day per IP): a 429 error body carries retry_after_seconds and a Retry-After header — back off and retry, or call get_subscribe_link for higher limits.

Returns: count and results[] — per airline: airline_name, iata_code, icao_code, awb_prefix[], callsign, country, has_cargo, aliases and per-record verification fields — under result, plus confidence, _source and citation (the FreightUtils v1 response envelope).

Limitations: this dataset's provenance is pending independent verification (the envelope's provenance_status says so) — confirm operationally critical codes with IATA/ICAO or the carrier.

Related: airport_lookup (searches AIRPORTS, not carriers), validate (checks an AWB number's check digit and names its airline from this dataset).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
iataNoExact IATA code (2 alphanumeric chars)
icaoNoExact ICAO code (3 letters)
queryNoGeneral search (name, code, prefix or country — min 2 chars)
prefixNoAWB prefix (3 digits)
countryNoFilter by country name (min 2 chars)

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
okYes
resultYes
_sourceYes
citationYes
validityNo
warningsNo
confidenceYes
blocking_errorsNo
envelope_versionYes
normalized_inputNo

TDQS

A4.8/5.0
Behavior5/5

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

Annotations include readOnlyHint=true, idempotentHint=true, and destructiveHint=false, covering the safety profile. The description goes well beyond this by disclosing the fuzzy match quality reporting mechanism (confidence, FUZZY_BEST_MATCH, NO_MATCH advisories), rate-limiting with 429 retry behavior, and the provenance verification caveat. It also clarifies that no results return a count of 0 rather than an error. No contradiction with annotations.

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 description is longer than many, but it is purposefully structured: lead with core search capability, then parameter semantics, then behavioral details, then returns, then limitations, then related tools. Each sentence carries information—rate limits, advisories, provenance status, and alternatives. It is front-loaded with the primary use case and is dense without bloat, though a slightly more compact format would be possible.

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 a tool with 5 optional parameters, an output schema, rate limiting, and data provenance caveats, the description covers everything an agent needs: input selector rules, match-quality advisories, rate-limit handling, response fields, verification limitations, and sibling tool comparisons. The presence of an output schema removes the need to enumerate full return types, but the description still summarizes the result structure and envelope details usefully.

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?

The schema already covers parameter formats and descriptions 100%, providing a baseline of 3. The description adds crucial usage semantics: it states the mutual exclusivity of parameters ('Provide ONE parameter'), explains that `query` is a ranked fuzzy search while others are exact filters, and provides a concrete AWB prefix example ('176 = Emirates'). This meaningfully enhances the schema's bare field names and patterns.

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 a specific verb and resource: 'Search 6,357 airlines by name, IATA code, ICAO code, AWB prefix, or country.' It immediately clarifies scope and domains, and explicitly distinguishes itself from sibling tools by noting 'airport_lookup (searches AIRPORTS, not carriers)' and 'validate (checks an AWB number's check digit and names its airline from this dataset).' This is a textbook example of purpose differentiation.

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?

Provides explicit guidance: 'Provide ONE parameter' and distinguishes the ranked fuzzy search from exact filters. It names alternatives with their contrasting purposes ('airport_lookup' for airports, 'validate' for AWB check digit validation). It also explains expected outcomes for no-hit cases, giving clear when-to-use/when-not-to-use context.

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.

TDQS

A4.3/5.0
Disambiguation3/5

The tools cluster into clear domains and the descriptions are detailed, but there are several overlapping pairs: consignment_calculator vs shipment_summary, cbm_calculator vs unit_converter, and validate vs resolve_reference all have fuzzy boundaries. An agent could plausibly mis-select between the composite calculators or between identifier-handling tools despite the helpful cross-references.

Naming Consistency4/5

Naming is mostly consistent: reference tools use *_lookup, calculation tools use *_calculator, and checks use *_check. Exceptions like validate, resolve_reference, nearest_airport, and shipment_summary break the dominant pattern slightly, but all names are snake_case and generally predictable.

Tool Count3/5

At 25 tools, this sits at the heavy end of the range for an MCP server. The broad freight/logistics scope justifies many of them, but several single-purpose calculators could have been consolidated or grouped, making the surface feel larger and more redundant than necessary.

Completeness4/5

The server covers ADR dangerous-goods rules, multi-modal freight calculations, equipment lookups, identifier validation, customs/trade data, and emissions estimation. Minor gaps exist—no routing/geocoding, no SCAC/BIC coverage, no customs filing—but core freight-reference and calculation workflows are well supported.