Skip to main content
Glama

List airport IATA codes

get_data_flights_airports_iatas
Read-onlyIdempotent

Fetch a lightweight list of airport IATA codes and names for autocomplete, code validation, or client-side filtering. Use the q parameter to filter by name or code.

Instructions

Overview

Retrieve a lightweight list of airport IATA codes with names for autocomplete and lookup purposes.

When to Use

  • Autocomplete dropdowns - Populate airport search inputs with a full list of codes and names

  • Client-side filtering - Download the full list once and filter locally

  • Code validation - Build a lookup table of valid airport codes

What You Get

  • IATA codes for all airports in the database

  • Airport names paired with each code

  • Filtered results when the q query parameter is provided

Quick Start

Call with no parameters to get all airport codes and names. Use the q parameter to filter by name or code.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
qYesSearch query

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint and destructiveHint=false, so the safety profile is covered. The description adds behavior annotations don't: it is a bulk 'lightweight' list intended for download-once-and-filter-locally usage, and it enumerates the returned fields in the absence of an output schema.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Headers make it scannable and the purpose is front-loaded, but for a single-optional-filter tool the content is padded and self-repeating: the 'Quick Start' paragraph restates what 'When to Use' and 'What You Get' already said about calling with and without q.

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?

With no output schema, the description correctly compensates by listing returned fields (IATA codes, names), which is the right move. It is undermined by the required-vs-optional contradiction for q and by no mention of result size or pagination behavior for a bulk list 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% but that coverage is only the string 'Search query', so the description meaningfully clarifies that q filters by name or by code. However, it also claims 'Call with no parameters to get all airport codes and names' while the schema marks q as required, which is an unresolved conflict in parameter semantics rather than added clarity.

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 description states a specific verb and resource: retrieve a lightweight list of airport IATA codes with names. It differentiates the payload (codes + names, optional filtering) from the broader get_data_flights_airports sibling, though it never explicitly contrasts with get_data_iatacodes or get_data_flights_airlines_iatas.

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?

The 'When to Use' section gives three concrete scenarios (autocomplete, client-side filtering, code validation), which is clear context an agent can match against. It stops short of naming the alternative siblings (e.g., the per-code lookup tool) or stating when not to use this one.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.