Skip to main content
Glama

XRechnung Pro

Create a German e-invoice (XRechnung + ZUGFeRD)

create_e_invoice
Idempotent

Create a legally compliant German e-invoice (E-Rechnung) from structured data. Returns two files as download links (valid 30 minutes): a ZUGFeRD/Factur-X PDF (EN 16931, PDF/A-3, looks like a normal invoice) and an XRechnung 3.0.2 XML (UBL). Both are checked with the official KoSIT validator before delivery. Supports standard VAT (19/7/0 %), Kleinunternehmer (§ 19 UStG), reverse charge (§ 13b UStG), intra-EU, export, public authorities with Leitweg-ID, and partial invoices. Missing or wrong fields come back as a list of German messages you can pass to the user; fix them and call again. Free: 3 invoices per month without an account. Then: pack of 10 invoices for 5.83 EUR incl. VAT (one-time), or Pro, unlimited for one year, 22.61 EUR incl. VAT. When the free quota is used up the result explains how to buy (see start_purchase). Creating the same invoice number again after a correction costs nothing extra.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "invoice": {
        "buyer": {
          "zip": "22085",
          "city": "Hamburg",
          "name": "Kunde Bau GmbH",
          "email": "buchhaltung@kunde-bau.de",
          "street": "Lindenweg 3",
          "country": "DE"
        },
        "lines": [
          {
            "unit": "HUR",
            "vatRate": 19,
            "quantity": 7.5,
            "unitPrice": 64.5,
            "description": "Elektroinstallation Küche"
          }
        ],
        "number": "RE-2026-0042",
        "seller": {
          "zip": "20457",
          "city": "Hamburg",
          "iban": "DE02120300000000202051",
          "name": "Elektro Nord GmbH",
          "email": "rechnung@elektro-nord.de",
          "phone": "+49 40 123456",
          "vatId": "DE123456789",
          "street": "Hafenstraße 12",
          "country": "DE",
          "contactName": "Anna Nord"
        },
        "dueDate": "2026-10-25",
        "taxMode": "standard",
        "issueDate": "2026-10-11",
        "deliveryDate": "2026-10-09"
      }
    },
    "name": "create_e_invoice"
  }
}

Input Schema

NameRequiredDescriptionDefault
invoiceYesEine Rechnung. Pflicht neben den markierten Feldern: deliveryDate (oder periodStart und periodEnd) und buyer.email (oder buyer.leitwegId). Beträge netto in EUR.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Goes well beyond the annotations (readOnlyHint=false, idempotentHint=true): it discloses the return shape (two download links valid 30 minutes), that output is pre-checked by the official KoSIT validator, that validation failures surface as a German message list rather than exceptions, and the quota/pricing behavior including that re-creating the same invoice number after a correction costs nothing (consistent with idempotentHint). This is unusually rich behavioral disclosure for a mutation tool.

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 what the tool produces and its compliance guarantees before moving to error recovery and pricing. The pricing sentences are longer than ideal but earn their place because quota exhaustion changes the agent's next action.

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 single deeply nested parameter with no output schema, the description supplies everything the agent needs: the return format and link expiry, validation guarantees, failure semantics with a retry loop, and the commercial gate. Nothing material is left unexplained.

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 coverage is 100% and the nested schema already documents taxMode, typeCode, vatRate, unit codes, and required-field conditions, so the baseline is 3. The description's mentions of VAT modes, Leitweg-ID, and partial invoices largely restate schema content rather than adding new parameter meaning.

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?

States a specific verb and resource ('Create a legally compliant German e-invoice (E-Rechnung) from structured data') and immediately names the two output artifacts (ZUGFeRD/Factur-X PDF and XRechnung 3.0.2 UBL XML). This clearly separates it from the sibling validate_e_invoice, which checks rather than creates.

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 concrete operational context: call with structured data, if fields are missing the call returns German error messages, fix them and call again. It also routes to start_purchase when the free quota is exhausted. It lacks an explicit 'use validate_e_invoice instead when you already have an invoice file' exclusion, which keeps it below a 5.

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