Find a comune by name
search_comuniLook up Italian comuni by name (case- and accent-insensitive, partial names work) and get each one's 6-digit ISTAT code, province and region — the code get_comune needs. Returns identifiers only, no figures. Several comuni share a name; check the province before choosing.
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": {
"q": "<q>"
},
"name": "search_comuni"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | Yes | A comune name or part of one, accents optional — e.g. "Introdacqua" or "reggio". | |
| limit | No | How many matches to return, 1–25. Default 10. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | ||
| results | Yes | Best matches first: exact name, then names starting with the query, then names containing it. Several Italian comuni share a name — check the province before picking one. | |
| truncated | Yes | True when more comuni matched than `limit` allowed — narrow the query. | |
| attribution | Yes |