Skip to main content
Glama

InkVoice — XRechnung & E-Invoicing

Create a ZUGFeRD / Factur-X invoice

create_zugferd
Read-only

Builds a ZUGFeRD 2.x / Factur-X hybrid invoice from the same details create_xrechnung takes, and returns it as a PDF file.

A hybrid is one invoice stated twice in one file: a PDF/A-3 document a person reads, carrying the same invoice inside it as EN 16931 XML a machine books. This is the format private-sector German B2B buyers generally want, where XRechnung is what public bodies require. If the recipient is a public authority and gave you a Leitweg-ID, you want create_xrechnung instead.

The embedded XML declares plain EN 16931 — the profile ZUGFeRD calls COMFORT — not the XRechnung CIUS, because that CIUS is a statement about public-sector procurement.

Validation is identical to create_xrechnung, except that the IBAN is optional here (EN 16931 makes BG-16 optional): the same EN 16931 rules are applied before anything is built, and a rejected call names the rules and business terms that failed.

What this does NOT do:

  • The result is a binary PDF returned as an attachment. It is not text and there is nothing useful to read in it — do not try to quote or summarise its contents. Offer it to the user as a file.

  • It does not validate against veraPDF or the Mustangproject validator. The document is built to be valid PDF/A-3 with the required Factur-X metadata, but that is our reading rather than a validator's verdict.

  • It handles ONE tax rate and one tax category for the whole invoice, exactly as create_xrechnung does.

  • It does not send the invoice anywhere, and there is no Peppol.

  • There is no logo and no custom styling. The PDF uses the default invoice layout.

Needs a personal access token (Authorization: Bearer inkv_...): without one, InkVoice refuses the call.

Nothing is stored: no invoice record, no retained personal data.

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_zugferd"
  }
}

Input Schema

NameRequiredDescriptionDefault
invoiceYesThe invoice to turn into a ZUGFeRD / Factur-X document.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / invoice / properties / deliveryDate
      Added value: +{
      +  "default": null,
      +  "format": "date",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
  2. Added

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only supply readOnlyHint/openWorldHint; the description adds far more: validation happens before building and rejects with named rules and business terms, IBAN is optional here, one tax rate/category only, no sending/no Peppol, no logo or styling, and bearer-token auth is required. It also discloses the output is binary and must be handed to the user as a file rather than read — behavior no structured field conveys. Nothing contradicts readOnlyHint, since it explicitly says nothing is stored.

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 purpose, then a clearly labeled 'What this does NOT do' block — structure is excellent and scannable. A few sentences are longer than needed (the profile/CIUS explanation, the veraPDF caveat), but almost none are filler.

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 nested-object tool with no output schema, it covers everything the caller needs: what is produced (binary PDF/A-3 attachment), how to present it, auth requirements, what is validated and what is not, invoice-model limits, and that nothing is persisted.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, but the description still adds meaning the schema cannot: the invoice object is 'the same details create_xrechnung takes', and IBAN is optional here because EN 16931 makes BG-16 optional. It does not, however, explain fields unique to this path (buyerReference, taxExemptionReason, seller/buyer contact fields).

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 ('Builds a ZUGFeRD 2.x / Factur-X hybrid invoice... returns it as a PDF') and immediately distinguishes it from the sibling create_xrechnung by format and audience (private-sector B2B vs public bodies). The embedded-profile detail (COMFORT plain EN 16931, not the XRechnung CIUS) makes the distinction unambiguous.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives an explicit routing rule: if the recipient is a public authority with a Leitweg-ID, use create_xrechnung instead. It also names validate_einvoice-adjacent exclusions ('does not validate against veraPDF or the Mustangproject validator') so the agent knows this is not a validation tool.

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