Skip to main content
Glama

DatiTuristici.it

Compare tourism figures of Italian comuni side by side

confronta_comuni
Read-onlyIdempotent

Compares 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

NameRequiredDescriptionDefault
annoNoYear of the nights and arrivals of every comune, e.g. 2024; default: the latest year they all share.
cod_istatYes2 to 5 different 6-digit ISTAT codes as strings, leading zeros kept, e.g. ["058091", "015146"] for Roma and Milano.

Output Schema

NameRequiredDescriptionDefault
annoYesThe one year of every figure: the requested one, or the latest year with figures for every comune; null if none of them has figures.
notaYesNotes 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.
fonteYesSource to cite with the figures: processed by DatiTuristici.it from institutional data (ISTAT).
comuniYesThe comuni in the requested order, each with its figures of `anno`.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / properties / nota / description
      Previous value: -"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."New value: +"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."
  2. Changed2 schema fields changed
    • changedInput schema / properties / anno / description
      Previous value: -"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."New value: +"Year of the nights and arrivals of every comune, e.g. 2024; default: the latest year they all share."
    • changedInput schema / properties / cod_istat / description
      Previous value: -"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."New value: +"2 to 5 different 6-digit ISTAT codes as strings, leading zeros kept, e.g. [\"058091\", \"015146\"] for Roma and Milano."
  3. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already cover the read-only/idempotent/non-destructive profile, yet the description adds substantial context beyond them: the shared-year default and why it exists, how capacity and population lags are resolved, null-with-`nota` handling, error behavior for unknown codes or out-of-span years, no authentication, and a 30 req/min 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, then alternatives, then default/edge-case behavior and access constraints — a logical order with no filler sentences. It runs as one dense paragraph, so a reader scanning for the rate limit or null-handling has to read to the end, but nothing is redundant.

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?

An output schema exists, so return values need not be restated; the description instead covers the things structured fields cannot: default-year resolution, stale capacity/population semantics, null plus `nota` reporting, error conditions, and rate limits. Nothing an agent needs to call this correctly is missing.

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, but the description adds real meaning: `anno` defaults to the latest year all requested comuni share (or the latest any has if none is shared), which explains a non-obvious comparability rule the schema only summarizes. It does not repeat the code format details, which the schema already documents.

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 ('Compares 2 to 5 Italian comuni side by side') and enumerates the measured fields (nights, arrivals, average stay, foreign share) plus auxiliary data (capacity, population). It explicitly distinguishes itself from leggi_dati_comune and classifica_territori, so an agent can select it without opening sibling schemas.

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?

Gives an explicit when-to-use ('several comuni at once, with their codes from cerca_comune') and two when-not-to-use cases routing to the correct alternatives: single comune to leggi_dati_comune, many-way ranking to classifica_territori. It even names the prerequisite tool for obtaining the codes.

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