Skip to main content
Glama
fudaut-erechnung-bmf-mcp

fudaut-erechnung-bmf-mcp

ZUGFeRD / Factur-X PDF/A-3 XMP & JTL WAWI-86919 prüfen

check_zugferd_pdfa3_xmp
Read-onlyIdempotent

Validates PDF/A-3 or XMP metadata for JTL-Wawi error WAWI-86919, detecting missing or invalid ZUGFeRD/Factur-X version fields, schemas, embedded invoice XML, and document-type or total mismatches.

Instructions

Analysiert rohe PDF/A-3-Dateien oder XMP-Metadaten gezielt auf den JTL-Wawi-Fehler WAWI-86919 (leeres oder fehlerhaftes fx:Version / zf:Version-Feld, fehlendes pdfaExtension:schemas für Factur-X/ZUGFeRD, fehlendes eingebettetes factur-x.xml/zugferd-invoice.xml) sowie Dokumenttyp- und Summenabweichungen zwischen XMP, eingebettetem XML und optionalen Referenzbeträgen.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "check_zugferd_pdfa3_xmp"
  }
}

Input Schema

NameRequiredDescriptionDefault
pfadNoRelativer Pfad zu einer .pdf- oder .xmp/.xml-Metadatendatei im freigegebenen Ordner
xmpXmlNoDirekter XMP-Metadaten-XML-Text (falls separat ohne PDF geprüft wird)
pdfBase64NoBase64-kodierte PDF/A-3-Bytes (falls kein Dateipfad genutzt wird)
embeddedXmlNoOptionales eingebettetes Rechnungs-XML zum Abgleich bei reiner XMP-Prüfung
erwartetNettoCentNoOptionaler erwarteter Nettobetrag in Cent (z. B. aus Belegbild/ERP)
erwartetBruttoCentNoOptionaler erwarteter Bruttobetrag in Cent
erwartetZahlbetragCentNoOptionaler erwarteter Zahlbetrag in Cent

Output Schema

NameRequiredDescriptionDefault
okYes
pdfaYes
befundeYes
eingabeTypYes
zugferdXmpYes
fehlerAnzahlYes
warnungAnzahlYes
eingebettetesXmlYes
wawi86919BetroffenYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

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, closed-world behavior, and the description is fully consistent with a pure analysis tool. Beyond that it adds real value by disclosing the comparison logic performed (XMP vs. embedded invoice XML vs. optional reference amounts), though it does not say what happens when none of pfad/xmpXml/pdfBase64 is supplied.

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?

It is a single dense sentence that front-loads the purpose and packs the enumeration into parentheses — no filler words, but the nested list of defect classes makes it heavy to parse. Slightly more structural separation (what it reads / what it compares / what it flags) would help.

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 an output schema, full annotation coverage and 100% schema coverage, most structured burden is already carried, and the description fills in the diagnostic purpose and cross-source comparison. The one real gap is that no required parameter exists among three alternative input sources, yet the description never states that at least one must be provided.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the baseline would be 3; the description lifts this by explaining that the expected-amount parameters act as reference values for total-deviation checks and that embeddedXml is used for cross-checking in XMP-only mode. The mutual exclusivity of the three input sources remains unexplained, which keeps it from a 5.

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 names a specific verb ("Analysiert") and a precise resource (raw PDF/A-3 files or XMP metadata) and enumerates the exact defect classes checked (empty fx:Version/zf:Version, missing pdfaExtension:schemas, missing embedded factur-x.xml/zugferd-invoice.xml, document-type and total mismatches). The scope is narrow enough that confusion with check_bmf_2026_erechnung or check_shopware_storno_math is unlikely, but no sibling is named, so it stops short of full differentiation.

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?

The trigger context is implied clearly: use it when diagnosing JTL-Wawi error WAWI-86919 on ZUGFeRD/Factur-X PDFs. However, it never states when NOT to use it, nor routes the agent to an alternative for related but different checks (e-invoicing rule compliance, GAEB parsing), leaving the selection to inference.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.