Skip to main content
Glama
pdf4me
by pdf4me

create_zugferd_invoice

Generate ZUGFeRD e-invoices from XML, JSON, or CSV data, outputting PDF with embedded XML or XML only, with configurable conformance levels and language.

Instructions

Create a ZUGFeRD e-invoice using PDF4me CreateZugferdInvoice API (POST /api/v2/CreateZugferdInvoice). Supports inputFormat XML/JSON/CSV, outputMode XmlWithPdf or XmlOnly, conformance level, and language. For XmlWithPdf, provide source PDF via source_pdf_path (docContent/document.Name are derived from the file). Saves output as PDF or XML and returns output metadata.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
languageNoOptional localization language code (e.g. de, en, fr).
output_dirNoDirectory to save the output file (required).
output_modeNoXmlWithPdf (PDF with embedded XML) or XmlOnly.XmlWithPdf
input_formatNoXML, JSON, or CSV.XML
source_pdf_pathNoLocal source PDF path for XmlWithPdf (used to derive docContent and document.Name).
zugferd_versionNoZUGFeRD version (currently only "1.0" per schema).1.0
invoice_csv_dataNoLocal CSV file path when input_format is CSV (file is base64-encoded).
invoice_xml_dataNoLocal XML file path when input_format is XML (file is base64-encoded).
output_file_nameNoOutput file name (required).
conformance_levelNoBASIC, COMFORT, or EXTENDED.BASIC
invoice_json_dataNoLocal JSON file path when input_format is JSON (file is base64-encoded).
render_invoice_on_pdfNoApplies to XmlWithPdf output mode.
Behavior3/5

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

With no annotations, the description carries the transparency burden. It discloses the API call, output saving, and that docContent/document.Name are derived from the file. It does not mention authentication, side effects like overwriting, or error conditions, but it provides reasonable insight into the tool's behavior.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three sentences, front-loaded with the core purpose and API, followed by key usage caveats and output behavior. Every sentence adds value with no fluff or repetition of schema details.

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?

The description covers the main workflow but has gaps: it does not explicitly state that invoice_xml_data is required for XML input, invoice_json_data for JSON, etc., nor does it describe the structure of the returned metadata. With 12 parameters and no output schema or annotations, more detail would be needed for full completeness.

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. The description adds meaningful relationships: it explains that source_pdf_path is used to derive docContent/document.Name for XmlWithPdf mode, and clarifies inputFormat/outputMode options. This goes beyond the schema's per-parameter descriptions, earning a 4.

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?

The description clearly states the tool creates a ZUGFeRD e-invoice via a specific API endpoint, which is a specific verb+resource action. It distinguishes this tool from sibling tools (none of which mention e-invoice creation) and gives a precise scope.

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?

Provides clear context for when to use the tool: for creating ZUGFeRD e-invoices with options for input format, output mode, and conformance level. It also gives a concrete usage requirement for XmlWithPdf (provide source_pdf_path). However, it does not explicitly mention alternatives or exclude other tools, though the specialized nature makes this less critical.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/pdf4me/pdf4me-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server