Skip to main content
Glama

ZUGFeRD & XRechnung E-Invoice Generator API - PDF/A

zugferd_invoice_generator
Read-onlyIdempotent

Generate compliant German EN 16931 e-invoices from structured JSON: ZUGFeRD / Factur-X hybrid PDF/A-3b with embedded factur-x.xml, XRechnung 3.0 UN/CEFACT CII XML (with Leitweg-ID check digit validation), or both in one call. Computes per-line net, VAT breakdown by rate, IBAN/BIC validation, reverse charge, Kleinunternehmer (§ 19 UStG), and intra-EU exemptions. Deterministic pure Python, zero AI, nothing stored. Free: 5 calls/day per IP. Paid: Radar API key (from €15/mo at https://radarbg.com/pricing#starter via X-API-Key) or $0.02/call via x402 at https://radarbg.com/x402/zugferd-invoice-generator.

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": {
      "buyer": {
        "city": "Muenchen",
        "name": "Kunde Industrie AG",
        "vatId": "DE987654321",
        "street": "Marktplatz 5",
        "country": "DE",
        "postcode": "80331"
      },
      "items": [
        {
          "unit": "h",
          "vatRate": 19,
          "quantity": 8,
          "unitPrice": 120,
          "description": "ERP Integration Consulting"
        },
        {
          "unit": "pcs",
          "vatRate": 19,
          "quantity": 1,
          "unitPrice": 480,
          "description": "Annual API License"
        }
      ],
      "format": "zugferd",
      "seller": {
        "bic": "BYLADEM1001",
        "city": "Berlin",
        "iban": "DE02120300000000202051",
        "name": "Muster Consulting GmbH",
        "email": "billing@muster.example",
        "vatId": "DE123456789",
        "street": "Hauptstrasse 12",
        "country": "DE",
        "postcode": "10115"
      },
      "dueDate": "2026-12-31",
      "taxMode": "S",
      "currency": "EUR",
      "language": "de",
      "invoiceDate": "2026-12-01",
      "invoiceNumber": "RE-2026-0142"
    },
    "name": "zugferd_invoice_generator"
  }
}

Input Schema

NameRequiredDescriptionDefault
buyerYesBuyer details: name, street, postcode, city, country (2-letter), vatId, email, reference (Leitweg-ID for XRechnung).
itemsYesLine items (1-200): each {description, quantity, unitPrice, unit?, vatRate?}.
notesNoOptional free-text note printed on the invoice.
formatNoOutput format: zugferd (PDF/A-3 + embedded XML), xrechnung (XRechnung 3.0 CII XML), or both.zugferd
sellerYesSeller details: name, street, postcode, city, country (2-letter), vatId, email, contact, phone, iban, bic.
dueDateNoOptional payment due date in YYYY-MM-DD.
taxModeNoVAT mode: S (standard), E19 (small business § 19 UStG), AE (reverse charge), K (intra-EU supply), G (export).S
currencyNo3-letter ISO currency code (EUR, CHF, USD, GBP, PLN, CZK, DKK, SEK, NOK, HUF, RON, BGN).EUR
languageNoPDF label language: de or en.de
invoiceDateNoInvoice issue date in YYYY-MM-DD (defaults to today).
deliveryDateNoDelivery or service date in YYYY-MM-DD (defaults to invoiceDate).
invoiceNumberYesUnique invoice number, e.g. RE-2026-001.
defaultVatRateNoDefault VAT percentage when a line omits vatRate (0-50).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and openWorldHint, so the description earns credit for adding material beyond them: deterministic pure-Python execution, no AI involvement, and 'nothing stored' (important given readOnlyHint on a document-generating tool). It also discloses concrete operational constraints — 5 calls/day per IP free, then either an X-API-Key paid plan or $0.02/call via x402 — which an agent needs to know before invoking. It falls short of 5 only because it does not say how the generated file is returned.

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-loaded with the capability and artifact types, then the computation features, then access terms — a sensible ordering with no filler. It is dense and somewhat run-on, with the pricing URLs and plan detail packed into the final sentence, but every clause carries actionable information.

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

Completeness3/5

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

For a 13-parameter tool with nested seller/buyer/items objects, the description plus a fully documented schema covers inputs well. With no output schema, though, the description should explain the response shape — whether the PDF/XML comes back as a URL, base64 payload, or JSON envelope — and that is absent, leaving a real gap for a file-producing tool.

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 description coverage is 100%, so the schema already carries full parameter documentation, establishing a baseline of 3. The description adds useful computational context (per-line net calculation, VAT breakdown by rate, IBAN/BIC validation, Leitweg-ID check digit validation) that explains what the tool does with those parameters, but it does not deepen any individual field's meaning beyond the schema.

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 ('Generate compliant German EN 16931 e-invoices') and enumerates the exact artifacts produced: ZUGFeRD/Factur-X hybrid PDF/A-3b with embedded factur-x.xml and XRechnung 3.0 UN/CEFACT CII XML. The word 'Generate' plus the standards named make it distinguishable from reader/validator siblings in the catalog without opening any schema.

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 implied rather than stated: the format enum ('zugferd, xrechnung, or both in one call') tells the agent how to route within the tool, and the pricing/free-tier sentence signals an access prerequisite. However, it never says when to prefer this over siblings such as xrechnung_validator or e_invoice_reader, nor does it state that validation-only tasks should go elsewhere.

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