Resolve City Name to IATA City Code
flexible_hotels_resolve_city_codeConvert a city name to its 3-letter IATA code for hotel searches. Provide a city keyword like 'Tel Aviv' to get the required city code.
Instructions
Look up the 3-letter IATA city code for a free-text city name (e.g. "Tel Aviv" -> "TLV", "Paris" -> "PAR").
Every other tool in this server (list_hotels_in_city, search_flexible_hotel_offers) requires an IATA city_code, so this is normally the first tool to call when the user names a city.
Args:
keyword (string): city name or the start of it, e.g. "Tel Aviv", "New York", "Par"
max_results (number): max cities to return, 1-20 (default 10)
response_format ('markdown' | 'json'): output format (default markdown)
Returns: matching cities with their name, iataCode, and country code.
Examples:
Use when: "find flexible hotel deals in Tel Aviv" -> call with keyword="Tel Aviv" first to get city_code="TLV"
Don't use when: you already have a 3-letter IATA city code
Error Handling:
Returns "No cities found matching ..." if the keyword doesn't match anything
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| keyword | Yes | Free-text city name or the start of it, e.g. 'Tel Aviv', 'Par', 'New York' | |
| max_results | No | Maximum cities to return | |
| response_format | No | Output format: 'markdown' for human-readable or 'json' for machine-readable | markdown |