Skip to main content
Glama

Imperio — Italian Tax & Compliance Tools

Generate Codice Fiscale

generate_codice_fiscale
Read-onlyIdempotent

Generates an Italian Codice Fiscale from personal data (surname, first name, date of birth, sex, and municipality/foreign country of birth — or the Belfiore code directly). Returns the "base" code (the omocodia variant used in case of collision is assigned by the Agenzia delle Entrate).

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": {
      "cognome": "<cognome>",
      "nome": "<nome>",
      "data_nascita": "<data_nascita>",
      "sesso": "<sesso>"
    },
    "name": "generate_codice_fiscale"
  }
}

Input Schema

NameRequiredDescriptionDefault
nomeYesFirst name.
sessoYesSex: M or F.
comuneNoMunicipality (or foreign country) of birth. Alternatively use codice_belfiore.
cognomeYesSurname.
provinciaNoProvince code (e.g. PI) to disambiguate municipalities with the same name.
data_nascitaYesDate of birth as DD/MM/YYYY (e.g. 10/12/1985).
codice_belfioreNoCadastral/Belfiore code of the place of birth (precise alternative to comune).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changed
    • changedInput schema / properties / codice_belfiore / description
      Previous value: -"Codice catastale/Belfiore del luogo di nascita (alternativa precisa al comune)."New value: +"Cadastral/Belfiore code of the place of birth (precise alternative to comune)."
    • changedInput schema / properties / cognome / description
      Previous value: -"Cognome."New value: +"Surname."
    • changedInput schema / properties / comune / description
      Previous value: -"Comune (o stato estero) di nascita. In alternativa usa codice_belfiore."New value: +"Municipality (or foreign country) of birth. Alternatively use codice_belfiore."
    • changedInput schema / properties / data_nascita / description
      Previous value: -"Data di nascita in formato GG/MM/AAAA (es. 10/12/1985)."New value: +"Date of birth as DD/MM/YYYY (e.g. 10/12/1985)."
    • changedInput schema / properties / nome / description
      Previous value: -"Nome."New value: +"First name."
    • changedInput schema / properties / provincia / description
      Previous value: -"Sigla provincia (es. PI) per disambiguare comuni omonimi."New value: +"Province code (e.g. PI) to disambiguate municipalities with the same name."
    • changedInput schema / properties / sesso / description
      Previous value: -"Sesso: M o F."New value: +"Sex: M or F."
  2. First observed

TDQS

A4/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnly, idempotent, non-destructive, closed-world behavior, so the safety bar is covered. The description adds real domain context beyond that: the tool returns only the base code and the collision omocodia variant is the Agenzia delle Entrate's responsibility, which prevents an agent from misinterpreting the output.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences, no filler. The operation and its inputs come first, followed by the output caveat, which is exactly the order an agent needs.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

No output schema exists, but the description compensates by explaining the returned value and its limitation. With annotations covering the safety profile and full schema coverage of parameters, the only minor gap is that the provincia disambiguation role is left entirely to the schema.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so all seven parameters are already documented, including the comune/codice_belfiore alternative and provincia disambiguation. The description restates the input set (surname, name, DOB, sex, place of birth) without adding format or validation detail beyond what the schema supplies, so the baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ("Generates an Italian Codice Fiscale") and enumerates the source data required, then pins down the exact output (base code vs. omocodia variant). An agent can immediately distinguish this from validate_codice_fiscale by the generate/validate verb pairing.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies when to use it (when you have personal data and need a code) and offers a parameter-level alternative — municipality/country or the Belfiore code directly — but never names a sibling tool or states when generation is not appropriate (e.g. when a code already exists and should be validated instead).

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources