Find cities
dv_citiesFind city IDs and slugs by name or slug for Iranian cities, returning ID, name, province, and centre so you can target Divar searches and district lookups.
Instructions
City ids for a name (1,177 cities; Tehran is 1, Mashhad 3). Returns id, name, URL slug, province id and centre.
Other tools also take the city name directly. Next: dv_districts, dv_search.
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": "dv_cities"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| query | No | Name or slug, e.g. 'مشهد', 'kar'. Omit for the 7 biggest cities. |