InvoiceIn
Server Details
XRechnung, Factur-X, Peppol, PINT AE, FatturaPA, KSeF → JSON + fix hints. Hosted; MIT=examples only
- Status
- Healthy
- Uptime
- 100.0% over 22 days
- Last Tested
- Transport
- Streamable HTTP · MCP 2025-11-25
- URL
- Repository
- peculiar-systems/invoicein-examples
- GitHub Stars
- 0
- Server Listing
- InvoiceIn
TDQS
Scored across 5 tools
Each tool targets a clearly distinct output: CSV table, DATEV import, HTML render, canonical JSON with validation, and validation-only verdict. The descriptions cross-reference one another to remove any ambiguity about which tool fits a given use case.
The three conversion tools follow a consistent invoice_to_* pattern, while the two parsing/checking tools follow read_invoice/validate_invoice. This is mostly predictable, but the verb placement differs between subfamilies, so it is not a single uniform verb_noun pattern.
Five tools is well-scoped for an e-invoice processing server: parse, validate, and three distinct export/render targets. Each tool earns its place with no redundant or filler entries.
The surface covers the full lifecycle for the stated purpose: reading invoice content, validating against official rules, and exporting to generic CSV, German DATEV, or human-readable HTML. No significant gaps exist for the intended domain of European e-invoice ingestion and conversion.
Available Tools
5 toolsinvoice_to_csvExport invoice as CSVARead-onlyIdempotentInspect
Export one European e-invoice as a flat CSV table for a spreadsheet or a database import. Document columns: invoice id, type, issue and due date, currency, seller and buyer name / VAT id / country, buyer and order reference, net / tax / gross / due totals, IBAN, BIC, remittance info, KSeF number, detected format and profile; with level=lines each row adds line id, item name, seller item id, quantity, unit, unit price, net amount, VAT category and rate, note. Use invoice_to_datev for DATEV bookkeeping and read_invoice for the full JSON. Input: XML (UBL, CII, XRechnung, Peppol BIS 3, UAE PINT AE, FatturaPA, KSeF FA(2)/FA(3)) or a ZUGFeRD/Factur-X hybrid PDF up to 25 MB; plain or scanned PDFs without embedded XML are rejected (no OCR). A FatturaPA lot yields rows for every invoice in it. Returns the CSV as one text string: comma-separated, header row first, LF line endings, decimal point; an unreadable file returns a tool error with the reason. Costs one invoice credit per call; without an API key the anonymous quota is 20 invoices per day per IP. Nothing is stored.
| Name | Required | Description | Default |
|---|---|---|---|
| ksef | No | Poland only: the KSeF number the National e-Invoice System gave this invoice — 35 characters, NNNNNNNNNN-RRRRMMDD-FFFFFFFFFFFF-FF — or the collective identifier covering it (NNNNNNNNNN-IZRRRRMM-FFFFFFFFFFFF-FF). KSeF assigns it on acceptance, so it is never inside the FA(2)/FA(3) XML: it arrives beside the invoice in the KSeF API response, the UPO or the QR code on a visualisation. Pass it and it is checked against the invoice and returned on payment.ksef_number, the reference a Polish buyer must quote in the bank transfer title from 2027-01-01. Leave empty for invoices from any other country. | |
| path | No | Absolute path of the invoice file on the machine running the server, used instead of file_base64. Only honoured over stdio (`python -m invoicein.mcp_server`); the hosted server at invoicein-api.peculiar.systems ignores it and answers with an error asking for file_base64. | |
| level | No | 'lines' (default) = one row per line item with the document columns repeated on every row; 'documents' = one row per invoice with the document columns only. | lines |
| file_base64 | No | Invoice file content, base64-encoded (standard alphabet). Accepted content: XML in UBL 2.1, CII D16B, XRechnung, Peppol BIS Billing 3, FatturaPA 1.2 or KSeF FA(2)/FA(3) syntax, or a ZUGFeRD 1.0/2.x or Factur-X hybrid PDF (the embedded XML is used). Max 25 MB decoded. Required unless `path` is given. |
Output Schema
| Name | Required | Description |
|---|---|---|
| result | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations declare readOnlyHint and idempotentHint, but the description goes further: it discloses the exact return format (CSV as a string, comma-separated, header row, LF endings), error behavior for unreadable files, credit cost, anonymous quota, and the fact that nothing is stored. It also notes the path parameter is ignored on the hosted server, a behavior not implied by the schema. No contradiction with annotations.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is long but every sentence serves a purpose. It front-loads the core purpose and output format, then progressively covers inputs, behavior, costs, and alternatives. There is no redundancy; each clause adds critical operational detail that an agent needs to use the tool correctly.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a tool with four parameters, multiple input formats, and specific output formatting and quota rules, the description covers everything an agent must know to invoke it correctly: input paths and base64, level options, accepted XML/PDF types, size limits, return format, error handling, cost, and storage guarantees. It even accounts for the path parameter's environment-dependent behavior, leaving no gaps.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Although schema coverage is 100%, the description adds substantial meaning beyond the schema: it explains the KSeF number format and its source, clarifies that path is only honored over stdio, details the level parameter's row structure, and specifies accepted file types and size limits for file_base64. This significantly enriches the agent's understanding of each parameter.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description states a specific verb and resource ('Export one European e-invoice as a flat CSV table') and immediately names its sibling tools (invoice_to_datev, read_invoice) with distinct purposes, making differentiation explicit. It also details the exact output format and accepted inputs, leaving no ambiguity about what the tool does.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
It explicitly instructs when to use alternatives: 'Use invoice_to_datev for DATEV bookkeeping and read_invoice for the full JSON.' It also defines clear exclusions (plain/scanned PDFs rejected) and the file size limit, so an agent knows exactly when this tool is appropriate versus when to route elsewhere.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
invoice_to_datevExport invoice as DATEV BuchungsstapelARead-onlyIdempotentInspect
Convert one received (purchase) e-invoice into a DATEV Buchungsstapel import file (EXTF format 700) for German bookkeeping in DATEV Kanzlei-Rechnungswesen or Unternehmen online. Use it only for incoming invoices booked on the German side; use invoice_to_csv for a generic table, read_invoice for the raw data, validate_invoice for rule checks (this tool does not validate). Input: XML (UBL, CII, XRechnung, Peppol BIS 3, UAE PINT AE, FatturaPA, KSeF FA(2)/FA(3)) or a ZUGFeRD/Factur-X hybrid PDF up to 25 MB; plain or scanned PDFs without embedded XML are rejected (no OCR). Returns the file content as one text string, decoded in UTF-8: the EXTF header line, the DATEV column header, then one booking row per VAT-rate group with the gross amount and S/H flag (H for credit notes), the expense account chosen by rate under the selected SKR (e.g. SKR03 3400 for 19 %, 3300 for 7 %, 3200 for 0 %, 3120 intra-EU, 3425 reverse charge), the creditor account as Gegenkonto, document and due date, invoice number in Belegfeld 1, seller name as Buchungstext and the seller VAT id on intra-EU / reverse-charge rows. Save it as UTF-8 with CRLF before importing; the account mapping is a default to confirm with the tax advisor. An unreadable file returns a tool error with the reason. Costs one invoice credit per call; without an API key the anonymous quota is 20 invoices per day per IP. Nothing is stored.
| Name | Required | Description | Default |
|---|---|---|---|
| skr | No | German standard chart of accounts that selects the expense accounts: '03' = SKR03 (default), '04' = SKR04. | 03 |
| path | No | Absolute path of the invoice file on the machine running the server, used instead of file_base64. Only honoured over stdio (`python -m invoicein.mcp_server`); the hosted server at invoicein-api.peculiar.systems ignores it and answers with an error asking for file_base64. | |
| file_base64 | No | Invoice file content, base64-encoded (standard alphabet). Accepted content: XML in UBL 2.1, CII D16B, XRechnung, Peppol BIS Billing 3, FatturaPA 1.2 or KSeF FA(2)/FA(3) syntax, or a ZUGFeRD 1.0/2.x or Factur-X hybrid PDF (the embedded XML is used). Max 25 MB decoded. Required unless `path` is given. | |
| creditor_account | No | Creditor account (Kreditor, written as Gegenkonto) the invoice is posted against: 4–9 digits as configured in the DATEV client, e.g. '70000' (default). Use the supplier's creditor number. | 70000 |
Output Schema
| Name | Required | Description |
|---|---|---|
| result | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already signal read-only, idempotent, non-destructive behavior, and the description adds substantial context beyond that: one credit consumed per call, anonymous quota of 20 invoices per day per IP, nothing stored, unreadable files returning a tool error, and the account mapping being a default to confirm with a tax advisor. No contradiction with annotations.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is long but every sentence carries real operational information, from usage scope to output layout to quota limits. It is slightly redundant with the schema's file_base64 description, which already lists accepted formats and the 25 MB limit, so it is not maximally lean.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a tool with this complexity, the description is highly complete: it covers when to use it, accepted input formats, rejected inputs, output structure and encoding, post-processing requirements (UTF-8 with CRLF), error behavior, cost/quota, and privacy. An agent has enough context to call it correctly without needing the output schema.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The schema already covers all parameters at 100%, so the baseline is 3. The description goes further by explaining how skr influences expense account selection with concrete examples (SKR03 3400 for 19%, 3300 for 7%, etc.) and how creditor_account maps to Gegenkonto in the output. This is useful but partly overlaps with schema descriptions.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description states a specific verb and resource: 'Convert one received (purchase) e-invoice into a DATEV Buchungsstapel import file (EXTF format 700)'. It also clearly distinguishes the tool from siblings by naming invoice_to_csv, read_invoice, and validate_invoice and their different purposes.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
It explicitly scopes usage to 'only for incoming invoices booked on the German side' and names alternatives with their conditions ('use invoice_to_csv for a generic table, read_invoice for the raw data, validate_invoice for rule checks'). It also warns that scanned PDFs are rejected and that no OCR is performed.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
invoice_to_htmlRender invoice as HTMLARead-onlyIdempotentInspect
Render one European e-invoice as a self-contained, printable HTML page: header, seller and buyer, line items, VAT breakdown, totals and payment details in one layout regardless of the source syntax, labels in lang. Use it to show an invoice to a person or to print it to PDF from a browser; it does not validate (use validate_invoice) and is not an accounting export (use invoice_to_csv or invoice_to_datev). Input: XML (UBL, CII, XRechnung, Peppol BIS 3, UAE PINT AE, FatturaPA, KSeF FA(2)/FA(3)) or a ZUGFeRD/Factur-X hybrid PDF up to 25 MB; plain or scanned PDFs without embedded XML are rejected (no OCR). Returns the HTML document as one text string with inline CSS and no external assets; an unreadable file returns a tool error with the reason. Costs one invoice credit per call; without an API key the anonymous quota is 20 invoices per day per IP. Nothing is stored.
| Name | Required | Description | Default |
|---|---|---|---|
| ksef | No | Poland only: the KSeF number the National e-Invoice System gave this invoice — 35 characters, NNNNNNNNNN-RRRRMMDD-FFFFFFFFFFFF-FF — or the collective identifier covering it (NNNNNNNNNN-IZRRRRMM-FFFFFFFFFFFF-FF). KSeF assigns it on acceptance, so it is never inside the FA(2)/FA(3) XML: it arrives beside the invoice in the KSeF API response, the UPO or the QR code on a visualisation. Pass it and it is checked against the invoice and returned on payment.ksef_number, the reference a Polish buyer must quote in the bank transfer title from 2027-01-01. Leave empty for invoices from any other country. | |
| lang | No | Language of the fix hints in the validation report and of the labels in HTML output. Default en. | en |
| path | No | Absolute path of the invoice file on the machine running the server, used instead of file_base64. Only honoured over stdio (`python -m invoicein.mcp_server`); the hosted server at invoicein-api.peculiar.systems ignores it and answers with an error asking for file_base64. | |
| file_base64 | No | Invoice file content, base64-encoded (standard alphabet). Accepted content: XML in UBL 2.1, CII D16B, XRechnung, Peppol BIS Billing 3, FatturaPA 1.2 or KSeF FA(2)/FA(3) syntax, or a ZUGFeRD 1.0/2.x or Factur-X hybrid PDF (the embedded XML is used). Max 25 MB decoded. Required unless `path` is given. |
Output Schema
| Name | Required | Description |
|---|---|---|
| result | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already declare readOnlyHint=true and idempotentHint=true, but the description adds significant behavioral detail beyond that: the output is a self-contained HTML string with inline CSS and no external assets, an unreadable file returns a tool error with the reason, each call costs one invoice credit, anonymous quota is 20 invoices per day per IP, and nothing is stored. These operational traits are not inferable from the annotations and materially affect how an agent uses the tool. No contradiction with annotations.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is long but every sentence earns its place. It front-loads the purpose, then moves to usage guidance, input constraints, output format, error behavior, cost, quota, and storage. The structure is logical and scannable: purpose → alternatives → input → output → operational notes. No filler or redundant phrasing; the density is justified by the tool's complexity.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a tool with many input formats, output requirements, and operational constraints, the description covers all essential aspects: input types and size limits, rejection criteria, output format (HTML string, inline CSS, no external assets), error behavior, cost, quota, and data retention. Since an output schema exists, the return value structure is already documented. The description also explicitly points to sibling tools for validation and export, making it complete for an agent to decide and invoke correctly.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The input schema covers 100% of the parameters with detailed descriptions (e.g., the KSeF format, the lang enum, path vs. file_base64 usage). The tool description adds little beyond the schema: it mentions 'labels in lang' and references the input formats, but these are already captured in the parameter descriptions. With full schema coverage, the baseline of 3 is appropriate; the description does not meaningfully enhance parameter understanding beyond what the schema already provides.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description opens with a precise verb–resource pair ('Render one European e-invoice as a self-contained, printable HTML page') and enumerates exactly what the HTML contains (header, seller/buyer, line items, VAT, totals, payment details). It also names the siblings it is not: 'it does not validate (use validate_invoice) and is not an accounting export (use invoice_to_csv or invoice_to_datev)', so an agent can immediately tell it apart from the other invoice tools without inspecting their schemas.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description explicitly states when to use this tool ('to show an invoice to a person or to print it to PDF from a browser'), when not to use it (validation and accounting export), and gives concrete exclusions (plain or scanned PDFs without embedded XML are rejected, no OCR). It also provides input format limits (25 MB, specific XML syntaxes, hybrid PDFs) and cost/quota details, so the agent has full context for choosing this tool over alternatives.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
read_invoiceRead invoiceARead-onlyIdempotentInspect
Parse one European or UAE (PINT AE) e-invoice into canonical EN 16931 JSON and validate it against the official rule sets in the same call. Use it when you need the invoice content (seller, buyer, lines, totals, payment) together with the verdict; use validate_invoice for a verdict-only answer, invoice_to_html / invoice_to_csv / invoice_to_datev for renderings. Input: XML (UBL, CII, XRechnung, Peppol BIS 3, UAE PINT AE, FatturaPA, KSeF FA(2)/FA(3)) or a ZUGFeRD/Factur-X hybrid PDF up to 25 MB; plain or scanned PDFs without embedded XML are rejected (no OCR). Returns the parsed invoice, the validation report with fix hints in lang, and timings; an unreadable file returns ok=false with error.code/message/hint instead of raising. A FatturaPA lot returns only its first invoice, with a note. For a Polish KSeF invoice, pass the KSeF number in ksef: it is checked against the invoice and returned on payment.ksef_number. Costs one invoice credit per call; without an API key the anonymous quota is 20 invoices per day per IP. Nothing is stored.
| Name | Required | Description | Default |
|---|---|---|---|
| ksef | No | Poland only: the KSeF number the National e-Invoice System gave this invoice — 35 characters, NNNNNNNNNN-RRRRMMDD-FFFFFFFFFFFF-FF — or the collective identifier covering it (NNNNNNNNNN-IZRRRRMM-FFFFFFFFFFFF-FF). KSeF assigns it on acceptance, so it is never inside the FA(2)/FA(3) XML: it arrives beside the invoice in the KSeF API response, the UPO or the QR code on a visualisation. Pass it and it is checked against the invoice and returned on payment.ksef_number, the reference a Polish buyer must quote in the bank transfer title from 2027-01-01. Leave empty for invoices from any other country. | |
| lang | No | Language of the fix hints in the validation report and of the labels in HTML output. Default en. | en |
| path | No | Absolute path of the invoice file on the machine running the server, used instead of file_base64. Only honoured over stdio (`python -m invoicein.mcp_server`); the hosted server at invoicein-api.peculiar.systems ignores it and answers with an error asking for file_base64. | |
| file_base64 | No | Invoice file content, base64-encoded (standard alphabet). Accepted content: XML in UBL 2.1, CII D16B, XRechnung, Peppol BIS Billing 3, FatturaPA 1.2 or KSeF FA(2)/FA(3) syntax, or a ZUGFeRD 1.0/2.x or Factur-X hybrid PDF (the embedded XML is used). Max 25 MB decoded. Required unless `path` is given. |
Output Schema
| Name | Required | Description |
|---|---|---|
| ok | Yes | False when the file could not be read; then only `error` is set |
| note | No | Set when the file is a lot of several invoices: only the first is returned |
| error | No | Present when ok is false: code, message, hint |
| source | No | Detected syntax, format, profile and container |
| invoice | No | Canonical EN 16931 JSON: document, seller, buyer, lines, tax_breakdown, totals, payment, attachments, extensions; field names carry BT/BG numbers in /v1/schema |
| timings_ms | No | Processing time per stage: detect, map, validate, total |
| validation | No |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already declare readOnlyHint and idempotentHint, and the description adds substantial context: it states nothing is stored, costs one credit per call, has an anonymous quota, returns ok=false with error details instead of raising, handles FatturaPA lots with a note, and explains KSeF handling. No contradiction with annotations; the description enriches the safety and operational profile.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is long but every sentence carries useful information. It opens with the purpose, then usage routing, then input constraints, then behavior, then special cases, then costs. It is structured and front-loaded; the length is justified by the tool's complexity. It loses a point only for being slightly dense, though not wasteful.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the tool's complexity (many formats, validation, credit costs, special cases) and the presence of an output schema, the description covers everything an agent needs to decide and invoke correctly: input formats, size limits, rejection criteria, return shape, error handling, cost, and storage. It does not need to repeat output schema details, and it doesn't.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema coverage is 100% with detailed descriptions, yet the description adds meaningful context beyond the schema: it explains the KSeF number format and why it's not in the XML, clarifies that path is ignored on the hosted server, and details file size limits and accepted formats. This goes well beyond the baseline of 3 and fully compensates for any potential ambiguity.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description states a specific verb (parse + validate) and a specific resource (e-invoices), and explicitly distinguishes itself from siblings by naming what validate_invoice and rendering tools do. An agent can immediately tell this is the content+verdict tool, not the verdict-only or rendering alternative.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
It gives explicit when-to-use ('when you need the invoice content together with the verdict') and names the alternatives with their distinct purposes ('use validate_invoice for a verdict-only answer, invoice_to_html / invoice_to_csv / invoice_to_datev for renderings'). It also clarifies input constraints and rejection cases, so an agent knows exactly when to select this tool.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
validate_invoiceValidate invoiceARead-onlyIdempotentInspect
Validate one European or UAE (PINT AE) e-invoice against the official rule sets (XSD, EN 16931, XRechnung, Peppol BIS, PINT AE, FatturaPA, KSeF, arithmetic) and return the verdict without the invoice body. Use it for pass/fail and the list of errors and warnings; use read_invoice when you also need lines, totals and payment data. Input: XML (UBL, CII, XRechnung, Peppol BIS 3, UAE PINT AE, FatturaPA, KSeF FA(2)/FA(3)) or a ZUGFeRD/Factur-X hybrid PDF up to 25 MB; plain or scanned PDFs without embedded XML are rejected (no OCR). Returns the validation report (valid flag, counts, rule sets with versions, failed rules with rule id, severity, fix hint in lang, affected field and who must act), the detected source and the document header; an unreadable file returns ok=false with error.code/message/hint instead of raising. For a Polish KSeF invoice, a KSeF number passed in ksef is checked too: shape, NIP check digit, and agreement with the invoice it came with. Costs one invoice credit per call; without an API key the anonymous quota is 20 invoices per day per IP. Nothing is stored.
| Name | Required | Description | Default |
|---|---|---|---|
| ksef | No | Poland only: the KSeF number the National e-Invoice System gave this invoice — 35 characters, NNNNNNNNNN-RRRRMMDD-FFFFFFFFFFFF-FF — or the collective identifier covering it (NNNNNNNNNN-IZRRRRMM-FFFFFFFFFFFF-FF). KSeF assigns it on acceptance, so it is never inside the FA(2)/FA(3) XML: it arrives beside the invoice in the KSeF API response, the UPO or the QR code on a visualisation. Pass it and it is checked against the invoice and returned on payment.ksef_number, the reference a Polish buyer must quote in the bank transfer title from 2027-01-01. Leave empty for invoices from any other country. | |
| lang | No | Language of the fix hints in the validation report and of the labels in HTML output. Default en. | en |
| path | No | Absolute path of the invoice file on the machine running the server, used instead of file_base64. Only honoured over stdio (`python -m invoicein.mcp_server`); the hosted server at invoicein-api.peculiar.systems ignores it and answers with an error asking for file_base64. | |
| file_base64 | No | Invoice file content, base64-encoded (standard alphabet). Accepted content: XML in UBL 2.1, CII D16B, XRechnung, Peppol BIS Billing 3, FatturaPA 1.2 or KSeF FA(2)/FA(3) syntax, or a ZUGFeRD 1.0/2.x or Factur-X hybrid PDF (the embedded XML is used). Max 25 MB decoded. Required unless `path` is given. |
Output Schema
| Name | Required | Description |
|---|---|---|
| ok | Yes | False when the file could not be read; then only `error` is set |
| error | No | Present when ok is false: code, message, hint |
| source | No | Detected syntax, format, profile and container |
| document | No | Invoice header: id, issue_date, type_code, currency, due_date … |
| validation | No |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
The annotations already indicate read-only, idempotent, non-destructive behavior. The description adds meaningful context beyond those hints: unreadable files return ok=false instead of raising an exception, nothing is stored, one invoice credit is consumed per call, and the anonymous quota is 20 invoices per day per IP. No contradictions with annotations.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is long but well-organized, front-loading purpose and usage, then covering return values, input constraints, KSeF specifics, and operational details like credits and storage. Some redundancy with the extensive schema descriptions exists, but every sentence contributes useful context for a complex validation tool.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a complex tool with an output schema, the description covers all essential operational aspects: accepted inputs, file size limit, error behavior, KSeF handling, cost/quota, storage, and when to choose a sibling tool. Nothing needed for correct invocation appears to be missing.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
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 real value by explaining how the ksef parameter is validated against the invoice and returned on payment.ksef_number, and by clarifying that path is only honoured over stdio while the hosted server ignores it. This goes beyond the schema's already-detailed field descriptions.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description states a specific verb and resource: 'Validate one European or UAE (PINT AE) e-invoice against the official rule sets' and 'return the verdict without the invoice body.' It distinguishes itself from read_invoice by explicitly noting that read_invoice is for when lines, totals and payment data are also needed.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
Provides explicit when-to-use guidance: 'Use it for pass/fail and the list of errors and warnings; use read_invoice when you also need lines, totals and payment data.' It also clarifies input boundaries, including accepted XML/PDF formats and rejection of plain or scanned PDFs without embedded XML.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
4 tool updates
- Changed
invoice_to_csv1 field changed- added
Input schema / properties / ksefAdded value: +{ + "default": "", + "description": "Poland only: the KSeF number the National e-Invoice System gave this invoice — 35 characters, NNNNNNNNNN-RRRRMMDD-FFFFFFFFFFFF-FF — or the collective identifier covering it (NNNNNNNNNN-IZRRRRMM-FFFFFFFFFFFF-FF). KSeF assigns it on acceptance, so it is never inside the FA(2)/FA(3) XML: it arrives beside the invoice in the KSeF API response, the UPO or the QR code on a visualisation. Pass it and it is checked against the invoice and returned on payment.ksef_number, the reference a Polish buyer must quote in the bank transfer title from 2027-01-01. Leave empty for invoices from any other country.", + "title": "Ksef", + "type": "string" +}
- Changed
invoice_to_html1 field changed- added
Input schema / properties / ksefAdded value: +{ + "default": "", + "description": "Poland only: the KSeF number the National e-Invoice System gave this invoice — 35 characters, NNNNNNNNNN-RRRRMMDD-FFFFFFFFFFFF-FF — or the collective identifier covering it (NNNNNNNNNN-IZRRRRMM-FFFFFFFFFFFF-FF). KSeF assigns it on acceptance, so it is never inside the FA(2)/FA(3) XML: it arrives beside the invoice in the KSeF API response, the UPO or the QR code on a visualisation. Pass it and it is checked against the invoice and returned on payment.ksef_number, the reference a Polish buyer must quote in the bank transfer title from 2027-01-01. Leave empty for invoices from any other country.", + "title": "Ksef", + "type": "string" +}
- Changed
read_invoice1 field changed- added
Input schema / properties / ksefAdded value: +{ + "default": "", + "description": "Poland only: the KSeF number the National e-Invoice System gave this invoice — 35 characters, NNNNNNNNNN-RRRRMMDD-FFFFFFFFFFFF-FF — or the collective identifier covering it (NNNNNNNNNN-IZRRRRMM-FFFFFFFFFFFF-FF). KSeF assigns it on acceptance, so it is never inside the FA(2)/FA(3) XML: it arrives beside the invoice in the KSeF API response, the UPO or the QR code on a visualisation. Pass it and it is checked against the invoice and returned on payment.ksef_number, the reference a Polish buyer must quote in the bank transfer title from 2027-01-01. Leave empty for invoices from any other country.", + "title": "Ksef", + "type": "string" +}
- Changed
validate_invoice1 field changed- added
Input schema / properties / ksefAdded value: +{ + "default": "", + "description": "Poland only: the KSeF number the National e-Invoice System gave this invoice — 35 characters, NNNNNNNNNN-RRRRMMDD-FFFFFFFFFFFF-FF — or the collective identifier covering it (NNNNNNNNNN-IZRRRRMM-FFFFFFFFFFFF-FF). KSeF assigns it on acceptance, so it is never inside the FA(2)/FA(3) XML: it arrives beside the invoice in the KSeF API response, the UPO or the QR code on a visualisation. Pass it and it is checked against the invoice and returned on payment.ksef_number, the reference a Polish buyer must quote in the bank transfer title from 2027-01-01. Leave empty for invoices from any other country.", + "title": "Ksef", + "type": "string" +}
5 tool updates
- Changed
invoice_to_csv11 fields changed- removed
Input schema / properties / file_base64 / anyOfRemoved value: -[ - { - "type": "string" - }, - { - "type": "null" - } -] - changed
Input schema / properties / file_base64 / defaultPrevious value: -nullNew value: +"" - changed
Input schema / properties / file_base64 / descriptionPrevious value: -"The invoice file, base64-encoded: XML (UBL, CII, XRechnung, Peppol, FatturaPA, KSeF FA(3)) or a ZUGFeRD/Factur-X hybrid PDF. Up to 25 MB decoded."New value: +"Invoice file content, base64-encoded (standard alphabet). Accepted content: XML in UBL 2.1, CII D16B, XRechnung, Peppol BIS Billing 3, FatturaPA 1.2 or KSeF FA(2)/FA(3) syntax, or a ZUGFeRD 1.0/2.x or Factur-X hybrid PDF (the embedded XML is used). Max 25 MB decoded. Required unless `path` is given." - added
Input schema / properties / file_base64 / typeAdded value: +"string" - changed
Input schema / properties / level / descriptionPrevious value: -"'lines' = one row per line item (document fields repeated), 'documents' = one row per invoice"New value: +"'lines' (default) = one row per line item with the document columns repeated on every row; 'documents' = one row per invoice with the document columns only." - added
Input schema / properties / level / enumAdded value: +[ + "lines", + "documents" +] - removed
Input schema / properties / level / patternRemoved value: -"^(lines|documents)$" - removed
Input schema / properties / path / anyOfRemoved value: -[ - { - "type": "string" - }, - { - "type": "null" - } -] - changed
Input schema / properties / path / defaultPrevious value: -nullNew value: +"" - changed
Input schema / properties / path / descriptionPrevious value: -"Local file path instead of file_base64; only honoured when the server runs over stdio on the same machine."New value: +"Absolute path of the invoice file on the machine running the server, used instead of file_base64. Only honoured over stdio (`python -m invoicein.mcp_server`); the hosted server at invoicein-api.peculiar.systems ignores it and answers with an error asking for file_base64." - added
Input schema / properties / path / typeAdded value: +"string"
- Changed
invoice_to_datev13 fields changed- changed
Input schema / properties / creditor_account / descriptionPrevious value: -"Creditor (Gegenkonto) number to post the invoice against, e.g. 70000"New value: +"Creditor account (Kreditor, written as Gegenkonto) the invoice is posted against: 4–9 digits as configured in the DATEV client, e.g. '70000' (default). Use the supplier's creditor number." - added
Input schema / properties / creditor_account / patternAdded value: +"^[0-9]{4,9}$" - removed
Input schema / properties / file_base64 / anyOfRemoved value: -[ - { - "type": "string" - }, - { - "type": "null" - } -] - changed
Input schema / properties / file_base64 / defaultPrevious value: -nullNew value: +"" - changed
Input schema / properties / file_base64 / descriptionPrevious value: -"The invoice file, base64-encoded: XML (UBL, CII, XRechnung, Peppol, FatturaPA, KSeF FA(3)) or a ZUGFeRD/Factur-X hybrid PDF. Up to 25 MB decoded."New value: +"Invoice file content, base64-encoded (standard alphabet). Accepted content: XML in UBL 2.1, CII D16B, XRechnung, Peppol BIS Billing 3, FatturaPA 1.2 or KSeF FA(2)/FA(3) syntax, or a ZUGFeRD 1.0/2.x or Factur-X hybrid PDF (the embedded XML is used). Max 25 MB decoded. Required unless `path` is given." - added
Input schema / properties / file_base64 / typeAdded value: +"string" - removed
Input schema / properties / path / anyOfRemoved value: -[ - { - "type": "string" - }, - { - "type": "null" - } -] - changed
Input schema / properties / path / defaultPrevious value: -nullNew value: +"" - changed
Input schema / properties / path / descriptionPrevious value: -"Local file path instead of file_base64; only honoured when the server runs over stdio on the same machine."New value: +"Absolute path of the invoice file on the machine running the server, used instead of file_base64. Only honoured over stdio (`python -m invoicein.mcp_server`); the hosted server at invoicein-api.peculiar.systems ignores it and answers with an error asking for file_base64." - added
Input schema / properties / path / typeAdded value: +"string" - changed
Input schema / properties / skr / descriptionPrevious value: -"German chart of accounts: '03' (SKR03) or '04' (SKR04)"New value: +"German standard chart of accounts that selects the expense accounts: '03' = SKR03 (default), '04' = SKR04." - added
Input schema / properties / skr / enumAdded value: +[ + "03", + "04" +] - removed
Input schema / properties / skr / patternRemoved value: -"^(03|04)$"
- Changed
invoice_to_html11 fields changed- removed
Input schema / properties / file_base64 / anyOfRemoved value: -[ - { - "type": "string" - }, - { - "type": "null" - } -] - changed
Input schema / properties / file_base64 / defaultPrevious value: -nullNew value: +"" - changed
Input schema / properties / file_base64 / descriptionPrevious value: -"The invoice file, base64-encoded: XML (UBL, CII, XRechnung, Peppol, FatturaPA, KSeF FA(3)) or a ZUGFeRD/Factur-X hybrid PDF. Up to 25 MB decoded."New value: +"Invoice file content, base64-encoded (standard alphabet). Accepted content: XML in UBL 2.1, CII D16B, XRechnung, Peppol BIS Billing 3, FatturaPA 1.2 or KSeF FA(2)/FA(3) syntax, or a ZUGFeRD 1.0/2.x or Factur-X hybrid PDF (the embedded XML is used). Max 25 MB decoded. Required unless `path` is given." - added
Input schema / properties / file_base64 / typeAdded value: +"string" - changed
Input schema / properties / lang / descriptionPrevious value: -"Language of the fix hints and rendering labels: en, de, pl, it or fr."New value: +"Language of the fix hints in the validation report and of the labels in HTML output. Default en." - added
Input schema / properties / lang / enumAdded value: +[ + "en", + "de", + "pl", + "it", + "fr" +] - removed
Input schema / properties / lang / patternRemoved value: -"^(en|de|pl|it|fr)$" - removed
Input schema / properties / path / anyOfRemoved value: -[ - { - "type": "string" - }, - { - "type": "null" - } -] - changed
Input schema / properties / path / defaultPrevious value: -nullNew value: +"" - changed
Input schema / properties / path / descriptionPrevious value: -"Local file path instead of file_base64; only honoured when the server runs over stdio on the same machine."New value: +"Absolute path of the invoice file on the machine running the server, used instead of file_base64. Only honoured over stdio (`python -m invoicein.mcp_server`); the hosted server at invoicein-api.peculiar.systems ignores it and answers with an error asking for file_base64." - added
Input schema / properties / path / typeAdded value: +"string"
- Changed
read_invoice22 fields changed- removed
Input schema / properties / file_base64 / anyOfRemoved value: -[ - { - "type": "string" - }, - { - "type": "null" - } -] - changed
Input schema / properties / file_base64 / defaultPrevious value: -nullNew value: +"" - changed
Input schema / properties / file_base64 / descriptionPrevious value: -"The invoice file, base64-encoded: XML (UBL, CII, XRechnung, Peppol, FatturaPA, KSeF FA(3)) or a ZUGFeRD/Factur-X hybrid PDF. Up to 25 MB decoded."New value: +"Invoice file content, base64-encoded (standard alphabet). Accepted content: XML in UBL 2.1, CII D16B, XRechnung, Peppol BIS Billing 3, FatturaPA 1.2 or KSeF FA(2)/FA(3) syntax, or a ZUGFeRD 1.0/2.x or Factur-X hybrid PDF (the embedded XML is used). Max 25 MB decoded. Required unless `path` is given." - added
Input schema / properties / file_base64 / typeAdded value: +"string" - changed
Input schema / properties / lang / descriptionPrevious value: -"Language of the fix hints and rendering labels: en, de, pl, it or fr."New value: +"Language of the fix hints in the validation report and of the labels in HTML output. Default en." - added
Input schema / properties / lang / enumAdded value: +[ + "en", + "de", + "pl", + "it", + "fr" +] - removed
Input schema / properties / lang / patternRemoved value: -"^(en|de|pl|it|fr)$" - removed
Input schema / properties / path / anyOfRemoved value: -[ - { - "type": "string" - }, - { - "type": "null" - } -] - changed
Input schema / properties / path / defaultPrevious value: -nullNew value: +"" - changed
Input schema / properties / path / descriptionPrevious value: -"Local file path instead of file_base64; only honoured when the server runs over stdio on the same machine."New value: +"Absolute path of the invoice file on the machine running the server, used instead of file_base64. Only honoured over stdio (`python -m invoicein.mcp_server`); the hosted server at invoicein-api.peculiar.systems ignores it and answers with an error asking for file_base64." - added
Input schema / properties / path / typeAdded value: +"string" - added
Output schema / $defs / Validation / properties / errors / descriptionAdded value: +"Number of failed rules with severity error" - added
Output schema / $defs / Validation / properties / issues / descriptionAdded value: +"Failed rules, each with a fix hint" - added
Output schema / $defs / Validation / properties / notes / descriptionAdded value: +"Informational notes about the validation run" - changed
Output schema / $defs / Validation / properties / rule_sets / descriptionPrevious value: -"Rule sets applied, with versions"New value: +"Rule sets applied, with versions (XSD, EN 16931, XRechnung, Peppol, FatturaPA, KSeF, arithmetic)" - added
Output schema / $defs / Validation / properties / valid / descriptionAdded value: +"True when no rule of severity error failed" - added
Output schema / $defs / Validation / properties / warnings / descriptionAdded value: +"Number of failed rules with severity warning" - changed
Output schema / properties / invoice / descriptionPrevious value: -"Canonical EN 16931 JSON: document, seller, buyer, lines, tax_breakdown, totals, payment, attachments, extensions"New value: +"Canonical EN 16931 JSON: document, seller, buyer, lines, tax_breakdown, totals, payment, attachments, extensions; field names carry BT/BG numbers in /v1/schema" - added
Output schema / properties / noteAdded value: +{ + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Set when the file is a lot of several invoices: only the first is returned", + "title": "Note" +} - added
Output schema / properties / ok / descriptionAdded value: +"False when the file could not be read; then only `error` is set" - added
Output schema / properties / source / descriptionAdded value: +"Detected syntax, format, profile and container" - added
Output schema / properties / timings_ms / descriptionAdded value: +"Processing time per stage: detect, map, validate, total"
- Changed
validate_invoice21 fields changed- removed
Input schema / properties / file_base64 / anyOfRemoved value: -[ - { - "type": "string" - }, - { - "type": "null" - } -] - changed
Input schema / properties / file_base64 / defaultPrevious value: -nullNew value: +"" - changed
Input schema / properties / file_base64 / descriptionPrevious value: -"The invoice file, base64-encoded: XML (UBL, CII, XRechnung, Peppol, FatturaPA, KSeF FA(3)) or a ZUGFeRD/Factur-X hybrid PDF. Up to 25 MB decoded."New value: +"Invoice file content, base64-encoded (standard alphabet). Accepted content: XML in UBL 2.1, CII D16B, XRechnung, Peppol BIS Billing 3, FatturaPA 1.2 or KSeF FA(2)/FA(3) syntax, or a ZUGFeRD 1.0/2.x or Factur-X hybrid PDF (the embedded XML is used). Max 25 MB decoded. Required unless `path` is given." - added
Input schema / properties / file_base64 / typeAdded value: +"string" - changed
Input schema / properties / lang / descriptionPrevious value: -"Language of the fix hints and rendering labels: en, de, pl, it or fr."New value: +"Language of the fix hints in the validation report and of the labels in HTML output. Default en." - added
Input schema / properties / lang / enumAdded value: +[ + "en", + "de", + "pl", + "it", + "fr" +] - removed
Input schema / properties / lang / patternRemoved value: -"^(en|de|pl|it|fr)$" - removed
Input schema / properties / path / anyOfRemoved value: -[ - { - "type": "string" - }, - { - "type": "null" - } -] - changed
Input schema / properties / path / defaultPrevious value: -nullNew value: +"" - changed
Input schema / properties / path / descriptionPrevious value: -"Local file path instead of file_base64; only honoured when the server runs over stdio on the same machine."New value: +"Absolute path of the invoice file on the machine running the server, used instead of file_base64. Only honoured over stdio (`python -m invoicein.mcp_server`); the hosted server at invoicein-api.peculiar.systems ignores it and answers with an error asking for file_base64." - added
Input schema / properties / path / typeAdded value: +"string" - added
Output schema / $defs / Validation / properties / errors / descriptionAdded value: +"Number of failed rules with severity error" - added
Output schema / $defs / Validation / properties / issues / descriptionAdded value: +"Failed rules, each with a fix hint" - added
Output schema / $defs / Validation / properties / notes / descriptionAdded value: +"Informational notes about the validation run" - changed
Output schema / $defs / Validation / properties / rule_sets / descriptionPrevious value: -"Rule sets applied, with versions"New value: +"Rule sets applied, with versions (XSD, EN 16931, XRechnung, Peppol, FatturaPA, KSeF, arithmetic)" - added
Output schema / $defs / Validation / properties / valid / descriptionAdded value: +"True when no rule of severity error failed" - added
Output schema / $defs / Validation / properties / warnings / descriptionAdded value: +"Number of failed rules with severity warning" - changed
Output schema / properties / document / descriptionPrevious value: -"Invoice header: id, issue_date, currency, due_date …"New value: +"Invoice header: id, issue_date, type_code, currency, due_date …" - added
Output schema / properties / error / descriptionAdded value: +"Present when ok is false: code, message, hint" - added
Output schema / properties / ok / descriptionAdded value: +"False when the file could not be read; then only `error` is set" - added
Output schema / properties / source / descriptionAdded value: +"Detected syntax, format, profile and container"
5 tool updates
- First observed
invoice_to_csv - First observed
invoice_to_datev - First observed
invoice_to_html - First observed
read_invoice - First observed
validate_invoice
Related MCP Connectors
Validate, generate & convert EU e-invoices (UBL, CII, XRechnung, Factur-X) — EN 16931 pre-validated.
Create, validate, convert & extract compliant e-invoices (UBL, Factur-X, ZUGFeRD, XRechnung)
EN 16931: validate invoice data, UBL/CII or PDF; emit XRechnung/Peppol XML, never a PDF.
Generate & validate EN 16931 e-invoices (Factur-X, ZUGFeRD, XRechnung); verification certificates
Related MCP Servers
- AlicenseAqualityDmaintenanceValidates electronic invoices (XRechnung, ZUGFeRD, Factur-X, Peppol BIS, etc.) against authority-pinned rules and explains failures.2151 npmMIT
- AlicenseAqualityDmaintenanceMCP server for DACH e-invoicing. Create XRechnung (UBL) and ZUGFeRD 2.3 (Factur-X CII) invoices, validate against EN 16931 rules, extract data from XML, and convert between UBL, CII and JSON formats.630 npm2MIT
- AlicenseNot gradedqualityCmaintenanceEU e-invoice validation, as a developer API. Check whether an electronic invoice conforms to EN 16931 — the European standard behind France, Germany, Belgium, Poland and the 2030 ViDA mandate — with a single REST call. Structured JSON errors mapped to the official BR-* business rules. No enterprise sales call required.MIT
- AlicenseNot gradedqualityAmaintenanceEnables AI assistants to locally parse, validate, audit, explain, generate, and convert XRechnung and ZUGFeRD/Factur-X e-invoices using official rule sets, fully offline with no API keys required.Apache 2.0
Glama MCP Gateway
Add one secure layer between your agents and this server.