Skip to main content
Glama

Imperio — Italian Tax & Compliance Tools

FatturaPA / SDI parser

parse_fatturapa
Read-onlyIdempotent

Extracts structured data (seller, buyer, lines, taxes) from a FatturaPA/SDI XML e-invoice. Deterministic parsing only — no VIES check.

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_content": "<xml_content>"
    },
    "name": "parse_fatturapa"
  }
}

Input Schema

NameRequiredDescriptionDefault
xml_contentYesThe XML content of the electronic invoice (FatturaPA/SDI).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / xml_content / description
      Previous value: -"Il contenuto XML della fattura elettronica (FatturaPA/SDI)."New value: +"The XML content of the electronic invoice (FatturaPA/SDI)."
  2. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world behavior, so the bar is lower; the description still adds real value by stating parsing is deterministic and performs no VIES/network validation, which sets expectations about trust and side effects. It does not say what happens with malformed or non-FatturaPA XML, which would be the remaining behavioral gap.

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 short sentences, zero filler, with the core action and the extracted data front-loaded and the negative constraint (no VIES) closing it. Every clause carries information an agent can act on.

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 usefully compensates by naming the returned sections (seller, buyer, lines, taxes), and it scopes out verification. For a one-parameter parser this is nearly complete; error/failure behavior on invalid XML is the only notable omission.

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?

The single parameter has 100% schema description coverage, so the schema already explains xml_content fully; the description adds no format, version, encoding, or size guidance beyond it. Baseline 3 applies 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.

Purpose4/5

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

Names a specific verb and resource ("Extracts structured data ... from a FatturaPA/SDI XML e-invoice") and even enumerates the extracted entities (seller, buyer, lines, taxes). The trailing "no VIES check" implicitly separates it from the verification sibling, but it never names that sibling, so differentiation remains inferential rather than explicit.

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?

"Deterministic parsing only — no VIES check" implies the usage boundary (pick this when you only need extraction, not validation), which is meaningful guidance but purely contrastive. No explicit when-to-use statement, no named alternative such as parse_verify_fatturapa, and no prerequisites mentioned.

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