Skip to main content
Glama

Italian P7M XML E-Invoice Extractor & PDF API

p7m_fatturapa_extractor
Read-onlyIdempotent

Unwrap CAdES-BES signed P7M cryptographic envelopes and parse Italian electronic XML invoices into structured JSON with seller, buyer, VAT summary, arithmetic checks, clean XML, and printable A4 PDF output. Deterministic offline processing, 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.01/call via x402 at https://radarbg.com/x402/p7m-fatturapa-extractor.

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum invoice bodies returned from a batch file (1-1000).
contentNoRaw Italian electronic invoice XML text. Provide content or fileBase64.
fileNameNoOptional original filename.
languageNoPDF label language: en or it (default en).en
fileBase64NoBase64-encoded P7M or XML Italian electronic invoice file (max 15 MB).
includePdfNoRender and return a base64-encoded printable A4 PDF.
includeXmlNoInclude the unwrapped clean XML string in the response.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / content / description
      Previous value: -"Raw FatturaPA XML text. Provide content or fileBase64."New value: +"Raw Italian electronic invoice XML text. Provide content or fileBase64."
    • changedInput schema / properties / fileBase64 / description
      Previous value: -"Base64-encoded .xml.p7m or .xml FatturaPA invoice file (max 15 MB)."New value: +"Base64-encoded P7M or XML Italian electronic invoice file (max 15 MB)."
  2. Added

TDQS

B3.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint and openWorldHint, and the description adds genuinely new behavioral context on top: deterministic offline processing, no AI, nothing stored, a 5 calls/day per-IP free tier, and the two auth paths (X-API-Key or x402 per-call payment). It stops short of covering failure behavior, such as what happens when neither content nor fileBase64 is supplied or what occurs on a malformed signature.

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?

The core capability is front-loaded in a single dense sentence, followed by a short trust/processing statement and a pricing line. It is efficient overall, though the pricing sentence packs URLs and multiple payment mechanics into one clause that reads more like marketing copy than tool guidance.

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 usefully enumerates the returned fields (seller, buyer, VAT summary, arithmetic checks, clean XML, PDF), which compensates well. However, the limit parameter implies batch-file processing that the description never explains, and with zero required parameters it leaves the content-versus-fileBase64 input contract and the 15 MB ceiling's consequences unaddressed.

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 in the schema and the baseline of 3 applies. The description adds only indirect meaning, since its mention of 'clean XML' and 'printable A4 PDF' loosely maps to includeXml and includePdf, and it says nothing about how content, fileBase64, and limit interact.

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

Purpose4/5

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

The description opens with a specific verb+resource pair: unwrapping CAdES-BES P7M envelopes and parsing Italian electronic invoices, with a concrete list of outputs (seller, buyer, VAT summary, arithmetic checks, clean XML, A4 PDF). That detail makes it distinguishable from generic parsers in practice, but it never names or contrasts a sibling such as fatturapa_parser or e_invoice_reader, so the differentiation is implicit rather than stated.

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

Usage Guidelines2/5

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

There is no when-to-use guidance: nothing says when to send P7M versus raw XML, when to prefer this over a sibling invoice parser, or what the caller must supply given that zero parameters are required. The pricing and API-key text describes access and cost, not selection criteria, so an agent gets no routing help from the definition.

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