Skip to main content
Glama

LexGrid EU Tax, KYB & e-Invoicing

Codice Fiscale & Omocodia Auditor

codice_fiscale_audit
Read-onlyIdempotent

[Deterministic statutory audit. Pure calculation, read-only, side-effect free]. Full bidirectional Italian Codice Fiscale audit under D.M. 23/12/1976: mathematical CIN check character validation, reverse demographic extraction (gender, birthdate, Belfiore cadastral municipality code), omocodia substitution detection, and dehomocoding. Usage: Use this tool to audit 16-character Italian fiscal codes or decode demographic attributes. For VAT number verification and company KYB, use 'vies_gleif_kyb_verify' instead. Returns: JSON object with { isValid: boolean, isOmocodia: boolean, normalizedCf: string, demographics: { birthDate: string, gender: 'M' | 'F', belfioreCode: string, municipality: string }, cinValid: boolean }.

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": {
      "codiceFiscale": "<codiceFiscale>"
    },
    "name": "codice_fiscale_audit"
  }
}

Input Schema

NameRequiredDescriptionDefault
codiceFiscaleYes16-character alphanumeric personal Codice Fiscale or 11-digit legal entity code
expectedGenderNoExpected gender (M/F) for cross-check
expectedBirthDateNoExpected birth date in YYYY-MM-DD format for consistency check
expectedBelfioreCodeNoExpected Belfiore cadastral code (e.g. H501 for Roma, F205 for Milano)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint and destructiveHint=false, so the safety profile is covered; the description still adds value by asserting determinism, 'pure calculation, side-effect free' behavior, and the statutory basis (D.M. 23/12/1976). It does not discuss input-length rejection behavior or edge cases for malformed codes, which keeps it below a 5.

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

Conciseness4/5

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

Front-loaded with the primary purpose, then clearly separated 'Usage' and 'Returns' blocks, which makes it scannable. It is slightly redundant in restating read-only/side-effect-free alongside annotations that already declare readOnlyHint and destructiveHint, but the bracketed summary is compact and not wasteful.

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

Completeness5/5

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

Despite having no output schema, the description spells out the return object keys (isValid, isOmocodia, normalizedCf, demographics fields, cinValid), so an agent knows exactly what to expect. Combined with the regulatory framing and sibling routing, nothing an agent needs to invoke or interpret this tool is missing.

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 every parameter including the three optional 'expected*' cross-check fields is already documented in the schema. The description adds the 16-character / 11-digit input dimension and mentions demographic decoding, but says nothing about how expectedGender, expectedBirthDate or expectedBelfioreCode alter the response. Baseline 3 is appropriate when the schema carries the parameter burden.

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?

The description states a specific verb and resource — a 'bidirectional Italian Codice Fiscale audit' — and enumerates the operations it performs (CIN check, reverse demographic extraction, omocodia detection, dehomocoding). It also explicitly names the adjacent but different tool ('vies_gleif_kyb_verify') for VAT/KYB work, so an agent can distinguish it from siblings without opening any schema.

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

Usage Guidelines5/5

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

It gives an explicit usage sentence ('Use this tool to audit 16-character Italian fiscal codes or decode demographic attributes') and an explicit exclusion with the alternative to use instead for VAT numbers and company KYB. Both the when-to-use and the when-not-to-use conditions are present, leaving nothing to inference.

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