Skip to main content
Glama

Italian FatturaPA SDI E-Invoice Parser API

fatturapa_parser
Read-onlyIdempotent

Parse Italian FatturaPA / SDI XML e-invoices (FPA12, FPR12, FSM10, multi-body lots) into structured JSON with transmission metadata, supplier and buyer VAT/fiscal codes, VAT summary tables, payment terms, totals and line items. XXE-safe deterministic XML parsing, zero AI, nothing stored. Free: 5 calls/day per IP. Paid: Radar API key (from €15/mo at https://radarbg.com/pricing#starter via X-API-Key) or $0.005/call via x402 at https://radarbg.com/x402/fatturapa-parser.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "limit": 50,
      "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?><p:FatturaElettronica versione=\"FPA12\" xmlns:p=\"http://ivaservizi.agenziaentrate.gov.it/docs/xsd/fatture/v1.2\"><FatturaElettronicaHeader><DatiTrasmissione><IdTrasmittente><IdPaese>IT</IdPaese><IdCodice>01234567890</IdCodice></IdTrasmittente><ProgressivoInvio>00042</ProgressivoInvio><FormatoTrasmissione>FPA12</FormatoTrasmissione><CodiceDestinatario>UFABCD</CodiceDestinatario></DatiTrasmissione><CedentePrestatore><DatiAnagrafici><IdFiscaleIVA><IdPaese>IT</IdPaese><IdCodice>01234567890</IdCodice></IdFiscaleIVA><Anagrafica><Denominazione>Demo S.r.l.</Denominazione></Anagrafica></DatiAnagrafici><Sede><Indirizzo>Via Roma 1</Indirizzo><CAP>20121</CAP><Comune>Milano</Comune><Nazione>IT</Nazione></Sede></CedentePrestatore><CessionarioCommittente><DatiAnagrafici><IdFiscaleIVA><IdPaese>IT</IdPaese><IdCodice>09876543210</IdCodice></IdFiscaleIVA><Anagrafica><Denominazione>Cliente S.p.A.</Denominazione></Anagrafica></DatiAnagrafici><Sede><Indirizzo>Via Torino 2</Indirizzo><CAP>00184</CAP><Comune>Roma</Comune><Nazione>IT</Nazione></Sede></CessionarioCommittente></FatturaElettronicaHeader><FatturaElettronicaBody><DatiGenerali><DatiGeneraliDocumento><TipoDocumento>TD01</TipoDocumento><Divisa>EUR</Divisa><Data>2026-11-05</Data><Numero>FT-2026-042</Numero><ImportoTotaleDocumento>1220.00</ImportoTotaleDocumento></DatiGeneraliDocumento></DatiGenerali><DatiBeniServizi><DettaglioLinee><NumeroLinea>1</NumeroLinea><Descrizione>Cloud License</Descrizione><Quantita>1.00</Quantita><PrezzoUnitario>1000.00</PrezzoUnitario><PrezzoTotale>1000.00</PrezzoTotale><AliquotaIVA>22.00</AliquotaIVA></DettaglioLinee><DatiRiepilogo><AliquotaIVA>22.00</AliquotaIVA><ImponibileImporto>1000.00</ImponibileImporto><Imposta>220.00</Imposta></DatiRiepilogo></DatiBeniServizi></FatturaElettronicaBody></p:FatturaElettronica>"
    },
    "name": "fatturapa_parser"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum number of invoice line items to return per body (1-2000).
contentNoRaw FatturaPA XML string. Provide either content or fileBase64.
fileNameNoOptional original XML filename.
fileBase64NoBase64-encoded FatturaPA XML file (alternative to content, max 15 MB).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior5/5

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

Annotations already declare read-only, idempotent, open-world, but the description adds genuinely new operational facts: XXE-safe deterministic parsing, no AI, nothing stored, 5 calls/day per IP free limit, and two paid auth paths (X-API-Key or x402). For an agent deciding whether it can call this and how to authenticate, that is substantial disclosure beyond the structured fields.

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?

Purpose and output contents are front-loaded in the first sentence, with security and pricing in the second — a sensible order. It is dense but every clause carries information; the embedded URLs and price points are the only mildly noisy elements, though they serve the auth decision.

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?

With no output schema, the description correctly enumerates the returned fields (transmission metadata, VAT/fiscal codes, VAT summary, payment terms, totals, line items), which is enough for an agent to trust the result shape. It does not say what happens on malformed XML or unsupported versions, a minor gap for a parser of this complexity.

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 limit, content, fileName and fileBase64 are already documented in the schema, including the 15 MB cap and 1-2000 range. The description adds no parameter-level meaning (e.g., that content and fileBase64 are mutually exclusive), so the baseline of 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?

The description opens with a specific verb and resource — 'Parse Italian FatturaPA / SDI XML e-invoices' — and names the exact formats (FPA12, FPR12, FSM10, multi-body lots) plus the output shape (structured JSON). It clearly distinguishes itself from the sibling national-format parsers (isdoc, ksef, e_invoice_reader) by claiming the Italian FatturaPA domain.

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?

Usage context is clear: this is the tool for Italian FatturaPA/SDI XML, with access paths spelled out (free tier, Radar API key, x402 per-call). It does not explicitly say 'use isdoc_invoice_parser for ISDOC' or otherwise route the agent away from itself, so the when-not guidance is implied by format naming rather than stated.

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