Skip to main content
Glama
beliq-mcp

beliq-mcp

Official
by beliq-eu

beliq: Generate E-Invoice

beliq_generate_einvoice

Generates an EU electronic invoice from EN 16931 data in XRechnung, ZUGFeRD, Factur-X, Peppol BIS and other standards, validating it before returning XML or PDF.

Instructions

Generate an EU electronic invoice from an EN 16931 invoice object. Set standard to the target format and pass the invoice fields. Use only invoice data the user gave. When a field the target format requires is missing, ask the user for it: do not make up a value so that validation passes. output 'xml' (default) returns the document inline; 'pdf' needs outputPath to write it to, and is a hybrid PDF/A-3 with the XML embedded for facturx and zugferd, or a visualization with no embedded XML for xrechnung and peppol-bis (whose legal document stays the XML). By default the API validates the document before returning it (verify), and a document that fails comes back as an error that lists the failed rules. validationResult carries the verdict, with the check depth of that validation in verificationBadgeLabel. beliq produces the document and does not send it: delivery through beliq is in development. Until it is available, transmission (Peppol, plateforme agréée, SDI) and tax-authority reporting stay with your access point; archiving stays with you, and beliq does not operate KSeF submission.

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": {
      "standard": "<standard>",
      "invoice": "<invoice>"
    },
    "name": "beliq_generate_einvoice"
  }
}

Input Schema

NameRequiredDescriptionDefault
outputNo'xml' (default) returns the document inline. 'pdf' needs outputPath to write it to: for facturx and zugferd it is a hybrid PDF/A-3 with the XML embedded; xrechnung and peppol-bis have no hybrid form, so it is a visualization with no XML inside it, and their legal document stays the XML.
verifyNoValidate the generated document before returning it, and fail if it does not pass. Defaults to true.
invoiceYesThe EN 16931 invoice to render. Extra fields (dueDate, buyerReference, paymentMeans, taxSummary, per-country blocks) are passed through to the API.
standardYesTarget e-invoice standard to produce.
outputPathNoWhere to write the generated document on disk. Required for pdf output, optional for xml. The call fails if a file already exists at the path.
facturxProfileNoProfile for a Factur-X / ZUGFeRD document; ignored for xrechnung and peppol-bis. extended-ctc-fr is Factur-X only: zugferd accepts basicwl, en16931 and extended.

Output Schema

NameRequiredDescriptionDefault
xmlNo
outputYes
sha256No
pdfKindNo
livemodeNo
outputPathNo
contentTypeYes
bytesWrittenNo
rulesetSha256No
outputEnvelopeNo
validationResultNo
schematronVersionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.5.1

TDQS

A4.1/5.0
Behavior5/5

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

Goes well beyond the annotations: it discloses that outputPath is required for PDF and fails if the file already exists, that validation runs by default and returns errors listing failed rules, and that PDFs for xrechnung/peppol-bis carry no embedded XML. It also draws the accountability boundary for delivery, reporting, and archiving.

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?

Purpose is front-loaded and most sentences carry real information, but the pdf/XML explanation duplicates the schema prose and the closing transmission/archiving sentence is long and tangential. Dense and readable overall, with some redundancy.

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 six-parameter generator with deep nested objects, an output schema, and open-world/destructive=false annotations, the description covers generation scope, validation behavior, file-writing side effects, and the not-send caveat. Nothing an agent needs in order to call it correctly is missing.

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 documents output, verify, standard, outputPath, and facturxProfile in detail. The description largely restates the xml/pdf semantics and the default for verify rather than adding syntax or edge-case meaning beyond the schema; baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a specific verb and resource: 'Generate an EU electronic invoice from an EN 16931 invoice object,' and clarifies the output artifacts (XML/PDF). It implicitly separates itself from parse/validate/convert siblings by operating on an invoice object rather than an existing document, but never names those alternatives explicitly.

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?

Clear operating context: pass only user-supplied data, ask the user when a required field is missing, and note that beliq generates but does not transmit or archive. There is no explicit routing guidance versus beliq_convert_einvoice or beliq_validate_einvoice, so an agent still has to infer the boundary.

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