Skip to main content
Glama

DatiTuristici.it

Read the yearly tourism series of an Italian comune

leggi_serie_comune
Read-onlyIdempotent

Reads the yearly series of nights and arrivals of one Italian comune, split by guests resident in Italy and abroad. Use it for the trend of one comune; do not use it for one year, capacity or population (use leggi_dati_comune instead) or several comuni (use confronta_comuni instead). cod_istat comes from cerca_comune; da_anno and a_anno are inclusive, and without them all years come back. A comune without figures gets an empty list in serie and a nota, not an error. An unknown code or a range fully outside its years 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": "leggi_serie_comune"
  }
}

Input Schema

NameRequiredDescriptionDefault
a_annoNoLast year to include, e.g. 2024, not before `da_anno`; default: the latest year with data.
da_annoNoFirst year to include, e.g. 2015; default: the first year with data.
cod_istatYes6-digit ISTAT code of the comune, as a string with leading zeros kept ("058091" is Roma).

Output Schema

NameRequiredDescriptionDefault
nomeYesOfficial name of the comune.
notaYesNotes in English on reading the series (the change of scope above, a comune without figures, or a range without a year of figures); null otherwise.
fonteYesSource to cite with the figures: processed by DatiTuristici.it from institutional data (ISTAT).
serieYesOne row per year with movement figures, oldest first, from `da_anno` to `a_anno`; yearly figures only. An empty list when the comune has none, or none in that range (`nota` then lists the years that have figures).
schedaYesLink to the comune's public page on datituristici.it, to cite.
regioneYesRegion as recorded by ISTAT (Bolzano and Trento are provinces of TRENTINO-ALTO ADIGE); null if not recorded.
cod_istatYes6-digit ISTAT code of the comune, as a string with leading zeros kept.
provinciaYesProvince (or metropolitan city) as recorded by ISTAT; null if not recorded.
anno_discontinuitaYes2025 when the series reaches it: from 2025 ISTAT counts include privately rented holiday flats, so any change that spans 2025 includes the new accommodation, not only more tourists. Null when every row is before 2025.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / properties / anno_discontinuita / description
      Previous value: -"2025 when the series reaches it: 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). Null when every row is before 2025."New value: +"2025 when the series reaches it: from 2025 ISTAT counts include privately rented holiday flats, so any change that spans 2025 includes the new accommodation, not only more tourists. Null when every row is before 2025."
  2. Changed2 schema fields changed
    • changedInput schema / properties / a_anno / description
      Previous value: -"Last year to include, e.g. 2024, not before `da_anno`; default: the latest year with data. A range with no year of data returns an error that gives the years."New value: +"Last year to include, e.g. 2024, not before `da_anno`; default: the latest year with data."
    • changedInput schema / properties / cod_istat / description
      Previous value: -"6-digit ISTAT code of the comune as a string, leading zeros kept (\"058091\" is Roma); it comes from cerca_comune."New value: +"6-digit ISTAT code of the comune, as a string with leading zeros kept (\"058091\" is Roma)."
  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 declare readOnly/idempotent/non-destructive/closed-world, so the bar is lower, but the description still adds real behavior: an empty `serie` plus `nota` instead of an error for a comune without figures, an explicit error for an unknown code or an out-of-range span, no authentication, and a 30 req/min per-client limit shared across tools. These are operational facts an agent cannot get from the annotations.

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 exclusions, then parameter notes, then operational constraints — a sensible order with no filler. It is dense and runs long, but each sentence carries distinct information.

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-value explanation is not required, yet the description still covers the empty-result shape and the error conditions. Combined with full routing guidance and rate limits, an agent has everything needed to call it correctly and interpret failure modes.

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 baseline is 3; the description nonetheless adds provenance and boundary semantics — `cod_istat` comes from cerca_comune, `da_anno`/`a_anno` are inclusive, and omitting them returns all years. That is meaningfully more than the schema's default text.

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?

The description states a specific verb and resource ('Reads the yearly series of nights and arrivals of one Italian comune') plus the breakdown dimensions (residents in Italy vs abroad), which no sibling covers. An agent can distinguish it from leggi_dati_comune and confronta_comuni without opening any 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?

Explicit when-to-use ('trend of one comune') and explicit when-not with named alternatives: one year/capacity/population → leggi_dati_comune, several comuni → confronta_comuni. Nothing about routing is left to inference.

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