Compare tourism figures of Italian comuni side by side
confronta_comuniCompares 2 to 5 Italian comuni side by side in the same year: nights, arrivals, bed places, establishments, population, average stay and share of arrivals from abroad. Use it when the question is about several comuni at once and you have their 6-digit codes from cerca_comune; do not use it for one comune (use leggi_dati_comune instead) or to rank many by a criterion (use classifica_territori instead). anno defaults to the latest year with figures for every comune, so the numbers stay comparable; a comune without figures in that year keeps null values and nota names it, also flagging 2025 and later, when the counts changed scope. Fewer than 2 or more than 5 codes, a repeated code or an unknown one returns an error that says what to pass. Read-only, 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 figures for every comune, e.g. 2024; default: the latest year they all have. A year outside their years with data returns an error that gives them. | |
| cod_istat | Yes | 2 to 5 different 6-digit ISTAT codes as strings, leading zeros kept, e.g. ["058091", "015146"] for Roma and Milano; they come from cerca_comune. |
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 totals and non-hotel figures are not comparable with years before 2025 (hotel figures are); 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`. |