Airport code lookup (IATA/ICAO), search and distance
airport_lookupLooks 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
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Optional second code for the distance between them. | |
| code | No | IATA or ICAO code, e.g. 'LAX' or 'KLAX'. | |
| search | No | Alternatively, a city or airport name to search, e.g. 'Lisbon'. |