Create an e-invoice (ZUGFeRD or XRechnung)
create_e_invoiceCreate a German e-invoice (ZUGFeRD PDF or XRechnung) from details the person states in the chat. Returns a link to download it. Works without an API key.
Invowerk checks the invoice against EN 16931 and the German rules, computes
line amounts, VAT and totals itself, and answers a link to its form, filled
in. The person opens it, sees the preview and downloads the file there. A
download costs download_price_cents once per invoice (VAT included, no
account needed); a plan's monthly e-invoices cover it too.
The invoice takes these details, each as the person states it:
sender: the person's own business: name, street, post_code, city, and vat_id (USt-IdNr.) or tax_number (Steuernummer). An XRechnung also needs contact_name, contact_phone, contact_email and iban.buyer: name, street, post_code, city. An XRechnung also needs electronic_address and buyer_reference (the Leitweg-ID).number,issue_date(YYYY-MM-DD), anddue_dateorpayment_terms.lines: name, quantity, net_price (net, per unit), unit_code (C62 piece, HUR hour, DAY day, KGM, MTR, LTR, MTK, H87), tax_category and tax_rate: S at 19 or 7; Z, E, AE and K at 0. E needs an exemption_reason; AE (reverse charge) and K (intra-EU supply) need buyer.vat_id.output: "zugferd" (a PDF, for businesses) or "xrechnung" (XML, for public bodies).small_business: truefor a Kleinunternehmer (§ 19 UStG): every line without VAT.type_code: 380 invoice (default), 326 partial invoice, 381 credit note, 384 correction (needs preceding_invoice), 875/876/877 construction invoices. Invowerk checks the format, not the tax: the categories, rates and amounts are the person's own statements, and the tool has no default for them.
Returns url, output, number, totals (the amounts Invowerk writes),
findings (warnings of the check) and download_price_cents with
currency. url is the link the person opens, and it works only exactly as
returned: the invoice travels after its #, which browsers never send to a
server, so Invowerk stores nothing. Input that cannot become a valid invoice
fails with an error listing each field and what is wrong.
Credits: free. This tool is not metered.
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": {
"invoice": "<invoice>"
},
"name": "create_e_invoice"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lang | No | Language of the form the link opens: "de" (default) or "en". | de |
| invoice | Yes | The invoice as the person states it: output, number, issue_date, sender (the person's own business), buyer, lines (quantity, net_price, tax_category, tax_rate) and the optional fields. Invowerk computes every amount itself. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||