Skip to main content
Glama

DatiTuristici.it

Rank Italian territories by tourism figures

classifica_territori
Read-onlyIdempotent

Ranks 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

NameRequiredDescriptionDefault
annoNoYear of the figures, e.g. 2024; default: the latest year with data.
filtriNoOptional 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}].
limiteNoRows per page, 1-50, default 10.
offsetNoRows to skip before the page, default 0: add `limite` for the next page.
ordineNo"desc" (default) puts the highest values first, "asc" the lowest.desc
livelloNoWhat to rank: "comune" (default), "provincia" or "regione".comune
regioneNoOptional: keep only these regions, up to 5, by Italian name in any case, e.g. ["Toscana", "Umbria"].
andamentoNoOptional trend of presenze on the previous year: crescita = variazione at least +3%, calo = at most -3%, stabile = from -3% to +3% inclusive.
provinciaNoOptional: keep only these provinces, up to 5, by Italian name, e.g. ["Firenze", "Bolzano"]; not with "regione" as `livello`.
ordina_perNoMetric 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

NameRequiredDescriptionDefault
annoYesYear of the figures: the requested one, or the latest with data; null only when no figures are loaded.
notaYesNote in English for 2025 and later (privately rented holiday flats entered the counts), saying in 2025 which arguments were not applied; null otherwise.
fonteYesSource to cite with the figures: processed by DatiTuristici.it from institutional data (ISTAT).
righeYesThe page of ranked rows; an empty list when no territory meets the criteria or past the last page.
offsetYesItems skipped before this page, as requested.
totaleYesNumber of matching items across all pages.
ha_altriYesTrue when more items follow this page: ask again with a larger `offset`.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / properties / nota / description
      Previous value: -"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."New value: +"Note in English for 2025 and later (privately rented holiday flats entered the counts), saying in 2025 which arguments were not applied; null otherwise."
  2. Changed3 schema fields changed
    • changedInput schema / properties / andamento / description
      Previous value: -"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`)."New value: +"Optional trend of presenze on the previous year: crescita = variazione at least +3%, calo = at most -3%, stabile = from -3% to +3% inclusive."
    • changedInput schema / properties / anno / description
      Previous value: -"Year of the figures, e.g. 2024; default: the latest year with data. A year outside the years with data is an error that gives them."New value: +"Year of the figures, e.g. 2024; default: the latest year with data."
    • changedInput schema / properties / offset / description
      Previous value: -"Items to skip before the page, default 0."New value: +"Rows to skip before the page, default 0: add `limite` for the next page."
  3. Changed4 schema fields changed
    • changedInput schema / properties / anno / description
      Previous value: -"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."New value: +"Year of the figures, e.g. 2024; default: the latest year with data. A year outside the years with data is an error that gives them."
    • changedInput schema / properties / filtri / description
      Previous value: -"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}]."New value: +"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}]."
    • changedInput schema / properties / offset / description
      Previous value: -"Items to skip, default 0: for the next page pass the previous `offset` plus `limite` while `ha_altri` is true."New value: +"Items to skip before the page, default 0."
    • changedInput schema / properties / ordina_per / description
      Previous value: -"Metric to sort by (meanings under `filtri`), or nome for alphabetical order; default presenze. Rows without the metric come last."New value: +"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."
  4. First observed

TDQS

A4.8/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare read-only, idempotent and non-destructive, but the description adds substantial behavior beyond them: error semantics for unknown region/province or year without data, empty list on no match, the 2025 null-`variazione` quirk, and the 30 requests/minute per-client limit shared across tools.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with purpose and default, then routing, then mechanics. The single dense paragraph packs a lot of value, though a few clauses (ties, rate limit) could be split for scanability without losing content.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 10-parameter ranking tool with an output schema, the description covers defaults, filtering-before-sorting semantics, error and empty-result behavior, the 2025 edge case, and access constraints. Return values are correctly left to the output schema.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3; the description earns extra by explaining cross-parameter behavior the schema cannot: filters and `andamento` apply before sorting so `totale` counts only matches, ties break by name then code for stable paging, and in 2025 `variazione` is null so `andamento` and sorting by it are ignored.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Ranks and filters Italian comuni, provinces or regions by one year's tourism figures') and immediately pins the default behavior ('ten comuni with most nights in the latest year'). An agent can tell what it returns without opening the schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly routes away from two named siblings with the condition that selects each: 'do not use it to read a known comune (use leggi_dati_comune instead) or browse names (use elenca_territori instead)'. It also states the positive case ('questions with criteria').

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources