Demographics
demographicsRetrieve the latest age and sex breakdown of displaced people for a country, either hosted there or displaced from it, using recent UNHCR data.
Instructions
Latest age/sex breakdown of displaced people connected to a country (role "asylum" = hosted there, default; "origin" = from there). UNHCR publishes demographics for recent years only.
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": {
"country": "<country>"
},
"name": "demographics"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| role | No | "asylum" = people hosted IN the country; "origin" = people displaced FROM the country | |
| locale | No | Language of the human-readable text output: "en" (default) or "ar" (Modern Standard Arabic, right-to-left). Structured JSON fields, ISO3 codes and dataset ids stay in English either way. | |
| country | Yes | Country name or ISO3 code, e.g. "Egypt", "EGY", "syria" |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| male | Yes | ||
| year | Yes | ||
| total | Yes | ||
| female | Yes | ||
| source | Yes | ||
| country | Yes | ||
| country_code | Yes |