Skip to main content
Glama

unmake file tools

Invoice PDF or photo to e-invoice (XRechnung, Factur-X / ZUGFeRD, Peppol)

doc_invoice_to_einvoice
Read-onlyIdempotent

Invoice PDF or photo to e-invoice (XRechnung, Factur-X / ZUGFeRD, Peppol) (free beta). Reads a PDF / scan / photo invoice with two AI providers and writes XRechnung 3.0 (UBL + CII), Peppol BIS 3 UBL and a Factur-X / ZUGFeRD PDF/A-3 by program; sums recomputed, schema-checked, re-read by an independent reader. Fields not on the invoice come back as questions; answer them with the fill option. Use when: A business must send an e-invoice (German public buyer, Belgian / Peppol B2B, French reform) but its invoice exists only as a PDF, Word export, scan or photo. Not for: Sending the invoice (no access point); invoices that are already XML (use the e-invoice viewer); FatturaPA, KSeF, Facturae. File types: pdf, png, jpg, jpeg. Max 15 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_to_einvoice"
  }
}

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.5/5.0
Behavior5/5

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

Goes well beyond the annotations: discloses two AI providers for extraction, that sums are recomputed and schema-checked, that output is re-read by an independent reader, and that missing fields are returned as questions to answer via the fill option. Also states accepted file types and the 15 MB cap, which the annotations do not cover.

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?

Well structured with front-loaded capability statement followed by 'Use when' / 'Not for' / file-type blocks. Some redundancy: the format list and title appear twice (in the opening line and again in the use-case clause), which costs a little space without adding meaning.

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, and the description adequately covers what comes back (generated e-invoice artifacts plus questions for missing fields) and the follow-up interaction. It does not specify the response shape or how generated files are delivered, which is the main remaining gap for a conversion tool.

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 file_url, filename, file_base64 and options, and the description's 'give filename too' note duplicates the schema. It adds useful constraints (allowed extensions, 15 MB limit) and hints that 'options' drives the fill flow, but does not document the options object's contents.

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 transformation (PDF/scan/photo invoice -> XRechnung 3.0 UBL+CII, Peppol BIS 3 UBL, Factur-X/ZUGFeRD PDF/A-3) with named input and output formats. It is clearly distinguishable from einvoice_view (already-XML viewing) and doc_invoice_audit.

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?

Explicit 'Use when' scenarios (German public buyer, Belgian/Peppol B2B, French reform) and explicit 'Not for' exclusions (no sending/access point, already-XML invoices -> e-invoice viewer, FatturaPA/KSeF/Facturae). The alternative routing is spelled out rather than inferred.

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