A rural commune's douars
get_douarsThe douars of a rural commune from HCP's 2024 census, the villages and hamlets it's made of, grouped in its fractions (mashyakha), named in Arabic only. Each has its kind (grouped, split into sub-douars, or dispersed), its households and its people. A douar has its name in Latin where a source writes one, and its point where a map places it. With figures, a douar of 30 households or more also has the nationality, sex, age, civil registration and marital status of its people, the kind of dwelling its households live in, and the average distance in km from its dwellings to a paved road, an unpaved road a car can drive on, a primary school, a collège, a lycée and a health centre. HCP withholds those for a smaller douar, and says null. A town has no douars, though 21 communes counted as urban have some in their rural part.
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": {
"unit": "<unit>"
},
"name": "get_douars"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| unit | Yes | A commune, by code or slug. | |
| figures | No | Include each douar's figures. Left out, a douar is its name, kind, households and people. | |
| fraction | No | Only the douars of this fraction, by its 10-digit code. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| unit | Yes | ||
| total | Yes | How many douars are returned. | |
| douars | Yes | ||
| message | No | Present when the commune has no douars. | |
| fractions | Yes |