Look up CAP
lookup_capInfers the province from the 2-digit PREFIX of an Italian CAP (postal code); it does NOT validate the CAP itself: valid: true only means 5 digits with a known prefix, not that the CAP exists (we have no list of issued CAPs). If the prefix belongs to a single province it is named in provincia_prefisso; if it is shared by several provinces (e.g. 23 = Sondrio or Lecco, 20 = Milano or Monza-Brianza) provincia_prefisso is null, stato_provincia is "incerta" (uncertain) and province_possibili lists the candidates. It does NOT return the municipality (comune is always null: we have no CAP→municipality table).
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": {
"cap": "<cap>"
},
"name": "lookup_cap"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cap | Yes | The 5-digit CAP (e.g. 20121). |