Skip to main content
Glama

DatiTuristici.it

Search Italian comuni by name

cerca_comune
Read-onlyIdempotent

Searches Italian municipalities (comuni) by name, tolerating typos and most partial names, and returns each match with its 6-digit ISTAT code, province and region. Use it when you have a place name and need the code; do not use it once you have the code (use leggi_dati_comune instead) or to list the comuni of a province (use elenca_territori instead). Matching is by similarity, so homonyms come back too, most similar first, up to limite. provincia and regione filter before limite applies, so a homonym beyond the cut is still found; given together, both must hold. An empty list is not an error: nothing resembles the name, or the filters removed every match (see nota). 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": {
      "nome": "<nome>"
    },
    "name": "cerca_comune"
  }
}

Input Schema

NameRequiredDescriptionDefault
nomeYesName of the comune, full or partial, 2-80 characters, in any case; typos, missing accents and apostrophes are tolerated ("cassano adda" finds Cassano d'Adda), and the English names of the main cities ("Florence", "Venice") find the comune first.
limiteNoMaximum number of matches, 1-20, default 10.
regioneNoItalian name of a region, in any case ("Toscana"; Bolzano and Trento are in "Trentino-Alto Adige").
provinciaNoItalian name of a province, in any case ("Trento", "Bolzano", "Monza e Brianza").

Output Schema

NameRequiredDescriptionDefault
notaNoSet only when `provincia` or `regione` excluded every match: how many comuni with a similar name exist elsewhere. Null otherwise.
fonteYesSource to cite with the figures: processed by DatiTuristici.it from institutional data (ISTAT).
risultatiYesMatching comuni, most similar name first, at most `limite`; empty when nothing resembles the text.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / provincia / description
      Previous value: -"Optional: keep only comuni of this province, given by its Italian name in any case (\"Trento\", \"Bolzano\", \"Monza e Brianza\")."New value: +"Italian name of a province, in any case (\"Trento\", \"Bolzano\", \"Monza e Brianza\")."
    • changedInput schema / properties / regione / description
      Previous value: -"Optional: keep only comuni of this region, given by its Italian name (\"Toscana\", not \"Tuscany\"; Bolzano and Trento are in \"Trentino-Alto Adige\")."New value: +"Italian name of a region, in any case (\"Toscana\"; Bolzano and Trento are in \"Trentino-Alto Adige\")."
  2. Changed1 schema field changed
    • changedInput schema / properties / nome / description
      Previous value: -"Name of the comune, full or partial, 2-80 characters, in any case; typos, missing accents and apostrophes are tolerated (\"cassano adda\" finds Cassano d'Adda)."New value: +"Name of the comune, full or partial, 2-80 characters, in any case; typos, missing accents and apostrophes are tolerated (\"cassano adda\" finds Cassano d'Adda), and the English names of the main cities (\"Florence\", \"Venice\") find the comune first."
  3. First observed

TDQS

A4.9/5.0
Behavior5/5

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

Beyond the annotations (which already declare read-only, idempotent, non-destructive, closed-world), the description discloses similarity-based matching with homonyms returned most-similar-first, filter-before-limit ordering semantics, combined-filter AND behavior, the fact that an empty list is not an error, no authentication requirement, and a 30 req/min shared rate limit. These are non-obvious operational traits an agent cannot infer from the schema or annotations.

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

Conciseness5/5

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

Purpose and the code-vs-no-code decision come first, then matching behavior, then filter/limit interaction, then error and rate-limit notes — a sensible front-loaded order. Sentences are dense but each carries distinct information; nothing is redundant with the schema.

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 4-parameter search tool with an output schema and full annotation coverage, the description supplies everything else an agent needs: matching tolerance, ranking, filter-vs-limit interaction, empty-result semantics, and rate limits. Nothing material is left to inference.

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 not in the schema: `provincia` and `regione` filter before `limite` is applied, so a homonym beyond the cut is still found, and both must hold when supplied together. That ordering interaction is the key operational detail the schema cannot express.

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?

Opens with a specific verb and resource ("Searches Italian municipalities (comuni) by name") and states what is returned (ISTAT code, province, region). It explicitly distinguishes itself from leggi_dati_comune and elenca_territori, so an agent can route 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 positive guidance ("use it when you have a place name and need the code") and explicit exclusions with named alternatives: do not use once you have the code (use leggi_dati_comune) or to list comuni of a province (use elenca_territori). The when/when-not/alternative triad is fully covered.

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