Skip to main content
Glama

Render an e-invoice as HTML

render_invoice
Read-only

Render an XML e-invoice (UBL or CII, e.g. XRechnung) as a readable HTML page.

Invowerk uses the KoSIT XRechnung visualization. Use it to show a person what an e-invoice contains.

Input: invoice_base64 is the base64 of the XML, at most 4 MB decoded, or pass the file as a download link in file. PDFs are not accepted. lang sets the label language, "de" (default) or "en".

Returns html (a complete HTML document), lang, flavor (e.g. "xrechnung") and syntax (e.g. "ubl_invoice"). A file that is not an XML invoice, malformed XML or XML with a DOCTYPE fails with an error message, and so does a busy (engine_busy) or overrunning (engine_timeout) render.

Credits: 1 per call.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "render_invoice"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileNoThe file as a download link, instead of `invoice_base64`: set `download_url` to a public https URL of the file.
langNoLanguage of the labels: "de" (default) or "en".de
invoice_base64NoThe invoice file, base64-encoded. At most 4 MB decoded.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / file / description
      Previous value: -"The file as a download link, instead of `invoice_base64`. In ChatGPT, pass the user's uploaded file here. Other clients can set `download_url` to a public https URL."New value: +"The file as a download link, instead of `invoice_base64`: set `download_url` to a public https URL of the file."
    • changedInput schema / properties / file / properties / file_id / description
      Previous value: -"An identifier for the file. ChatGPT sets it; other clients may pass any label, such as the file name."New value: +"Any label for the file, such as the file name."
  2. Changed1 schema field changed
    • addedInput schema / properties / lang / enum
      Added value: +[
      +  "de",
      +  "en"
      +]
  3. First observed

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so the safety profile is covered; the description still adds real value with the 4 MB decoded cap, the one-credit cost, and the enumerated failure modes (non-XML, malformed XML, DOCTYPE rejection, engine_busy, engine_timeout). It also names the same behavior as the openWorld annotation via the download-link path. However, it says nothing about latency/retry expectations beyond naming the busy/timeout errors, and the output fields it lists are largely redundant against the output schema.

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

Conciseness3/5

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

The purpose is front-loaded and the short paragraphs are easy to scan, but the section is longer than necessary. The KoSIT visualization detail and the full return-field list duplicate what the output schema already states, costing space that could have gone to explicit sibling routing.

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?

For a read-only render tool with full schema coverage, annotations and an output schema, the description covers inputs, limits, errors and cost well enough to call it correctly. The remaining gap is selection confidence: with four siblings in the same domain, the description never states when to prefer this tool over parse_invoice or validate_invoice.

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 all three parameters including enum values and defaults, making 3 the baseline. The description does add a little beyond the schema: the 4 MB decoded limit, the base64-of-XML framing, and the either/or relationship between invoice_base64 and file. The gain is modest rather than decisive.

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 first sentence names a specific verb (render) and resource (XML e-invoice in UBL/CII, e.g. XRechnung) and states the output form (readable HTML page). The clause 'Use it to show a person what an e-invoice contains' implicitly separates it from machine-oriented siblings like parse_invoice and validate_invoice.

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?

'Use it to show a person what an e-invoice contains' gives a clear situational trigger, and 'PDFs are not accepted' excludes a tempting wrong input. It stops short of naming alternatives explicitly (e.g. use parse_invoice for structured data, validate_invoice for conformance checks), so there are no explicit when-not rules beyond the input constraint.

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.