Skip to main content
Glama

unmake file tools

Audit a German e-invoice (free beta)

doc_invoice_audit
Read-onlyIdempotent

Audit a German e-invoice (free beta) (free beta). Checks an XRechnung / ZUGFeRD invoice (XML or PDF) and optional order / delivery note text: arithmetic, VAT ID (VIES), IBAN, VAT rate per line, reverse charge, mandatory content, prices and quantities, payment terms, planted instructions. Returns pay / hold / query with euro amounts and a German query letter. Use when: A German business receives an e-invoice and wants to know whether to pay, hold or query it. Not for: Invoices that are only scans or photos (no XML); formal EN 16931 schematron validation (coming); FatturaPA. File types: xml, pdf. Max 10 MB.

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": "doc_invoice_audit"
  }
}

Input Schema

NameRequiredDescriptionDefault
optionsNoTool options, if any (see the tool description).
file_urlNoPublic https URL of the file (preferred).
filenameNoFile name with its extension, e.g. part.step.
file_base64NoThe file as base64, for small files without a URL (give filename too).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already declare read-only, idempotent, non-destructive, open-world behavior, and the description adds substantial context on top: the checks performed, the decision output with euro amounts and a generated German query letter, accepted file types, and a 10 MB size ceiling. It also discloses the beta status, which matters for a compliance-adjacent audit.

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-loaded with purpose, then use/not-for, then file constraints — a good information order with almost no filler. The '(free beta)' phrase is duplicated back-to-back in the opening, a small but visible redundancy.

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?

With no output schema, the description correctly explains the return value (pay/hold/query plus euro amounts and a German query letter), so an agent knows what comes back. The one gap is the undocumented nested 'options' object, which the definition defers to a description that does not describe it.

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 earns a bump by adding constraints the schema does not state (only xml/pdf accepted, 10 MB max), which directly informs how to supply file_url/file_base64. It loses a point because the 'options' object points back to the description for its meaning, and the description never explains what options exist.

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 (audit a German e-invoice), names the concrete formats handled (XRechnung / ZUGFeRD, XML or PDF), enumerates the checks performed, and names the verdict output (pay / hold / query). An agent can immediately distinguish this from doc_invoice_to_einvoice or einvoice_view.

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

Usage Guidelines5/5

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

Contains an explicit 'Use when' clause tied to a concrete situation (a German business receiving an e-invoice and deciding whether to pay, hold or query) and an explicit 'Not for' clause excluding scans/photos, formal EN 16931 schematron validation, and FatturaPA. Both the positive and negative selection criteria are stated.

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