Skip to main content
Glama

Create an e-invoice (ZUGFeRD or XRechnung)

create_e_invoice
Read-only

Create 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), and due_date or payment_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: true for 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

NameRequiredDescriptionDefault
langNoLanguage of the form the link opens: "de" (default) or "en".de
invoiceYesThe 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

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior5/5

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

Goes well past the annotations: it discloses the pricing model (one `download_price_cents` per download, VAT included, no account, plans may cover it), that credits are free and unmetered, that Invowerk computes all amounts and only checks format, not tax, and that failures return per-field errors. It also explains the security-relevant URL fragment behaviour ('the invoice travels after its `#`… Invowerk stores nothing'), which substantiates readOnlyHint=true rather than contradicting it.

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?

Front-loads the purpose and the link-return behaviour, then organizes the bulky field guidance into labeled bullets, which is appropriate for a deeply nested schema. A few sentences are redundant, e.g. 'Returns `url` … ' immediately followed by '`url` is the link the person opens', and the form/preview narrative repeats the download cost point.

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?

For a highly nested, 100%-described schema with an output schema, this covers everything an agent needs: which fields make an invoice valid per format, what is computed versus supplied, what the returned link is and how it must be used, and how errors surface. Nothing material is missing.

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

Parameters5/5

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

Schema coverage is 100%, yet the description still adds real meaning the schema cannot: unit_code abbreviations (C62 piece, HUR hour, DAY, KGM, MTR…), the tax_category/rate matrix ('S at 19 or 7; Z, E, AE and K at 0'), that E needs an exemption_reason and AE/K need buyer.vat_id, and the meaning of each type_code (380, 326, 381, 384 needs preceding_invoice, 875–877 construction). It also clarifies which fields XRechnung additionally requires versus ZUGFeRD.

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 concrete verb and resource ('Create a German e-invoice (ZUGFeRD PDF or XRechnung)') plus the output ('Returns a link to download it'), so the agent knows exactly what it produces. It does not name the sibling tools (validate_invoice, render_invoice), even though it overlaps with validation by describing EN 16931 checks, leaving the create-vs-validate boundary to inference.

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 context is strongly implied: 'from details the person states in the chat', 'Works without an API key', and the note that a download costs download_price_cents once per invoice. There is no explicit when-to-use/when-not or routing to alternatives such as validate_invoice or explain_errors when the result is rejected.

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.