Search Italian comuni by name
cerca_comuneSearches 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
| 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), and the English names of the main cities ("Florence", "Venice") find the comune first. | |
| limite | No | Maximum number of matches, 1-20, default 10. | |
| regione | No | Italian name of a region, in any case ("Toscana"; Bolzano and Trento are in "Trentino-Alto Adige"). | |
| provincia | No | Italian name of a province, 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. |