Skip to main content
Glama

Lookup Kit

airport

Read-only

Airport lookup by IATA or ICAO code, nearest airports. Find airports by IATA or ICAO code (YVR, CYVR), by name or city, or the nearest ones to a latitude and longitude: name, city, country, region, coordinates, elevation, size and whether it has scheduled flights. 11,000+ airports from OurAirports (public domain). Price: $0.002 per call (x402, USDC on Base).

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"
  }
}

Input Schema

NameRequiredDescriptionDefault
latNo
lonNo
codeNo
limitNo
searchNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, and the description adds genuinely useful context beyond them: the data source and size (OurAirports, public domain, 11,000+ records) and a per-call price of $0.002 via x402/USDC on Base, which is a material prerequisite an agent must know before invoking. It does not say what happens when no parameters are supplied, given all five are optional, leaving a behavioral ambiguity.

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 with the core purpose and then the lookup modes, followed by the returned attributes and pricing. The opening sentence ('Airport lookup by IATA or ICAO code, nearest airports') partly duplicates the longer sentence that follows, which is mild waste but not harmful.

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?

There is no output schema, and the description compensates by enumerating returned fields: name, city, country, region, coordinates, elevation, size, and scheduled-flight status. It also covers data provenance and cost. The remaining gaps are the unmentioned limit parameter and the undefined behavior of a zero-argument call on a tool with no required parameters.

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 description coverage is 0%, so the description must carry the burden. It implicitly maps code to IATA/ICAO, lat/lon to nearest-airport search, and search to name/city, but never names these fields explicitly, never mentions the limit parameter (default 5, max 25), and gives no format hints such as the uppercase 3-4 character pattern. Coverage is partial — four of five parameters are only inferable, one is undocumented entirely.

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 (airport lookup) plus the exact lookup modes: IATA/ICAO code, name or city, and nearest-to-coordinates. It also distinguishes what the data covers (11,000+ airports, scheduled-flight status), so an agent can tell it apart from siblings like distance or country_info without opening the schema.

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 clear context for the three invocation modes (code lookup, text search, proximity search), which is enough to pick the right parameters. It stops short of explicit exclusions or precedence rules — e.g., what happens if code and lat/lon are supplied together, or which sibling to use for city-level metadata — so it is clear but not fully 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.

Resources