Skip to main content
Glama

Airport facts: codes, runways, frequencies

Nearest airports to a point

nearest_airports
Read-onlyIdempotent

The nearest airports to a latitude/longitude, with straight-line distance in km. By default only airports with scheduled airline service (an IATA code or medium/large size, not heliports); set scheduled_only to false to include all open airports in the dataset.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "latitude": "<latitude>",
      "longitude": "<longitude>"
    },
    "name": "nearest_airports"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoHow many (default 5).
latitudeYes
longitudeYes
scheduled_onlyNoOnly airports with scheduled service (default true).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already establish read-only, idempotent, closed-world behavior, so the description's job is to add semantics — and it does: distances are straight-line rather than travel distance, and 'scheduled service' is explicitly defined as having an IATA code or medium/large size while excluding heliports. It does not say whether a distance cutoff applies or how results are ordered.

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?

Two sentences, zero filler. The core purpose and units come first, the filtering behavior second — exactly the front-loaded order an agent needs.

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?

For a four-parameter read-only lookup with no output schema, the description covers purpose, units, and the one non-obvious filter. It lacks detail on the returned fields (name, IATA code, distance) and result ordering, which an agent would otherwise have to discover by calling.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is only 50%, so the description must carry weight, and it does for the ambiguous parameter: scheduled_only is explained with both the default and the effect of disabling it. latitude and longitude remain undocumented in degrees/format, and limit's default of 5 is left to the schema, which keeps this short of a 5.

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?

States a specific resource and operation: airports nearest to a latitude/longitude point, plus the metric (straight-line km). That's enough to distinguish it in spirit from find_airports and lookup_airport, though it never names those siblings to make the contrast explicit.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives a clear default work-mode (scheduled service only) and the condition under which to change it (set scheduled_only to false). It offers no guidance on when to prefer this over find_airports or lookup_airport, so the cross-tool routing 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.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources