Compute a codice fiscale
compute_codice_fiscaleCompute the Italian codice fiscale (tax code) of a person from surname, name, sex, birth date and birth place, with the D.M. 23/12/1976 rules. The place can be a comune ('Roma', 'Castro (LE)'), a foreign state ('Francia') or a codice catastale ('H501'); the code valid on the birth date is used. Returns the 16 characters and why each group has its value. The Agenzia delle Entrate may assign an omocodic variant: only it confirms a code.
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": {
"surname": "<surname>",
"name": "<name>",
"sex": "<sex>",
"birth_date": "<birth_date>",
"birth_place": "<birth_place>"
},
"name": "compute_codice_fiscale"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sex | Yes | M or F. | |
| name | Yes | Given name(s) (nome), all of them. | |
| surname | Yes | Surname (cognome), as on the document. | |
| birth_date | Yes | Birth date, YYYY-MM-DD (DD/MM/YYYY accepted). | |
| birth_place | Yes | Comune (with province if ambiguous), foreign state, or codice catastale / Z-code. |