Skip to main content
Glama

Airport lookup, IATA and ICAO codes

airport_lookup
Read-only

Look up airports by IATA or ICAO code, name or city (Paris, JFK, EGLL, Heathrow): codes, full name, city, country, region, coordinates, elevation, size, scheduled service and Wikipedia link, for ~9,500 airports worldwide; or give lat and lon for the nearest airports with distances. Data: OurAirports (public domain), committed snapshot, answers in milliseconds. Use for travel tools, flight data enrichment and geocoding airport codes. Example: q=Stockholm. Price $0.01/call via x402 USDC or a card key (/credits), first 10 free; failed calls free. Reads or computes only and changes nothing; each call is charged, so repeats are not free.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "airport_lookup"
  }
}

Input Schema

NameRequiredDescriptionDefault
qNoIATA code, ICAO code, airport name or city
latNoLatitude, for the nearest airports (with lon)
lonNoLongitude, for the nearest airports (with lat)
limitNoNumber of airports (1-25, default 5)
countryNoOnly airports in this country (code or name)
scheduledNotrue: only airports with scheduled passenger service

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / limit / maximum
      Previous value: -9007199254740991New value: +25
    • changedInput schema / properties / limit / minimum
      Previous value: --9007199254740991New value: +1
  2. Added

TDQS

A4.4/5.0
Behavior5/5

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

Beyond the annotations it discloses data provenance and freshness (OurAirports public-domain committed snapshot), latency (answers in milliseconds), cost model ($0.01/call via x402 USDC or card key, first 10 free, failed calls free), and warns that repeats are re-charged — which usefully contextualizes idempotentHint=false. It also reaffirms non-mutation ('reads or computes only and changes nothing'), consistent with readOnlyHint=true and destructiveHint=false.

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?

Purpose and query modes are front-loaded in the first clause, with output fields enumerated next; the pricing and provenance tails earn their space. It is dense with semicolons and could be broken into shorter sentences for scanability, but there is little outright waste.

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?

With no output schema, the description compensates by enumerating the returned fields and both search modes, and it covers cost, provenance and safety for a zero-required-parameter tool. Nothing essential to correct invocation is missing.

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%, so the schema already documents q, lat, lon, limit, country and scheduled. The description adds modest value by pairing lat/lon with 'nearest airports with distances' and giving the q=Stockholm example, but it never clarifies limit, country, or what 'scheduled' filters, leaving those to the schema alone.

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 ('Look up airports') plus exactly which identifiers are accepted (IATA, ICAO, name, city) and what comes back (codes, name, city, country, region, coordinates, elevation, size, scheduled service, Wikipedia link). The two operating modes (query vs. lat/lon nearest) and the ~9,500-airport scope are spelled out, so an agent knows precisely what this returns.

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?

Gives concrete use cases ('travel tools, flight data enrichment and geocoding airport codes') and a worked example ('q=Stockholm'), plus the mode switch for radius search. It does not explicitly rule out or point to the near-neighbour 'airport_status' tool, so the routing guidance is clear but not exhaustive.

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