Skip to main content
Glama

Entwurf anlegen

create_document

Angebot oder Rechnung als Entwurf anlegen (noch ohne Nummer). Beträge in Euro netto. Empfänger: customer_id (aus list_customers) oder customer_name mit Anschrift.

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": {
      "type": "<type>",
      "lines": "<lines>"
    },
    "name": "create_document"
  }
}

Input Schema

NameRequiredDescriptionDefault
typeYes
linesYes
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_daysNoZahlungsziel in Tagen; ohne Angabe das Standard-Zahlungsziel des Kontos (Einstellungen → Zahlungsbedingungen)
payment_terms_kindNoArt der Zahlungsbedingung, gedruckt als {{dokument.zahlungsbedingungen}}: days (Standard, aus payment_terms_days), immediate, prepayment, prepayment_paid, paid, installments, contract, custom. Ohne Angabe wie bisher aus den Tagen. paid/prepayment_paid lassen den QR-Zahlteil weg, wenn hide_payment_qr nicht mitkommt
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)
payment_terms_detailsNoWas die Art braucht: paid {paid_on, method: cash|card|twint|transfer|other, record_payment}; prepayment_paid {paid_on, record_payment} — record_payment: true bucht beim Ausstellen eine Zahlung über den offenen Betrag (sonst keine); installments {count 2–36, first_due_on, interval_months 1–12}; contract {reference}; custom {text, Platzhalter erlaubt}
customer_address_extraNoAdresszusatz, z. B. «c/o …» — eigene Zeile zwischen Name und Strasse

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / payment_terms_days / description
      Added value: +"Zahlungsziel in Tagen; ohne Angabe das Standard-Zahlungsziel des Kontos (Einstellungen → Zahlungsbedingungen)"
    • addedInput schema / properties / payment_terms_details
      Added value: +{
      +  "description": "Was die Art braucht: paid {paid_on, method: cash|card|twint|transfer|other, record_payment}; prepayment_paid {paid_on, record_payment} — record_payment: true bucht beim Ausstellen eine Zahlung über den offenen Betrag (sonst keine); installments {count 2–36, first_due_on, interval_months 1–12}; contract {reference}; custom {text, Platzhalter erlaubt}",
      +  "type": "object"
      +}
    • addedInput schema / properties / payment_terms_kind
      Added value: +{
      +  "description": "Art der Zahlungsbedingung, gedruckt als {{dokument.zahlungsbedingungen}}: days (Standard, aus payment_terms_days), immediate, prepayment, prepayment_paid, paid, installments, contract, custom. Ohne Angabe wie bisher aus den Tagen. paid/prepayment_paid lassen den QR-Zahlteil weg, wenn hide_payment_qr nicht mitkommt",
      +  "enum": [
      +    "days",
      +    "immediate",
      +    "prepayment",
      +    "prepayment_paid",
      +    "paid",
      +    "installments",
      +    "contract",
      +    "custom"
      +  ],
      +  "type": "string"
      +}
  2. 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)"
  3. 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"
      +}
  4. 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"
  5. 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"
      +}
  6. 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"
  7. First observed

TDQS

B3.3/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false, openWorldHint=false and idempotentHint=false, so duplication of the write semantics earns no credit. The description does add real context beyond that: the object is created without a document number, amounts are net in EUR, card-file fields supplied explicitly override the customer record. It omits consequences an agent needs, notably that a non-idempotent call re-run creates a second draft, and that the result is not yet a valid invoice.

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?

Three short sentences, front-loaded with the core action and the draft-without-number qualifier, then the amount convention, then recipient identification. No filler; the only weakness is that brevity here borders on under-specification for a 30-parameter tool.

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 tool with 30 parameters, nested line items, four enums and no output schema, the description is thin: it never says what comes back (draft id?), what state the document is in, or that finalize_document/send_document are needed to make it an actual numbered document. The schema covers field-level detail but not the workflow context the agent needs to sequence calls correctly.

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?

With 30 parameters at 47% schema coverage, the description carries a real compensating burden and only partly meets it: it clarifies currency/net semantics for the price fields and explains customer_id versus customer_name plus address fields, which is genuine added meaning. The remaining parameters (tax_regime, payment_terms_kind, payment_terms_details, e_invoice_profile, hide_payment_qr, discounts) are documented only in the schema, so the description does not close the coverage gap.

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?

States a specific verb and resource: 'Angebot oder Rechnung als Entwurf anlegen (noch ohne Nummer)', which pins down both the created entity and its draft state. It does not explicitly contrast with update_document, finalize_document or delete_draft, so an agent must infer the draft lifecycle from the sibling names alone.

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: creating a draft is clearly the pre-step to finalize_document, and 'customer_id (aus list_customers)' gives one routing hint. Nothing says when to choose update_document over create, when a draft rather than a finalized document is appropriate, or what to do after creation.

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