lookup_cities
Find IATA codes for cities by name or code for use in flight searches. Use when a flight tool requires a city's airport code.
Instructions
Look up cities by name or IATA code and return the code flight tools expect.
Use when the user names a city and a flight search needs its IATA code.
For an airport code use lookup_airports; for the nearest airport to a
place that is not itself a city, use find_nearest_airports.
Every flight tool takes IATA codes, so this is usually the first call when
the user names a place. The full dataset is ~9.6k cities, so always pass
search. Names are only available in the requested locale: searching
"Мюнхен" needs locale="ru".
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 | City name substring or exact IATA code (e.g. "bangkok", "BKK"). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||