lookup_airports
Look up airports by name, IATA code, or city code to get city, country, and coordinates. Pass a search term to rank exact matches first.
Instructions
Look up airports by name, IATA code, or city code.
Use when the user names an airport or a code and needs its city, country,
or coordinates. For the closest airport to a town that does not share the
airport's name, use find_nearest_airports instead of this tool.
The full dataset is ~10k airports, so always pass search — an unfiltered
call just returns the first limit entries in dataset order. Results are
ranked: exact code, then exact city code, then name matches, with airports
you cannot actually fly to last.
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": "lookup_airports"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max results to return (1-500, default 50). | |
| locale | No | 2-letter locale for names (e.g. "en", "ru"). Defaults to the server's locale. | |
| search | No | Airport name substring, exact IATA code, or city code (e.g. "heathrow", "LHR", "MOW"). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||