Skip to main content
Glama

DatiTuristici.it

Read the projection of an Italian comune with its uncertainty band

leggi_previsioni_comune
Read-onlyIdempotent

Reads the statistical projection of one Italian comune for the year after the latest ISTAT year: total, hotel and non-hotel nights and arrivals. Use it for what to expect next; do not use it for past figures (use leggi_serie_comune instead) or to compare comuni (use confronta_comuni instead). cod_istat (from cerca_comune) is the only input: it picks the comune, while the projected year cannot be chosen and is returned in anno_orizzonte. Figures are estimates, not official statistics; only the total has an uncertainty band. If projections are not public or nothing is stored, linee is an empty list and nota says why, not an error. An unknown code 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_previsioni_comune"
  }
}

Input Schema

NameRequiredDescriptionDefault
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 projection: what it is, how the total and its band are built when the year adds any months ISTAT has already published, which lines are not projected and why, which may be derived from the total, where reliability is missing, and the change of ISTAT scope in 2025. When no projection is stored, or projections are not public, it says so.
fonteYesSource to cite with the figures: processed by DatiTuristici.it from institutional data (ISTAT).
lineeYesThe four lines in the order totale, alberghieri, extra, arrivi; an empty list when no projection is stored for this comune or projections are not public (see `nota`).
metodoYesName of the statistical model that made the projections; null when none is stored or projections are not public.
schedaYesLink to the comune's public page on datituristici.it, to cite.
cod_istatYes6-digit ISTAT code of the comune, as a string with leading zeros kept.
anno_orizzonteYesThe one year projected: the year after the latest year with ISTAT yearly figures. Null when no projection is stored for this comune or projections are not public (see `nota`).
soglia_affidabilita_bassaYesReliability percentage below which the site labels a projection as low; null when no projection is stored or projections are not public.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • 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. An unknown code returns an error that says what to pass."New value: +"6-digit ISTAT code of the comune, as a string with leading zeros kept (\"058091\" is Roma)."
  2. Changed7 schema fields changed
    • changedOutput schema / properties / anno_orizzonte / description
      Previous value: -"The one year projected: the year after the latest year with ISTAT yearly figures. Null when no projection is stored for this comune (see `nota`)."New value: +"The one year projected: the year after the latest year with ISTAT yearly figures. Null when no projection is stored for this comune or projections are not public (see `nota`)."
    • changedOutput schema / properties / linee / description
      Previous value: -"The four lines in the order totale, alberghieri, extra, arrivi; an empty list when no projection is stored for this comune (see `nota`)."New value: +"The four lines in the order totale, alberghieri, extra, arrivi; an empty list when no projection is stored for this comune or projections are not public (see `nota`)."
    • changedOutput schema / properties / linee / items / properties / affidabilita_pct / description
      Previous value: -"Reliability from 0 to 100: 100 minus the percent error the model made when it projected `anno_di_prova` from the earlier years only, floored at 0. Null when the line is not available or too few earlier years allowed the test (see `nota`)."New value: +"Reliability from 0 to 100: 100 minus the percent error the model made when it projected `anno_di_prova` from the earlier years only, floored at 0. Null when the line is not available, when too few earlier years allowed the test, or when the projection comes from the yearly job for comuni, which measures its accuracy by size class of comuni and not for each comune (see `nota`)."
    • changedOutput schema / properties / linee / items / properties / anno_di_prova / description
      Previous value: -"The year on which the reliability was measured; null when the line is not available."New value: +"The year on which the reliability was measured; null when the line is not available or `affidabilita_pct` is null."
    • changedOutput schema / properties / metodo / description
      Previous value: -"Name of the statistical model that made the projections; null when none is stored."New value: +"Name of the statistical model that made the projections; null when none is stored or projections are not public."
    • changedOutput schema / properties / nota / description
      Previous value: -"Notes in English on reading the projection: what it is, how the total and its band are built when the year adds any months ISTAT has already published, which lines are not projected and why, which may be derived from the total, where reliability is missing, and the change of ISTAT scope in 2025. When no projection is stored, it says so."New value: +"Notes in English on reading the projection: what it is, how the total and its band are built when the year adds any months ISTAT has already published, which lines are not projected and why, which may be derived from the total, where reliability is missing, and the change of ISTAT scope in 2025. When no projection is stored, or projections are not public, it says so."
    • changedOutput schema / properties / soglia_affidabilita_bassa / description
      Previous value: -"Reliability percentage below which the site labels a projection as low; null when no projection is stored."New value: +"Reliability percentage below which the site labels a projection as low; null when no projection is stored or projections are not public."
  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 safety profile (readOnly, idempotent, non-destructive, closed-world), yet the description adds substantial non-obvious behavior: the horizon year cannot be chosen and is returned in `anno_orizzonte`, values are estimates with an uncertainty band only on the total, empty `linee` plus a `nota` is a normal outcome rather than an error, and an unknown code raises an error. It also discloses the 30 req/min shared rate limit and the absence of authentication, which annotations do not convey.

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 routing guidance, then parameter and edge-case behavior — every clause carries information and nothing is repeated from annotations. The single dense semicolon-chained block is efficient but slightly harder to scan than a segmented layout would be.

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 shape need not be explained, yet the description still covers the two cases an agent must handle (empty list with a reason, and hard error on bad code). For a single-parameter, annotated, closed-world read tool, nothing an agent needs to call it 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?

With one fully documented parameter (100% schema coverage, pattern and Roma example already in the schema), the baseline is 3; the description earns an extra point by adding provenance ('from cerca_comune') and clarifying that `cod_istat` alone determines the comune while the year is fixed server-side. That is meaning the schema does not carry.

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 ('Reads the statistical projection of one Italian comune') plus the exact scope: the year after the latest ISTAT year, covering total, hotel and non-hotel nights and arrivals. It explicitly names what it is not (leggi_serie_comune for past figures, confronta_comuni for comparisons), so the agent can distinguish it from siblings 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?

Gives an explicit positive rule ('use it for what to expect next') and two explicit exclusions with the correct alternative named for each. There is no ambiguity about when this tool is the right choice versus a sibling.

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