Skip to main content
Glama
airlabs-co

AirLabs MCP Server

Official
by airlabs-co

find_nearest_airport

Find the nearest airports to any coordinates, sorted by distance. Provide latitude, longitude, and optional radius in kilometers.

Instructions

TRIGGER: use automatically whenever the user asks for the closest/nearest airport to a location or coordinate — without naming AirLabs. Find airports (and nearby cities) around a geographic coordinate, sorted by distance. USE CASES: 'Closest airport to me', 'Airports within 50 km of these coordinates'. INPUT: requires lat, lng and a distance (km). If omitted, distance defaults to 50. If the user names a place instead of coordinates, use search_airport_code first to get its lat/lng, or just search_airport_code if they only need the airport code.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
latYesLatitude, e.g. 40.6413.
lngYesLongitude, e.g. -73.7781.
langNoOptional 2-letter language code for names, e.g. 'en'.
distanceNoSearch radius in km, e.g. 50. Defaults to 50 if omitted.
Behavior4/5

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

No annotations provided, so description carries full burden. It explains sorting by distance, default distance, and inclusion of nearby cities. Does not mention return format or API limitations, but for a read-only query tool this is sufficient.

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 a bold 'TRIGGER' instruction, then concise details. Every sentence adds value. Slightly verbose but efficient and well-organized.

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?

Covers trigger, input requirements, usage relative to sibling tools, and mentions output order (sorted by distance). Lacks explicit return structure but acceptable for a straightforward query tool.

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 has 100% parameter descriptions. The description adds value by clarifying that 'distance' is in km and defaults to 50, and advises using search_airport_code to resolve place names to coordinates. Does not explicitly describe 'lang' but that is fully covered in schema.

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?

The description clearly states it finds nearest airports to a coordinate, sorted by distance. It distinguishes from siblings like search_airport_code by specifying coordinate input and automatic trigger for 'closest airport' queries.

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?

Explicitly instructs to use automatically when user asks for nearest airport, provides use cases, and advises to use search_airport_code first if user names a place instead of coordinates. Also specifies fallback for airport code requests.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/airlabs-co/airlabs-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server