Skip to main content
Glama

DatiTuristici.it

Read the high and low season month of an Italian comune

leggi_affluenza_mensile
Read-onlyIdempotent

Reads the high and low season of one Italian comune: only the month with the most guest arrivals and the month with the fewest, each with its arrivals per resident. Use it to learn when a comune is busiest or quietest; do not use it for yearly totals (use leggi_dati_comune instead) or a trend (use leggi_serie_comune instead). cod_istat (from cerca_comune) is the only input: the year is the latest with yearly arrivals (anno), and base says if its months are ISTAT figures or estimates. Prices are not measured: the busiest month is usually the priciest, the quietest the cheapest. Seasons that cannot be worked out are null with a nota; 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_affluenza_mensile"
  }
}

Input Schema

NameRequiredDescriptionDefault
cod_istatYes6-digit ISTAT code of the comune, as a string with leading zeros kept ("058091" is Roma).

Output Schema

NameRequiredDescriptionDefault
annoYesYear of the arrivals the two seasons are worked out on: the latest year with yearly arrivals for the comune. Null when it has no yearly arrivals, no resident population or no territorial profile on the site (see `nota`).
baseYesWhere the monthly arrivals come from: arrivi = the monthly arrivals ISTAT publishes for the comune; comune = an estimate, the yearly arrivals spread over the months as the comune's own nights spent are; provincia, regione, italia = an estimate, the yearly arrivals spread with the average seasonal shape of the comuni of its province, of its region or of Italy. Null when the seasons are.
nomeYesOfficial name of the comune.
notaYesNotes in English on reading the two seasons: the months in words, what the index measures, that prices are not measured, whether the monthly arrivals are an estimate, or why the seasons are null.
fonteYesSource to cite with the figures: processed by DatiTuristici.it from institutional data (ISTAT).
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.
alta_stagioneYesThe high season of the comune in `anno`: the month with the most guest arrivals. Null when it cannot be worked out (see `nota`).
bassa_stagioneYesThe low season of the comune in `anno`: the month with the fewest guest arrivals. Null when it cannot be worked out (see `nota`).
anno_popolazioneYesYear of the resident population that divides the arrivals: `anno`, or the closest year available. Null when `anno` is.

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. Added

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, closed-world safety profile, and the description still adds substantive context: no authentication, a 30 requests/minute per-client limit shared across tools, null results with a `nota` when a season cannot be worked out, and an explicit error for an unknown code. It also warns that prices are not measured, only inferred, which prevents a likely misuse.

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?

The definition is dense but front-loaded: purpose, then exclusions and alternatives, then input, then caveats and limits. The price caveat and error-behavior sentences each earn their place, though the run-on accumulation of clauses in the second half makes it slightly harder to scan than a bulleted structure would.

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?

Given an output schema exists, the description need not enumerate return values, and it still pre-explains the fields an agent is most likely to misread (`anno`, `base`, null seasons with `nota`). Combined with the rate limit, auth statement, and error behavior, nothing operational is missing for a one-parameter read tool.

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 100% schema coverage and a single required parameter, the schema already carries the format, but the description adds provenance by noting that `cod_istat` comes from cerca_comune and that the year is implicit (the latest one with yearly arrivals). It also explains the output-side `anno` and `base` fields, which the input schema cannot.

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 names a specific verb and resource ('Reads the high and low season of one Italian comune') and immediately pins the scope: only the busiest and quietest month, each with arrivals per resident. That scope statement is what separates it from the yearly-totals and time-series siblings.

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?

It states the intended use ('learn when a comune is busiest or quietest') and then names two explicit exclusions with the correct alternatives: yearly totals go to leggi_dati_comune, trends to leggi_serie_comune. It also points to cerca_comune as the source for the required code, so no inference is needed.

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