Rank Italian territories by tourism figures
classifica_territoriRanks and filters Italian comuni, provinces or regions by the tourism figures of one year, with the same rows, order and values as the advanced search (Esplora) on datituristici.it. Use it for questions with criteria, such as the comuni of a region with the most nights or those above a bed occupancy threshold; do not use it to read one known comune (use leggi_dati_comune instead), to look a place up by name (use cerca_comune instead) or to browse names (use elenca_territori instead). Figures are for anno, by default the latest year with data; a figure that is not available is null, an empty list means that no territory meets the criteria, and in 2025 variazione is null because the counts started including privately rented holiday flats (nota explains it). Read-only, public, no authentication; 30 requests per minute per client, shared across tools.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "classifica_territori"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| anno | No | Year of the figures, e.g. 2024; default: the latest year with data. A year outside the years with data returns an error that gives them. | |
| filtri | No | Optional thresholds, up to 5 and one per metric: a row is kept when each metric is within its bounds, and a row without that metric is dropped. Example: [{"metrica": "presenze", "min": 100000}, {"metrica": "tasso_occ", "max": 40}]. | |
| limite | No | Rows per page, 1-50, default 10. | |
| offset | No | Items to skip, default 0: for the next page pass the previous `offset` plus `limite` while `ha_altri` is true. | |
| ordine | No | "desc" (default) puts the highest values first, "asc" the lowest. | desc |
| livello | No | What to rank: "comune" (default), "provincia" or "regione". | comune |
| regione | No | Optional: keep only these regions, up to 5, by Italian name in any case, e.g. ["Toscana", "Umbria"]. | |
| andamento | No | Optional trend of presenze on the previous year: crescita = variazione at least +3%, calo = at most -3%, stabile = in between. Not applied in 2025, where variazione does not exist (see `nota`). | |
| provincia | No | Optional: keep only these provinces, up to 5, by Italian name, e.g. ["Firenze", "Bolzano"]; not with "regione" as `livello`. | |
| ordina_per | No | Metric to sort by (meanings under `filtri`), or nome for alphabetical order; default presenze. Rows without the metric come last. | presenze |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| anno | Yes | Year of the figures: the requested one, or the latest with data; null only when no figures are loaded. | |
| nota | Yes | Comparability warning in English for 2025 and later (privately rented holiday flats entered the counts), saying in 2025 which arguments were not applied; null otherwise. | |
| fonte | Yes | Source to cite with the figures: processed by DatiTuristici.it from institutional data (ISTAT). | |
| righe | Yes | The page of ranked rows; an empty list when no territory meets the criteria or past the last page. | |
| offset | Yes | Items skipped before this page, as requested. | |
| totale | Yes | Number of matching items across all pages. | |
| ha_altri | Yes | True when more items follow this page: ask again with a larger `offset`. |