Skip to main content
Glama

Entwurf ändern

update_document
Idempotent

Einen Entwurf ändern. Nur übergebene Felder werden geändert; lines ersetzt alle Positionen.

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": {
      "id": "<id>"
    },
    "name": "update_document"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesBeleg-ID
linesNo
subjectNo
intro_textNo
tax_regimeNoOhne Angabe: Standard des Kontos (Kleinunternehmer / nicht MWST-pflichtig oder Regelbesteuerung). de_domestic = Inland mit Steuer, auch in der Schweiz (MWST); eu_b2b_rc nicht für Schweizer Konten
customer_idNoKunde aus list_customers: Name und Anschrift kommen aus der Kartei, übergebene Felder haben Vorrang
valid_untilNonur Angebote
closing_textNo
service_dateNo
customer_cityNo
customer_nameNo
customer_emailNo
buyer_referenceNoLeitweg-ID / Käuferreferenz (XRechnung)
customer_numberNo
customer_streetNo
customer_vat_idNo
hide_payment_qrNotrue: Vorgabe dieser Rechnung ist «ohne QR-Zahlteil» (Schweiz; der Zahlteil ist ein Anhang, bei PDF und Versand mit payment_slip übersteuerbar) bzw. kein GiroCode im Beleg (EUR)
customer_countryNoISO-3166 Alpha-2, z. B. DE
discount_percentNoGesamtrabatt in Prozent auf alle Positionen
e_invoice_profileNo
cash_discount_daysNoSkontofrist in Tagen ab Rechnungsdatum
payment_terms_daysNo
prices_include_vatNotrue: Positionspreise sind inkl. Steuer (brutto), das Total ist genau ihre Summe, die Steuer wird je Satz herausgerechnet. Ohne Angabe: Standard des Kontos (neuer Beleg, ab Werk netto) bzw. unverändert
service_period_endNo
customer_is_businessNo
customer_postal_codeNo
cash_discount_percentNoSkonto in Prozent (nur Rechnungen, zusammen mit cash_discount_days)
customer_address_extraNoAdresszusatz, z. B. «c/o …» — eigene Zeile zwischen Name und Strasse

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / hide_payment_qr / description
      Previous value: -"true: diese Rechnung druckt keinen QR-Zahlteil (Schweiz) bzw. GiroCode"New value: +"true: Vorgabe dieser Rechnung ist «ohne QR-Zahlteil» (Schweiz; der Zahlteil ist ein Anhang, bei PDF und Versand mit payment_slip übersteuerbar) bzw. kein GiroCode im Beleg (EUR)"
  2. Changed2 schema fields changed
    • addedInput schema / properties / customer_address_extra
      Added value: +{
      +  "description": "Adresszusatz, z. B. «c/o …» — eigene Zeile zwischen Name und Strasse",
      +  "type": "string"
      +}
    • addedInput schema / properties / hide_payment_qr
      Added value: +{
      +  "description": "true: diese Rechnung druckt keinen QR-Zahlteil (Schweiz) bzw. GiroCode",
      +  "type": "boolean"
      +}
  3. Changed1 schema field changed
    • changedInput schema / properties / prices_include_vat / description
      Previous value: -"true: Positionspreise sind inkl. Steuer (brutto), das Total ist genau ihre Summe, die Steuer wird je Satz herausgerechnet. Ohne Angabe: netto (neuer Beleg) bzw. unverändert"New value: +"true: Positionspreise sind inkl. Steuer (brutto), das Total ist genau ihre Summe, die Steuer wird je Satz herausgerechnet. Ohne Angabe: Standard des Kontos (neuer Beleg, ab Werk netto) bzw. unverändert"
  4. Changed2 schema fields changed
    • changedInput schema / properties / lines / items / properties / unit_price / description
      Previous value: -"Netto-Einzelpreis in der Währung des Kontos (EUR; Schweiz: CHF)"New value: +"Einzelpreis in der Währung des Kontos (EUR; Schweiz: CHF): netto, mit prices_include_vat inkl. Steuer"
    • addedInput schema / properties / prices_include_vat
      Added value: +{
      +  "description": "true: Positionspreise sind inkl. Steuer (brutto), das Total ist genau ihre Summe, die Steuer wird je Satz herausgerechnet. Ohne Angabe: netto (neuer Beleg) bzw. unverändert",
      +  "type": "boolean"
      +}
  5. Changed4 schema fields changed
    • changedInput schema / properties / lines / items / properties / unit_price / description
      Previous value: -"Netto-Einzelpreis in Euro"New value: +"Netto-Einzelpreis in der Währung des Kontos (EUR; Schweiz: CHF)"
    • addedInput schema / properties / lines / items / properties / vat_rate / description
      Added value: +"Steuersatz des Landes: DE 19/7/0, AT 20/13/10/0, CH 8.1/3.8/2.6/0. Ohne Angabe: Normalsatz des Landes"
    • changedInput schema / properties / lines / items / properties / vat_rate / enum
      Previous value: -[
      -  0,
      -  7,
      -  19
      -]New value: +[
      +  0,
      +  2.6,
      +  3.8,
      +  7,
      +  8.1,
      +  10,
      +  13,
      +  19,
      +  20
      +]
    • changedInput schema / properties / tax_regime / description
      Previous value: -"Ohne Angabe: Standard des Kontos (Kleinunternehmer oder Regelbesteuerung)"New value: +"Ohne Angabe: Standard des Kontos (Kleinunternehmer / nicht MWST-pflichtig oder Regelbesteuerung). de_domestic = Inland mit Steuer, auch in der Schweiz (MWST); eu_b2b_rc nicht für Schweizer Konten"
  6. First observed

TDQS

C2.9/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, idempotentHint=true and destructiveHint=false, so the description's job is to add patch semantics — which it does well: "Nur übergebene Felder werden geändert" establishes merge-style partial update, and "lines ersetzt alle Positionen" warns that the line array is wholesale replacement rather than a merge. It does not state that the document must still be in draft state or what happens on invalid state, so it is not complete.

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?

Two short, front-loaded sentences with no filler; the patch rule and the lines-replacement caveat are each stated once. It is efficient but arguably under-sized given 28 parameters, which edges it off a 5.

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

Completeness2/5

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

For a 28-parameter mutation on invoices/quotes with no output schema and thin schema coverage, two sentences cannot cover what an agent needs: state preconditions, defaults for tax/VAT behaviour, or the effect of replacing lines. It covers the single most important side effect but leaves the bulk of the tool's complexity unaddressed.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With 28 parameters and only 43% schema description coverage, the description must compensate, but it only explains one parameter-family behaviour ("lines ersetzt alle Positionen"). Critical details such as how customer_id precedence works, how tax_regime/prices_include_vat defaults resolve, or how id is resolved are left entirely to the schema or undocumented.

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

Purpose3/5

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

The first sentence "Einen Entwurf ändern" is essentially a restatement of the title "Entwurf ändern", so it adds little beyond the name. It does convey the key scoping word "Entwurf" (draft), which implicitly separates it from finalize_document, send_document and cancel_invoice, but it never states which document types (Angebot, Rechnung, Lieferschein) are covered, leaving differentiation from update_contract/update_customer largely to the schema.

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

Usage Guidelines2/5

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

There is no explicit when-to-use or when-not guidance and no named alternative such as finalize_document for documents that are no longer drafts. The only usage signal is the implied constraint from "Entwurf" that this applies to drafts, which an agent must infer rather than being told.

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