Skip to main content
Glama
fudaut-datev-extf-mcp

fudaut-datev-extf-mcp

Buchungsstapel schreiben

stapel_schreiben

Creates a new DATEV accounting batch file from bookings in a shared folder, validates the format before saving, and writes only when enabled—without overwriting or posting it as fixed.

Instructions

Schreibt aus Buchungen einen neuen DATEV-Buchungsstapel als Datei im freigegebenen Ordner (Windows-1252, CRLF, Textfelder in Anführungszeichen). Überschreibt nie, schreibt nie festgeschrieben, und nur wenn der Betreiber das Schreiben eingeschaltet hat. Der fertige Stapel wird vor dem Speichern gegen die Formatbeschreibung geprüft; hat er auch nur einen Befund, wird nichts gespeichert. Konten und Steuerschlüssel werden nicht bewertet.

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": {
      "ziel": "<ziel>",
      "beraternummer": "<beraternummer>",
      "mandantennummer": "<mandantennummer>",
      "wjBeginn": "<wjBeginn>",
      "bezeichnung": "<bezeichnung>",
      "sachkontenrahmen": "<sachkontenrahmen>",
      "buchungen": "<buchungen>"
    },
    "name": "stapel_schreiben"
  }
}

Input Schema

NameRequiredDescriptionDefault
zielYesDateiname der neuen Datei; das DATEV-Format verlangt den Anfang EXTF_ und die Endung .csv
wjBeginnYesBeginn des Wirtschaftsjahrs JJJJ-MM-TT; alle Buchungen müssen in diesem Wirtschaftsjahr liegen
buchungenYes
bezeichnungYesBezeichnung des Stapels: höchstens 30 Zeichen aus Buchstaben ohne Umlaute, Ziffern, Punkt, Schrägstrich und Leerzeichen, zum Beispiel Rechnungsausgang 03/2026
beraternummerYesDATEV-Beraternummer des Steuerberaters
mandantennummerYesDATEV-Mandantennummer
sachkontenlaengeNoNummernlänge der Sachkonten; muss zum Mandanten in DATEV passen
sachkontenrahmenYesSachkontenrahmen, zum Beispiel 03 oder 04

Output Schema

NameRequiredDescriptionDefault
bytesYes
dateiYes
sollCentYes
buchungenYes
habenCentYes
festgeschriebenYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.7/5.0
Behavior5/5

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

Beyond the annotations it discloses atomic all-or-nothing behavior on validation failure, the no-overwrite policy, the write-enable gate, and the exact output encoding (Windows-1252, CRLF, quoted text fields). These are consistent with destructiveHint=false and idempotentHint=false, since each call creates a new file and never replaces existing data.

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?

Three sentences, each carrying distinct information: format and target, write constraints, validation gate. The most consequential fact (nothing is saved if validation fails) is stated plainly with no filler.

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?

For a mutating, non-idempotent file-writing tool with a rich output schema, the description covers encoding, overwrite policy, permission gating, and failure semantics. Return values need not be explained because an output schema exists.

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 coverage is 88%, so the baseline is 3; the description adds real meaning by stating that accounts and tax keys are not evaluated, which tells the agent that konto and buSchluessel are passed through unchecked. It does not add further detail on required identifiers like beraternummer or mandantennummer, which the schema already covers.

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

Purpose5/5

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

The description opens with a concrete verb and resource: it writes a new DATEV Buchungsstapel file from Buchungen into the shared folder. The reference to pre-save validation against the format spec and to accounts/tax keys not being evaluated clearly separates it from stapel_lesen and stapel_pruefen.

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

Usage Guidelines4/5

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

It gives explicit usage conditions: only when the operator has enabled writing, never overwriting, never writing finalized stacks, and aborting entirely if validation finds anything. What is missing is an explicit pointer to alternatives, e.g. using stapel_pruefen first or stapel_lesen for existing files.

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