Skip to main content
Glama
dennismenken

BuchhaltungsButler MCP-Server

by dennismenken

BWA anfordern

bb_reports_create_bwa
Destructive

Starts generating a BWA (business analysis) report for a date range in BuchhaltungsButler and returns its customer ID for later retrieval.

Instructions

Stößt in BuchhaltungsButler die Erzeugung einer Betriebswirtschaftlichen Auswertung für einen Zeitraum an und liefert deren id_by_customer zurück. Die Berechnung läuft im Hintergrund; abgeholt wird das Ergebnis danach mit bb_reports_get_bwa und report_id_by_customer, das bis zum Abschluss mit error_code 8 antwortet. Ein zweiter Aufruf vor dem Abschluss scheitert mit error_code 12. Dateien kann dieser Endpunkt nicht anfordern, anders als bb_reports_create_sums. Ersetzt die zuvor in BuchhaltungsButler erzeugte Auswertung desselben Typs. Buchungsdaten ändern sich dabei nicht, und die Auswertung lässt sich jederzeit neu erzeugen.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
date_toYesLetzter Tag des Auswertungszeitraums als YYYY-MM-DD, zum Beispiel 2026-03-31. Ein leerer String wird abgelehnt; das Feld stattdessen weglassen. Der Zeitraum schließt diesen Tag ein; für ein vollständiges erstes Quartal also 2026-03-31 und nicht 2026-04-01.
date_fromYesErster Tag des Auswertungszeitraums als YYYY-MM-DD, zum Beispiel 2026-01-01. Ein leerer String wird abgelehnt; das Feld stattdessen weglassen. Der Zeitraum schließt diesen Tag ein.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
dataNo
createdNo
messageNo
successYes
endpointNo
reversalNo
_contract_warningsNo
fields_not_returnedNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.6/5.0
Behavior5/5

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

Annotations declare non-read-only, destructive, non-idempotent, open-world; the description goes well beyond them by explaining the async lifecycle, the exact error codes for pending and duplicate calls, the replacement of the prior analysis of the same type (which explains destruktivHint), and that booking data itself is untouched and the report is regenerable.

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?

Six sentences, but the core action is front-loaded and each additional sentence carries operational value (polling contract, error codes, sibling disambiguation, regeneration semantics). Dense but not padded; a slightly tighter grouping of the error-code facts would be ideal.

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, return values need not be re-explained, and the description covers what matters for correct invocation: async behavior, the polling handoff, failure codes, side effects on existing reports, and the fact that underlying booking data is unchanged.

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 the schema already documents both date fields in detail (format, inclusive endpoints, empty-string rejection), so the baseline of 3 applies. The description adds no parameter-level syntax or format information beyond what the schema provides.

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?

States a specific verb (anstoßen/generate) plus resource (BWA for a period) and specifies what it returns (id_by_customer). It explicitly distinguishes itself from bb_reports_get_bwa (the retrieval step) and bb_reports_create_sums (the file-capable sibling), so an agent can route correctly without opening any schema.

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

Usage Guidelines5/5

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

Describes the full async workflow: this call triggers generation, the result must be polled with bb_reports_get_bwa using report_id_by_customer, polling returns error_code 8 until done, and a premature second call fails with error_code 12. It also names the alternative (bb_reports_create_sums) for file requests, leaving nothing to inference.

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