Skip to main content
Glama

unmake file tools

Read an e-invoice (XRechnung, ZUGFeRD, Factur-X, Peppol, FatturaPA)

einvoice_view
Read-onlyIdempotent

Read an e-invoice (XRechnung, ZUGFeRD, Factur-X, Peppol, FatturaPA). Opens an e-invoice XML, a PDF/A-3 with the invoice attached (ZUGFeRD, Factur-X, XRechnung) or a .p7m and returns every field, the lines, and all totals recomputed from the lines and VAT breakdown, with quick checks (required fields, IBAN and VAT-ID check digits). Same engine as the e-invoice viewer page. Use when: An agent has an e-invoice file and needs its data as JSON or wants to know whether its sums add up. Not for: A full EN 16931 / XRechnung Schematron validation (use doc_invoice_audit for a pay/hold verdict); scanned paper invoices. File types: xml, pdf, p7m. Max 20 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": "einvoice_view"
  }
}

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

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

Beyond the readOnly/idempotent annotations, the description discloses the return payload (all fields, lines, totals recomputed from lines and VAT breakdown), the built-in checks (required fields, IBAN and VAT-ID check digits), the 20 MB size ceiling, and accepted file extensions. This is substantive behavior an agent cannot infer from annotations.

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

Conciseness5/5

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

Front-loaded with the verb and formats, then cleanly segmented into Use when / Not for / File types blocks. Every sentence carries operational information; nothing is padding.

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?

No output schema exists, yet the description describes what comes back and what the checks mean, plus input limits. Nothing material for correct invocation is missing.

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 adds a bit by tying the 20 MB cap to the input path and by revealing the expected file extensions. It does not explain the nested 'options' object, so it stays short of a full 5.

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 (Read) and resource (an e-invoice), enumerating the concrete formats it handles (XRechnung, ZUGFeRD, Factur-X, Peppol, FatturaPA) and the accepted container types. An agent can distinguish it from doc_invoice_audit without opening either schema.

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' clause names the triggering condition (file in hand, needs JSON data or a sum check) and an explicit 'Not for' clause routes Schematron validation to doc_invoice_audit and excludes scanned paper invoices. Exclusions and the alternative are named directly.

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