Get one commune
get_communeOne commune's names, type, région, province and cercle, 2024 and 2014 population, the change between them, a point inside it, the communes it borders and how much boundary it shares with each, and in the 6 cities divided into them, its arrondissements with their population. Identify it by HCP code (01.511.01.0), the code as digits, or a slug (tanger).
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": {
"id": "<id>"
},
"name": "get_commune"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | An HCP code, the code as digits, or a slug. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| commune | Yes | ||
| neighbours | Yes | The communes this one borders, longest shared boundary first. Measured on the OpenStreetMap boundaries, so it is under ODbL. | |
| arrondissements | Yes | Casablanca, Rabat, Fès, Marrakech, Salé and Tanger's arrondissements, most populous first; empty elsewhere. |