City boundary
dv_boundaryFetch a city's bounding box and neighbourhood boundaries from Divar GeoJSON, or retrieve a specific district's thinned polygon by name or id for map display and spatial analysis.
Instructions
Neighbourhood borders of a city from Divar's GeoJSON: the city's bounding box, or one neighbourhood's polygon.
Without district: the city box and its neighbourhoods. With it: a thinned GeoJSON Feature ([lon, lat]).
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_boundary"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| city | No | تهران | |
| limit | No | Max neighbourhoods in the overview. | |
| district | No | Neighbourhood name or id for its polygon, e.g. 'ونک'. | |
| max_points | No | Max vertices per ring. |