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

fudaut-erechnung-bmf-mcp

BMF 15.10.2026 & EN 16931 E-Rechnung prüfen

check_bmf_2026_erechnung
Read-onlyIdempotent

Validates XRechnung 3.0 and ZUGFeRD 2.3 invoices locally against EN 16931 and BMF 15.10.2026 construction/SHK rules, including advance payments, credit notes, and discount sign errors.

Instructions

Prüft XRechnung 3.0 und ZUGFeRD 2.3 (UBL 2.1 Invoice/CreditNote, UN/CEFACT CII XML oder hybride PDF/A-3) deterministisch auf EN-16931-Kernarithmetik (BT-106, BT-109, BT-110, BT-112, BT-115), die Sonderregeln des BMF-Schreibens vom 15.10.2026 für Bau-/SHK-Abschlags- und Schlussrechnungen (BT-113 Vorauszahlung, Einzelaufstellung in BT-22/BT-25 oder Anhang BG-24, konkrete Leistungsbeschreibung BT-153/BT-154 bzw. LV-Anhang BG-24) sowie Storno-/Gutschrifts-Typcodes (381/384/389) und Rabatt-Vorzeichenfehler. Rein lokal, keine externen APIs.

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_bmf_2026_erechnung"
  }
}

Input Schema

NameRequiredDescriptionDefault
xmlNoDirekter XML-Inhalt (UBL 2.1 oder UN/CEFACT CII), falls keine Datei über pfad gelesen wird
pfadNoRelativer Dateipfad innerhalb von ERECHNUNG_ORDNER (.xml oder hybrides .pdf)

Output Schema

NameRequiredDescriptionDefault
okYes
summenYes
syntaxYes
befundeYes
typcodeYes
profilIdYes
waehrungYes
quelleTypYes
fehlerAnzahlYes
warnungAnzahlYes
anhaengeAnzahlYes
rechnungsnummerYes
positionenAnzahlYes
ausstellungsdatumYes
istSchlussrechnungYes
istBauOderAbschlagKontextYes
istKorrekturOderGutschriftYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, closed-world and non-destructive, so the safety profile is carried by structured data. The description adds genuinely useful behavior beyond that ("deterministisch" and "Rein lokal, keine externen APIs"), but stays silent on cost, size limits, and how findings are reported, relying on the output schema for the latter.

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?

One front-loaded sentence whose every clause carries rule-set information; nothing is redundant. The density of BT-numbers and BG-references makes it heavy to parse in a single block, so slightly better structuring would help, but no words are wasted.

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?

An output schema exists, so return values need not be explained, and the two-parameter schema is fully documented. What remains thin is the boundary against sibling checks and any note on partial results, but for a deterministic local validator the description is essentially complete.

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% and both parameters (xml, pfad) are documented in the schema, including the precedence rule that pfad is read only when no inline XML is given. The description adds no format hints or syntax constraints beyond echoing that PDF/A-3 and XML are accepted, so the baseline 3 applies.

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?

States a specific verb ("Prüft") plus the exact resources: XRechnung 3.0 / ZUGFeRD 2.3 in UBL, CII or hybrid PDF/A-3, and enumerates the rule families checked (EN 16931 arithmetic BTs, BMF 15.10.2026 construction/SHK rules, type codes 381/384/389, discount sign errors). It is far more specific than the name alone, though it never positions itself against siblings such as check_zugferd_pdfa3_xmp, which likely operates on the same hybrid PDF.

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?

Usage is implied by the enumerated formats and rule sets: call it when a German e-invoice needs deterministic validation. There is no explicit when-not-to-use guidance and no routing statement telling the agent to prefer a sibling for PDF/A-3 XMP or Shopware storno math, so the agent must infer the boundary.

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