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

fudaut-erechnung-bmf-mcp

Shopware 6 B2B Storno-, Gutschrifts- & Rundungspruefung

check_shopware_storno_math
Read-onlyIdempotent

Audits Shopware 6 credit-note and storno arithmetic for sign reversals, negative unit prices, missing reference invoices, and gross-to-net rounding drift over EUR 0.01.

Instructions

Prüft B2B-Gutschriften (381), Rechnungskorrekturen (384), Stornos, Positionen und Dokument-/Positionsnachlaesse (BG-20/BG-21, BG-27/BG-28) in UBL 2.1 und UN/CEFACT CII auf Vorzeichenumkehr, negative Einzelpreise (BR-27), fehlende Bezugsrechnungen (BT-25) und Brutto-zu-Netto-Rundungsdrift > 0,01 EUR.

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

Input Schema

NameRequiredDescriptionDefault
xmlNoDirekter XML-Inhalt (UBL 2.1 oder UN/CEFACT CII)
pfadNoRelativer Pfad zur Rechnungs-/Gutschrifts-XML-Datei im freigegebenen Ordner

Output Schema

NameRequiredDescriptionDefault
okYes
summenYes
syntaxYes
befundeYes
typcodeYes
waehrungYes
fehlerAnzahlYes
warnungAnzahlYes
rechnungsnummerYes
bezugsrechnungenYes
positionenPruefungYes
maxRundungsdriftCentYes
rundungsfehlerAnzahlYes
vorzeichenfehlerAnzahlYes
istStornoOderGutschriftYes

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 readOnlyHint=true, idempotentHint=true, destructiveHint=false and openWorldHint=false, so safety is covered structurally. The description adds real behavioral substance beyond that: it names the four failure classes it detects (sign inversion, negative unit prices under BR-27, missing BT-25 reference invoices, gross-to-net rounding drift) and quantifies the tolerance at 0.01 EUR. It does not state whether findings are reported as warnings versus errors, but the output schema can carry that.

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?

A single front-loaded sentence with the verb first and no filler; every clause names a distinct check or document type. The heavy compound-noun packing and parenthetical rule codes make it dense, but nothing is redundant.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With an output schema present, annotations covering the safety profile, and both parameters fully described in schema, the description only needs to convey scope and check semantics — which it does comprehensively. The remaining ambiguity (xml versus pfad) is a parameter-level detail the schema already resolves for the agent.

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' as inline content, 'pfad' as a relative path in the approved folder) are documented there. The description contributes nothing about the parameters, notably not explaining that inline XML and a file path are alternative inputs for the same document. 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?

The description opens with a specific verb ('Prüft') and enumerates exactly the artifacts covered: B2B credit notes (381), invoice corrections (384), stornos and document/line-level allowances (BG-20/BG-21, BG-27/BG-28) in UBL 2.1 and CII. The resources and rule codes are concrete enough that an agent can distinguish this from a generic e-invoice rule check. It stops short of naming any sibling tool, so the differentiation is 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?

Usage is only implied by the subject matter: an agent can infer it should be called when a credit note, storno or correction document must be validated for sign handling. There is no explicit statement of when to prefer this over check_bmf_2026_erechnung, nor any exclusion such as 'only for Shopware 6 export formats'. No prerequisites or ordering guidance are given.

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