Search cities
search_citySearches about 34,000 world cities by name (any case, accents optional, Arabic and local names understood) and returns each match's country, IANA time zone, coordinates and population. Use the coordinates and zone with get_sunrise_sunset or get_prayer_times.
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": {
"q": "<q>"
},
"name": "search_city"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | Yes | City name or the beginning of one, e.g. cairo, münchen, القاهرة | |
| limit | No | Maximum number of results (1–25). Default 8. | |
| country | No | Only cities of this country (ISO 3166-1 alpha-2), e.g. EG |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | Yes | ||
| notes | Yes | Caveats and conventions that apply to this response. | |
| query | Yes | ||
| source | Yes | Where the data or the algorithm comes from. | |
| country | Yes | ||
| license | Yes | ||
| results | Yes | ||
| sourceUrl | Yes | ||
| lastUpdated | Yes | Date the underlying data set was last generated or checked. |