Skip to main content
Glama

Apdf — PDF Tracking & Analytics

Read E-Invoice

read-e-invoice
Read-only

Read the invoice data and the XML of a ZUGFeRD, Factur-X or XRechnung invoice, given as PDF or as bare invoice XML in the CII syntax. Returns "level", "invoice" with the fields "create-e-invoice" takes plus each line's amount, the VAT breakdown and the totals as the invoice states them, and the invoice "xml". The data is read without checking it; use "validate-e-invoice" for that.

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": {
      "file": "<file>"
    },
    "name": "read-e-invoice"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileYesPublicly reachable URL of the e-invoice: a PDF or an invoice XML in the CII syntax.
asyncNoRun the action asynchronously and return a job id instead of the result. Poll "check-job-status" or set "webhook_url" to receive a callback.
webhook_urlNoCallback URL invoked when an async job finishes. Only used when "async" is true.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / file / description
      Previous value: -"Publicly reachable URL of the e-invoice PDF."New value: +"Publicly reachable URL of the e-invoice: a PDF or an invoice XML in the CII syntax."
  2. Added

TDQS

A4.1/5.0
Behavior4/5

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

The readOnlyHint=true annotation is consistent with a read operation, and the description adds real behavioral context beyond it: the extraction is unchecked, and the return payload's structure (level, invoice fields, per-line amounts, VAT breakdown, totals, raw xml) is disclosed. It stops short of stating what happens on malformed or non-e-invoice input.

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?

Three tight sentences, front-loaded with the verb and formats before the return shape and the validation disclaimer. Nearly every clause earns its place, though the return-value enumeration is slightly dense.

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 carries the burden of explaining return values and does so by naming the top-level keys. An agent has enough to invoke it correctly; only failure modes for non-invoice input are left unaddressed.

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 file, async and webhook_url are already documented in the schema, including the async polling and callback behavior. The description's note that file may be a PDF or a bare CII XML restates what the schema's file description already says, adding no new syntax or constraints.

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 (read invoice data plus XML) and names the three supported e-invoice formats (ZUGFeRD, Factur-X, XRechnung) and both input shapes (PDF or bare CII XML). It also implicitly distinguishes itself from create-e-invoice by describing its returned fields as the ones create-e-invoice takes.

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?

Explicitly routes validation work away: "The data is read without checking it; use validate-e-invoice for that" gives a clear alternative plus the condition that selects it. It does not, however, say when to prefer this over read-pdf-content for a PDF that happens to be an e-invoice, so the routing is not fully exhaustive.

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