Skip to main content
Glama

Rechnungslotse: deutsche E-Rechnung

Leistung auf einen Kunden schreiben (Konto nötig)

leistung_erfassen

Schreibt eine erbrachte Leistung auf einen Kunden – Stunden, Material, Pauschalen, Fahrtkosten. Sie bleibt offen, bis sie abgerechnet wird. Preis und Steuersatz kommen aus dem Artikel, wenn einer genannt ist; mitgegebene Werte haben Vorrang. Für mehrere Posten dieses Werkzeug MEHRFACH aufrufen – es gibt bewusst keinen Stapel, damit jeder Posten einzeln zurückgemeldet wird.

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": {
      "datum": "<datum>",
      "bezeichnung": "<bezeichnung>",
      "menge": "<menge>"
    },
    "name": "leistung_erfassen"
  }
}

Input Schema

NameRequiredDescriptionDefault
datumYesTag der LEISTUNG (nicht der Erfassung), JJJJ-MM-TT.
kundeNoName des Kunden, genau wie in der Kartei. Alternativ kunde_id aus kunden_suchen.
mengeYesDezimal, z. B. 1.5 für anderthalb Stunden.
notizNoOptional: erscheint nur im Leistungsnachweis, nicht auf der Position.
artikelNoName aus der Artikelliste – liefert Preis, Einheit und Steuersatz.
einheitNostunde, tag, stueck, pauschale, meter, m2, kg, liter, km. Ohne Angabe: Stunde.
kunde_idNoKennung aus kunden_suchen – eindeutiger als der Name.
bezeichnungYesWas geleistet wurde. Steht später auf der Rechnung.
einzelpreisNoNetto in Euro. Ohne Angabe der Preis des Artikels.
ust_prozentNo19, 7 oder 0, in der Land- und Forstwirtschaft nach § 24 UStG 7.8 oder 5.5. Ohne Angabe 19 bzw. der Satz des Artikels.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / ust_prozent / description
      Previous value: -"19, 7 oder 0. Ohne Angabe 19 bzw. der Satz des Artikels."New value: +"19, 7 oder 0, in der Land- und Forstwirtschaft nach § 24 UStG 7.8 oder 5.5. Ohne Angabe 19 bzw. der Satz des Artikels."
  2. First observed

TDQS

A4.2/5.0
Behavior4/5

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

readOnlyHint=false already signals a write, and the description adds real context beyond that: the entry stays open until billed, and article-derived price/tax are overridden by explicitly supplied values. The no-batch design with per-item results is disclosed too. It stops short of permission requirements, duplicate handling, or what the returned record looks like.

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?

Four short sentences, front-loaded with the action, then persistence semantics, then price resolution, then the invocation pattern. Every sentence carries distinct information and the emphasis on MEHRFACH is earned because it changes how an agent should call the tool.

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?

For a ten-parameter mutation with no output schema, the description covers purpose, persistence state, default resolution order and invocation strategy, which is enough to call it correctly. Minor gaps are auth/account specifics hinted at only in the title and the shape of the per-item confirmation.

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%, so the schema already documents all ten parameters including units, tax rates and the article fallback. The description restates the price/tax precedence rule and the item kinds, but adds no syntax or constraint beyond what the schema provides, so the baseline 3 applies.

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?

Specific verb plus resource: it writes a delivered service ('Leistung') onto a customer, and enumerates the item types it covers (Stunden, Material, Pauschalen, Fahrtkosten). The clause 'Sie bleibt offen, bis sie abgerechnet wird' also positions it clearly against billing-oriented siblings such as leistungen_abrechnen.

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?

Gives an explicit operational rule: call the tool multiple times per line item because there is deliberately no batch mode, so each item is reported back individually. It does not, however, state when to prefer this over related tools like leistungen_offen or leistungen_abrechnen, so routing guidance is only partial.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources