List cities
get_data_citiesRetrieve all cities in a country by ISO-2 code to populate city dropdowns, location filters, and autocomplete forms.
Instructions
Overview
Get a list of all cities within a specific country. Perfect for building location dropdowns and city selection interfaces.
When to Use
City dropdowns - Populate city selection lists
Location filters - Filter hotels by city
Geographic data - Get city lists for specific countries
Form autocomplete - Build city autocomplete features
What You Get
City list - All cities in the specified country
City names - Formatted city names ready for display
Quick Start
Provide the countryCode in ISO-2 format (e.g., "US", "GB"). Returns all cities in that country. Use the Get Country List endpoint to get country codes.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"countryCode": "<countryCode>"
},
"name": "get_data_cities"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| timeout | No | request timeout in seconds | |
| countryCode | Yes | Country code in iso-2 format (example: SG) |