Search Italian comuni by name
cerca_comuneSearches Italian municipalities (comuni) by name, tolerating partial names and typos, 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; when you already have the 6-digit code, do not search again and use leggi_dati_comune instead, to pick comuni by criteria use classifica_territori, and to browse a province use elenca_territori. All homonyms are returned, most similar first (narrow them with provincia or regione); an empty list means nothing resembles the text and is not an error. Read-only, 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
| Name | Required | Description | Default |
|---|---|---|---|
| nome | Yes | 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). | |
| limite | No | Maximum number of matches, 1-20, default 10. | |
| regione | No | Optional: keep only comuni of this region, given by its Italian name ("Toscana", not "Tuscany"; Bolzano and Trento are in "Trentino-Alto Adige"). | |
| provincia | No | Optional: keep only comuni of this province, given by its Italian name in any case ("Trento", "Bolzano", "Monza e Brianza"). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nota | No | Set only when `provincia` or `regione` excluded every match: how many comuni with a similar name exist elsewhere. Null otherwise. | |
| fonte | Yes | Source to cite with the figures: processed by DatiTuristici.it from institutional data (ISTAT). | |
| risultati | Yes | Matching comuni, most similar name first, at most `limite`; empty when nothing resembles the text. |