Rank Italian territories by tourism figures
classifica_territoriRanks and filters Italian comuni, provinces or regions by one year's tourism figures: by default, the ten comuni with most nights in the latest year. Use it for questions with criteria; do not use it to read a known comune (use leggi_dati_comune instead) or browse names (use elenca_territori instead). regione, provincia, filtri and andamento filter the rows before they are sorted, so totale counts only the matches. Ties go by name then code, so paging is stable. An unknown region or province, or a year without data, is an error saying what to pass, and no match is an empty list. In 2025 variazione is null by design, so andamento and sorting by it are ignored, as nota says. 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. | |
| filtri | No | Optional thresholds, up to 5 and one per metric, each with `min`, `max` or both: 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 | Rows to skip before the page, default 0: add `limite` for the next page. | |
| 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 = from -3% to +3% inclusive. | |
| 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, which runs A to Z only with "asc" as `ordine`; 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 | Note 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`. |