Skip to main content
Glama

Alomo: Lookups

Airport code lookup (IATA/ICAO), search and distance

airport_lookup
Read-onlyIdempotent

Looks up an airport by IATA (3-letter) or ICAO (4-letter) code: name, city, country, region, coordinates, elevation, type and whether it has scheduled service. Or searches by city or airport name. Given two codes, also returns the great-circle distance in km, miles and nautical miles. Covers about 8,800 airports with IATA codes, from OurAirports open data.

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
toNoOptional second code for the distance between them.
codeNoIATA or ICAO code, e.g. 'LAX' or 'KLAX'.
searchNoAlternatively, a city or airport name to search, e.g. 'Lisbon'.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnly, openWorld, idempotent, and non-destructive, so the safety profile is covered. The description adds real context beyond that: dataset provenance (OurAirports), coverage scale (~8,800 airports with IATA codes), and the exact return fields with distance units in km, miles, and nautical miles. Minor gap: no statement about no-match behavior or whether a name search returns multiple results.

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

Conciseness5/5

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

Three sentences, each carrying distinct information — return fields first, then search mode, then distance mode — with no filler. The dataset coverage note is short and earns its place by telling the agent the tool is comprehensive rather than a partial index.

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 takes on the burden of describing returns and does so thoroughly, including field list and distance units. The only shortfall is edge-case behavior — ambiguous name matches, empty results, and how code and search interact if both are passed — which an agent may need before relying on it.

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 each parameter already carries its own description, including the 'LAX'/'KLAX' and 'Lisbon' examples. The description restates those same meanings (3-letter vs 4-letter codes, second code for distance, city/name search) rather than adding new semantics, so the baseline 3 is appropriate.

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 and enumerates all three modes: code lookup by IATA/ICAO, city/name search, and two-code distance. The returned field list (name, city, country, region, coordinates, elevation, type, scheduled service) makes the resource concrete and distinguishable from unrelated siblings.

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?

Clearly signals the three invocation patterns — pass a code, pass a search string, or pass code plus 'to' for distance — which is exactly the guidance needed for a multi-mode tool. It stops short of stating exclusions or precedence (e.g., what happens if both code and search are supplied), so it is clear context rather than a full when/when-not rule set.

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