Skip to main content
Glama

AGOS European Compliance & Operations

Italian E-Invoice (FatturaPA / SdI v1.9.1) Pre-Submission Validator

validate_it_fatturapa
Read-onlyIdempotent

Validates Italian e-invoice XML files (FatturaPA v1.2.2) against Agenzia delle Entrate SdI v1.9.1 rules to diagnose and prevent SdI rejections (XXE/depth safe): Partita IVA Mod-10 & Codice Fiscale checksums, CodiceDestinatario/PEC routing, TipoDocumento (TD01–TD29) party rules, Natura v1.2.2 vs AliquotaIVA cross-checks (e.g. 00400), DatiCassaPrevidenziale & DatiRiepilogo math reconciliation, and €2.00 Bollo virtuale stamp duty threshold (>€77.47). Deterministic offline pre-check; does not transmit to SdI.

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": {
      "xml": "<xml>"
    },
    "name": "validate_it_fatturapa"
  }
}

Input Schema

NameRequiredDescriptionDefault
xmlYesRaw Italian FatturaPA XML document (<FatturaElettronica>, max 512 KB, no DOCTYPE/ENTITY).
specVersionNoAgenzia delle Entrate technical specification version (default: "1.9.1").1.9.1

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, and openWorldHint=false, so the safety profile is partly covered; the description still adds meaningful context beyond them: no transmission to SdI, deterministic results, and XXE/entity-depth hardening for untrusted XML input. It does not describe failure behavior or output shape, 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.

Conciseness5/5

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

Two sentences, front-loaded with the core action and scope, followed by a compact comma-delimited enumeration of the rule families checked and the non-transmission caveat. No filler or restatement of the tool name.

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

Completeness3/5

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

With no output schema, the description never says what a call returns — pass/fail verdict, list of violations with codes, severity, or locations — which is the main thing an agent needs to interpret results. The input side, rule coverage, and offline guarantee are otherwise complete for a two-parameter tool.

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 both parameters are already documented, and the description largely restates the schema by pairing FatturaPA v1.2.2 with SdI v1.9.1. That pairing gives slight extra meaning to the specVersion enum (which rule set is applied) but adds no detail on xml formatting constraints beyond what the schema states.

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 with full scoping: validates Italian FatturaPA v1.2.2 XML against AdE SdI v1.9.1 rules. The enumerated check categories (checksums, routing, TipoDocumento, Natura/IVA, cassa/riepilogo math, bollo) make the domain unmistakable and clearly separate it from the other national-format validators in the sibling list.

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

Usage Guidelines4/5

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

The title and the closing sentence 'deterministic offline pre-check; does not transmit to SdI' establish the usage context (run before submission, purely diagnostic). It stops short of explicit when-not guidance or naming an alternative tool, but for a single-purpose validator the intended usage window is clear.

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