Skip to main content
Glama

find_nearest_airports

Read-onlyIdempotent

Identify the closest airports to a town, resort, or coordinates. Returns city codes for flight fare searches.

Instructions

Find the airports closest to a place name or to a latitude and longitude.

Use when the user asks which airport to fly into for a town, a resort, or a point on the map. lookup_airports only matches a name, and the nearest airport is rarely named after the town, so call this tool for that question. Feed the returned city code, not the airport code, to search_flights for fares.

Pass either near (resolved against the city and airport datasets) or an explicit latitude/longitude pair.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nearNoPlace name or IATA code to search around (e.g. "Pattaya", "UTP").
limitNoMax airports to return (1-50, default 5).
localeNo2-letter locale for names. Defaults to the server's locale.
latitudeNoLatitude in degrees, -90 to 90. Overrides `near`.
longitudeNoLongitude in degrees, -180 to 180. Overrides `near`.
flightable_onlyNoSkip airports with no scheduled service (default True).
max_distance_kmNoIgnore airports further away than this. Optional.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.3

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, open-world behavior, so the safety profile is covered. The description adds real behavioral context beyond that: `near` is resolved against both city and airport datasets, and the result carries a city code rather than an airport code. It stops short of describing distance ordering or pagination limits, which keeps it from a 5.

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 short paragraphs, each doing distinct work: what it does, when to use it versus the sibling plus the downstream handoff, and the input-mode selection. The scoping and routing guidance is front-loaded and no sentence is filler.

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 an output schema present and annotations covering the safety profile, the description only needs to carry purpose, usage routing, and input-mode selection — all of which it does. An agent has everything required to choose and call this tool correctly.

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 the schema already documents each parameter, including the override relationship ('latitude ... Overrides `near`'). The description restates the either/or selection of `near` versus a lat/long pair but adds no format, unit, or constraint detail beyond the schema, so the baseline 3 applies.

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 (find airports closest to a place or coordinates) and immediately contrasts with the sibling lookup_airports, which only matches names. An agent can distinguish the two without opening either schema.

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?

Gives an explicit trigger ('when the user asks which airport to fly into for a town, a resort, or a point on the map'), names the alternative tool and why it fails for this question, and routes the downstream step (feed the returned city code, not airport code, to search_flights). Nothing is left to inference.

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