Skip to main content
Glama

Create e-invoice

create_einvoice

Creates an XRechnung (CII or UBL XML) or a ZUGFeRD PDF/A-3 from invoice data following EN 16931; totals and VAT are recomputed and must match, and the result passes the official validator. The document is returned as embedded resource on its own (application/xml as text, application/pdf as Base64 blob), the metadata as structured content. Charged per document from the account credit. Nothing is stored.

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>",
      "syntax": "<syntax>"
    },
    "name": "create_einvoice"
  }
}

Input Schema

NameRequiredDescriptionDefault
syntaxYesOutput: cii or ubl (XRechnung XML) or zugferd (PDF/A-3 with embedded CII).
invoiceYesInvoice data following EN 16931 (XRechnung). Totals and VAT are recomputed and must match.
profileNoOnly for zugferd: en16931 (default, factur-x.xml) or xrechnung (xrechnung.xml).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Annotations only cover the safety profile (readOnly=false, destructive=false, idempotent=false); the description goes further by disclosing recomputation of totals and VAT with rejection on mismatch, validator conformance, per-document billing against account credit, and that nothing is persisted. It also explains how the result is delivered, as an embedded resource (XML as text, PDF as Base64 blob) with metadata in structured content.

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?

Two sentences, front-loaded with what is produced and under which standard, then the verification guarantee, then delivery, billing and storage semantics. No filler; every clause carries an operational fact.

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?

There is no output schema, yet the description states exactly what comes back (embedded XML or Base64 PDF plus structured metadata), which is the single biggest gap for a generation tool. Combined with a fully documented nested input schema and the billing/statelessness notes, an agent has everything needed to call it and handle the result.

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%, so the schema already documents syntax, profile and the whole invoice object including EN 16931 business terms. The description adds meaning only for the syntax formats and the recompute-must-match rule, and never mentions the 'profile' parameter at all, so it does not meaningfully exceed the schema baseline.

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 plus the exact output artefacts: 'Creates an XRechnung (CII or UBL XML) or a ZUGFeRD PDF/A-3 from invoice data following EN 16931'. An agent can distinguish generating a document from the sibling validate_einvoice, which checks one rather than producing it.

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?

The creation context is clear from the opening clause, and 'Charged per document from the account credit' plus 'Nothing is stored' tell the agent the cost model and that re-retrieval is impossible. It stops short of naming an explicit alternative or exclusion (e.g. use validate_einvoice to check an existing file), so a 4 rather than 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