Skip to main content
Glama

FaeBill E-Rechnung

Validate e-invoice

validate_einvoice
Read-onlyIdempotent

Technically check a German/EU electronic invoice (ZUGFeRD, Factur-X, XRechnung UBL or CII) from a PDF or XML file. Detects format and profile, checks the XML schema and selected business rules, optionally runs the open-source KoSIT validation tool (XRechnung configuration), and reports findings with severity and location. Always state the check scope from the wording field when summarising. A result without errors does not mean the invoice meets all legal requirements. Does not store the file.

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": {
      "fileBase64": "<fileBase64>"
    },
    "name": "validate_einvoice"
  }
}

Input Schema

NameRequiredDescriptionDefault
localeNoOutput language, default de.
filenameNo
fileBase64YesFile content (PDF or XML), base64, max 8 MB decoded.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already cover read-only, non-destructive, idempotent, closed-world behavior, so the bar is lower, yet the description still adds real context: optional KoSIT XRechnung validation, schema plus selected business rules, severity/location in findings, explicit non-storage of the file, and a warning about legal-compliance limits. It does not say how long validation takes or what happens when the format cannot be detected, keeping it below 5.

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?

Front-loads the core action and format list, then adds scope, caveat and storage note in short declarative sentences with no filler. The output-wording instruction is slightly operational rather than definitional but is short and purposeful.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

No output schema exists, and the description compensates by describing the shape of results (findings with severity and location, a `wording` scope field) and by flagging that clean results are not a legal guarantee. A three-parameter read-only tool is otherwise adequately covered; only the behavior on unrecognized or malformed files is left unstated.

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 67% and the schema already documents fileBase64 (PDF/XML, 8 MB decoded) and locale. The description only reinforces the accepted file types and adds nothing about the `filename` parameter or the locale option, so it adds marginal meaning over the schema.

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?

Names a specific verb ('Technically check') and resource (German/EU electronic invoice) with the concrete formats it accepts (ZUGFeRD, Factur-X, XRechnung UBL/CII) and input types (PDF or XML). It is highly distinguishable in substance, but it never contrasts itself with siblings such as read_einvoice or explain_einvoice_finding, so it stops short of a 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Implied usage only: the agent can infer this is the checking step as opposed to reading or explaining an invoice, and the caveat 'A result without errors does not mean the invoice meets all legal requirements' plus the instruction to cite the `wording` scope are useful guardrails. There is no explicit 'use this when / use X instead' statement or statement of prerequisites.

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