Compare tourism figures of Italian comuni side by side
confronta_comuniCompares 2 to 5 Italian comuni side by side: nights, arrivals, average stay and foreign share of arrivals in one year, with capacity and population. Use it for several comuni at once, with their codes from cerca_comune; do not use it for one comune (use leggi_dati_comune instead) or to rank many (use classifica_territori instead). By default anno is the latest year they all share, so numbers stay comparable, or the latest any has if none is shared. Capacity is the latest published up to that year and population the latest loaded; a comune without figures keeps null values and nota names it. An unknown code or a year outside their combined span of data is an error saying what to pass. Public, no authentication; 30 requests per minute per client, shared across tools.
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": {
"cod_istat": "<cod_istat>"
},
"name": "confronta_comuni"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| anno | No | Year of the nights and arrivals of every comune, e.g. 2024; default: the latest year they all share. | |
| cod_istat | Yes | 2 to 5 different 6-digit ISTAT codes as strings, leading zeros kept, e.g. ["058091", "015146"] for Roma and Milano. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| anno | Yes | The one year of every figure: the requested one, or the latest year with figures for every comune; null if none of them has figures. | |
| nota | Yes | Notes in English, null when there is nothing to say: from 2025 ISTAT counts include privately rented holiday flats, so any change that spans 2025 includes the new accommodation, not only more tourists; comuni without figures in `anno`; capacity from an earlier year. | |
| fonte | Yes | Source to cite with the figures: processed by DatiTuristici.it from institutional data (ISTAT). | |
| comuni | Yes | The comuni in the requested order, each with its figures of `anno`. |