addedInput schema / properties / file_base64 / default
Added value: +""
addedInput schema / properties / file_base64 / description
Added 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."
addedInput schema / properties / lang / description
Added value: +"Language of the fix hints in the validation report and of the labels in HTML output. Default en."
addedInput schema / properties / lang / enum
Added value: +[
+ "en",
+ "de",
+ "pl",
+ "it",
+ "fr"
+]
addedInput schema / properties / path
Added value: +{
+ "default": "",
+ "description": "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.",
+ "title": "Path",
+ "type": "string"
+}
removedInput schema / required
Removed value: -[
- "file_base64"
-]
addedOutput schema / $defs
Added value: +{
+ "Issue": {
+ "additionalProperties": true,
+ "properties": {
+ "field": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Affected canonical field with its EN 16931 BT/BG number",
+ "title": "Field"
+ },
+ "hint": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Plain-language explanation of what the sender must fix, in the requested language",
+ "title": "Hint"
+ },
+ "id": {
+ "description": "Rule id, e.g. BR-CO-15, BR-DE-2, PEPPOL-EN16931-R040, XSD-UNEXPECTED-ELEMENT",
+ "title": "Id",
+ "type": "string"
+ },
+ "message": {
+ "description": "The rule's own message",
+ "title": "Message",
+ "type": "string"
+ },
+ "severity": {
+ "description": "error, warning or info",
+ "title": "Severity",
+ "type": "string"
+ },
+ "who": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Who has to act: sender or receiver",
+ "title": "Who"
+ }
+ },
+ "required": [
+ "id",
+ "severity",
+ "message"
+ ],
+ "title": "Issue",
+ "type": "object"
+ },
+ "SourceInfo": {
+ "additionalProperties": true,
+ "properties": {
+ "container": {
+ "description": "xml or pdf",
+ "title": "Container",
+ "type": "string"
+ },
+ "format": {
+ "description": "Detected format: xrechnung-ubl, xrechnung-cii, ubl, cii, peppol-bis3, zugferd, facturx, fatturapa, ksef-fa3, ksef-fa2",
+ "title": "Format",
+ "type": "string"
+ },
+ "profile": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Profile or specification, e.g. 'EN 16931', 'XRechnung 3.0', 'FA (3)'",
+ "title": "Profile"
+ },
+ "syntax": {
+ "description": "UBL, CII, FatturaPA or FA3",
+ "title": "Syntax",
+ "type": "string"
+ }
+ },
+ "required": [
+ "syntax",
+ "format",
+ "container"
+ ],
+ "title": "SourceInfo",
+ "type": "object"
+ },
+ "Validation": {
+ "additionalProperties": true,
+ "properties": {
+ "errors": {
+ "description": "Number of failed rules with severity error",
+ "title": "Errors",
+ "type": "integer"
+ },
+ "issues": {
+ "description": "Failed rules, each with a fix hint",
+ "items": {
+ "$ref": "#/$defs/Issue"
+ },
+ "title": "Issues",
+ "type": "array"
+ },
+ "notes": {
+ "description": "Informational notes about the validation run",
+ "items": {
+ "type": "string"
+ },
+ "title": "Notes",
+ "type": "array"
+ },
+ "rule_sets": {
+ "description": "Rule sets applied, with versions (XSD, EN 16931, XRechnung, Peppol, FatturaPA, KSeF, arithmetic)",
+ "items": {
+ "additionalProperties": true,
+ "type": "object"
+ },
+ "title": "Rule Sets",
+ "type": "array"
+ },
+ "valid": {
+ "description": "True when no rule of severity error failed",
+ "title": "Valid",
+ "type": "boolean"
+ },
+ "warnings": {
+ "description": "Number of failed rules with severity warning",
+ "title": "Warnings",
+ "type": "integer"
+ }
+ },
+ "required": [
+ "valid",
+ "errors",
+ "warnings",
+ "rule_sets",
+ "issues"
+ ],
+ "title": "Validation",
+ "type": "object"
+ }
+}
addedOutput schema / additionalProperties
Added value: +true
addedOutput schema / properties / document
Added value: +{
+ "anyOf": [
+ {
+ "additionalProperties": true,
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Invoice header: id, issue_date, type_code, currency, due_date …",
+ "title": "Document"
+}
addedOutput schema / properties / error
Added value: +{
+ "anyOf": [
+ {
+ "additionalProperties": true,
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Present when ok is false: code, message, hint",
+ "title": "Error"
+}
addedOutput schema / properties / ok
Added value: +{
+ "description": "False when the file could not be read; then only `error` is set",
+ "title": "Ok",
+ "type": "boolean"
+}
removedOutput schema / properties / result
Removed value: -{
- "title": "Result",
- "type": "string"
-}
addedOutput schema / properties / source
Added value: +{
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SourceInfo"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Detected syntax, format, profile and container"
+}
addedOutput schema / properties / validation
Added value: +{
+ "anyOf": [
+ {
+ "$ref": "#/$defs/Validation"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null
+}
changedOutput schema / required
Previous value: -[
- "result"
-]New value: +[
+ "ok"
+]
changedOutput schema / title
Previous value: -"validate_invoiceOutput"New value: +"ValidateResult"