Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
RAPIDAPI_KEYYesYour RapidAPI key (free tier available at https://rapidapi.com/flamegoalhunter/api/german-e-rechnung-zugferd-and-xrechnung)

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

Deterministic German B2B E-Rechnung compliance tools (EN 16931, KoSIT XRechnung 3.0.2, DATEV ZUGFeRD 2.5 PDF/A-3b, GiroCode SEPA QR, and guarded hybrid parsing).

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": false
}

Tools

Functions exposed to the LLM to take actions

NameDescription
generate_erechnungA

Deterministically generate a brand-new German E-Rechnung (ZUGFeRD 2.5 PDF/A-3b or KoSIT XRechnung 3.0.2 XML) from structured JSON (<300ms, exact BigDecimal math & MOD-97 IBAN verification). Use when creating an invoice from structured JSON without an existing PDF; use embed_zugferd_pdf if you already have a visual PDF, or magic_convert_pdf if you only have an unstructured PDF. Returns JSON containing format, filename, mimeType, and either xml (UTF-8 CII XML) or pdfBase64 (Base64 PDF/A-3b).

validate_erechnungA

Validate a ZUGFeRD PDF/A-3b or XRechnung 3.0 XML against official EN 16931 XSD, KoSIT German Business Rules (BR-DE-*), and veraPDF ISO 19005-3. Use to check statutory compliance and diagnose rule violations; use parse_erechnung instead when you want to extract invoice fields and line items. Returns JSON with valid (boolean), profile, format, pdfaCompliant, errors[], and warnings[] (each with rule_id, field, message, and human_hint).

parse_erechnungA

Extract structured invoice header, seller, buyer, bank IBAN, tax breakdown, and line items from a ZUGFeRD PDF, XRechnung XML, or legacy flat PDF. Extracts embedded XML deterministically in ~20ms (source='NATIVE_XML') or falls back to guarded extraction on flat PDFs (source='AI_EXTRACTED'). Use for data extraction (Empfangspflicht); use validate_erechnung instead for strict KoSIT/veraPDF compliance checks. Returns JSON with source, math_verified, iban_valid, invoiceNumber, issueDate, currency, seller, buyer, items[], netTotal, vatTotal, and grossTotal.

embed_zugferd_pdfA

Deterministically upgrade an existing visual PDF plus structured invoice JSON into an ISO 19005-3 PDF/A-3b ZUGFeRD 2.5 hybrid invoice with embedded factur-x.xml. Use when you already have BOTH a custom-designed PDF layout and structured invoice JSON; use generate_erechnung to render a new PDF from JSON alone, or magic_convert_pdf when you only have an unstructured PDF without JSON. Returns JSON with format ('ZUGFERD'), profile, filename, mimeType ('application/pdf'), sizeBytes, and pdfBase64 (Base64-encoded ZUGFeRD PDF/A-3b).

magic_convert_pdfA

Convert a flat, unstructured legacy PDF invoice (max 5 pages) into a compliant ZUGFeRD 2.5 PDF/A-3b using guarded AI extraction verified by deterministic BigDecimal math and ISO 13616 MOD-97 IBAN checks. Use ONLY when you have a flat PDF and no structured JSON; prefer embed_zugferd_pdf when structured JSON is available, or generate_erechnung when creating an invoice from scratch. Returns JSON with format ('ZUGFERD'), profile, filename, mimeType ('application/pdf'), sizeBytes, and pdfBase64 (or an actionable validation error if math/IBAN guardrails fail).

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A4.5/5.0

Scored across 5 tools

Disambiguation5/5

Each tool has a distinct action-object pair: create from JSON (generate_erechnung), compliance check (validate_erechnung), field extraction (parse_erechnung), attach XML to an existing PDF (embed_zugferd_pdf), and AI-based legacy conversion (magic_convert_pdf). The descriptions explicitly disambiguate the near-overlapping create/embed/convert trio by stating the input preconditions and cross-referencing the sibling tool to use instead.

Naming Consistency4/5

Four tools follow a clean verb_noun pattern (generate_/validate_/parse_/embed_ + domain noun), making intent readable at a glance. The outlier is magic_convert_pdf, whose whimsical 'magic' prefix breaks the pattern and is the only name not self-describing in the same register.

Tool Count5/5

Five tools map cleanly onto the distinct input scenarios of German e-invoicing (JSON only, JSON + visual PDF, flat PDF only, plus validate and parse), with no redundancy or filler. The surface is tightly scoped to the domain and every tool earns its place.

Completeness4/5

The lifecycle is well covered: creation in both XRechnung and ZUGFeRD formats, validation against EN 16931/KoSIT/veraPDF, extraction, and two upgrade paths for existing PDFs. Minor gaps remain, such as no direct XRechnung↔ZUGFeRD format conversion, no batch operation, and no correction/regeneration path for a validated-but-failing invoice.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues