Where one nationality lives in Italy
get_nationalityFor one tracked citizenship (ISO-2 code such as US, GB, DE): the comuni, provinces and regions where its holders concentrate, with counts and shares. It is CITIZENSHIP, not birthplace — foreign-born Italian citizens are not counted — and it carries small-number caveats: the comune ranking skips places under 1,000 residents by default and flags rows under 30 residents (smallNumber). A comune with no ISTAT row is left out, not counted as zero, so totals are floors. State those caveats when you quote a ranking; they are in the result's caveats. Province and comune lists are different levels of detail — say which.
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": {
"cc": "<cc>"
},
"name": "get_nationality"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cc | Yes | ISO-2 citizenship code of one of the citizenships this site tracks, e.g. "US". | |
| limit | No | How many comuni and provinces to list, 1–50. Default 10. | |
| rankBy | No | share: residents with this citizenship as a fraction of the comune's population. count: absolute numbers. | share |
| minPopulation | No | Smallest comune, in residents, that may appear in the comune ranking. Default 1,000: in a village of sixty, four foreign residents is not a finding. Lowering it lets tiny places top the ranking. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| caveats | Yes | Read these before quoting a number; they travel with the data. | |
| byRegion | Yes | ||
| topComuni | Yes | ||
| attribution | Yes | ||
| nationality | Yes | ||
| topProvinces | Yes | Province grain: a different level of detail from the comuni above. Sums only the comuni ISTAT has a row for. | |
| nationalTotal | Yes | Residents with this citizenship in the comuni ISTAT reports on; `coverage` is how many comuni that is. | |
| citizenshipNotBirthplace | Yes | Every count here is by CITIZENSHIP, not country of birth: it leaves out foreign-born people who hold Italian citizenship. |