{"name":"Peppol Validator","version":"1.1.0","description":"Free Peppol BIS Billing 3.0 and EN16931 invoice validation API","protocolVersion":"2025-03-26","transport":"streamable-http","capabilities":{"tools":{"listChanged":false},"resources":{"listChanged":false}},"tools":[{"name":"validate_invoice","title":"Validate invoice","description":"Validate a Peppol UBL or CII XML invoice, or a ZUGFeRD / Factur-X PDF (pdfBase64): first against the XSD (UBL 2.1 Invoice/CreditNote, UN/CEFACT CII D16B, or the Factur-X 1.09.2 XSD of the profile), then against EN16931 and Peppol BIS Billing 3.0 schematron rules. XRechnung 3.0 files (UBL or CII) are checked against EN16931 plus the KoSIT XRechnung BR-DE rules instead of Peppol BIS. French invoices (business process type BT-23 is a cadre de facturation code such as S1 or B1; UBL or CII with the plain urn:cen.eu:en16931:2017, or Factur-X BASIC WL, EN 16931 or EXTENDED) also get the French BR-FR rules (FNFE-MPE France CTC schematron, AFNOR XP Z12-012 V1.4), in UBL instead of Peppol BIS; issue.rule is the rule (BR-FR-05), issue.id the assert (BR-FR-05_BT-22-1). Factur-X / ZUGFeRD CII files (by BT-24: MINIMUM, BASIC WL, BASIC, EXTENDED, the explicit EN 16931 profile id, and the plain urn:cen.eu:en16931:2017 when the XML is inside a Factur-X / ZUGFeRD PDF) are checked against the official Factur-X 1.09.2 / ZUGFeRD 2.5.2 XSD and Schematron of their profile instead of the CEN EN16931 rules (rule ids BR-*, BR-FXEXT-*, FX-SCH-A-*). Standalone CII XML with the plain urn:cen.eu:en16931:2017 gets the CII D16B XSD and the CEN EN16931 rules. Returns validation status, the XSD and rule sets applied (schema, ruleSets), errors, warnings, and invoice metadata. XSD errors have type \"xsd\", rule \"XSD\" (or \"XML\" when the file is not well-formed), and line and column. Optional: pass your own XSD (xsd, xsdMain) and/or ISO Schematron (schematron, schematronIncludes), e.g. a CIUS or in-house rules, to check the invoice against them instead; builtin=true runs the built-in checks as well. Issues from your files have custom: true, and the result lists them under custom. A PDF is checked first: the embedded invoice XML (factur-x.xml, xrechnung.xml, zugferd-invoice.xml), its file specification (AFRelationship, MIME type), the XMP metadata (ConformanceLevel against the XML's profile) and PDF/A-3 (basic check, not a full PDF/A validation); these issues have type \"pdf\" and rule PDF-01…PDF-21, the result has pdf (attachment, standard, xmp, pdfa), and then the embedded XML gets the checks above. Data quality hints that are not part of the official rules (rules ADV-EMPTY, ADV-VAT, ADV-IBAN, ADV-ENDPOINT: empty elements where no rule checks them, VAT identifiers with spaces or not in their country's format, IBANs with spaces or hyphens, the wrong length or wrong check digits, placeholder or invalid electronic addresses) come in a separate advisories array (type \"advisory\", severity \"info\"); they never change status, errors or warnings. \"valid\" means the invoice passed the XSD and the rule sets that ran (ruleSets); it does not mean the data is correct: these rules do not check that a VAT ID or Peppol ID exists or is registered, nor the format of VAT IDs, IBANs (except a warning on some German invoices) and most Peppol IDs (an EndpointID \"unknown\" under scheme 0204 passes). The validator reports these formats, placeholder Peppol IDs and empty elements no rule checks as data quality hints in advisories (ADV-VAT, ADV-IBAN, ADV-ENDPOINT, ADV-EMPTY), which never change status; whether an ID exists or is registered is not checked at all (no live lookups).","annotations":{"title":"Validate invoice","readOnlyHint":true,"openWorldHint":false}},{"name":"xml_to_pdf","title":"Convert invoice XML to PDF","description":"Convert a UBL or CII XML invoice to a human-readable PDF document. Returns the PDF as base64-encoded data.","annotations":{"title":"Convert invoice XML to PDF","readOnlyHint":true,"openWorldHint":false}},{"name":"validate_invoice_from_url","title":"Validate invoice from URL","description":"Fetch a UBL or CII XML invoice (or a ZUGFeRD / Factur-X PDF) from an HTTPS URL and validate it against its XSD (UBL 2.1, CII D16B, or the Factur-X profile XSD), then EN16931 and Peppol BIS Billing 3.0 (XRechnung 3.0 files: EN16931 plus the KoSIT XRechnung BR-DE rules instead of Peppol BIS; French invoices with a cadre de facturation code in BT-23: also the French BR-FR rules, in UBL instead of Peppol BIS; Factur-X / ZUGFeRD files: the XSD and Schematron of their profile, MINIMUM to EXTENDED; the plain EN 16931 id gets the EN 16931 profile only inside a PDF). The remote file must be ≤5MB and reachable over HTTPS. \"valid\" means the invoice passed the XSD and the rule sets that ran (ruleSets); it does not mean the data is correct: these rules do not check that a VAT ID or Peppol ID exists or is registered, nor the format of VAT IDs, IBANs (except a warning on some German invoices) and most Peppol IDs (an EndpointID \"unknown\" under scheme 0204 passes). The validator reports these formats, placeholder Peppol IDs and empty elements no rule checks as data quality hints in advisories (ADV-VAT, ADV-IBAN, ADV-ENDPOINT, ADV-EMPTY), which never change status; whether an ID exists or is registered is not checked at all (no live lookups).","annotations":{"title":"Validate invoice from URL","readOnlyHint":true,"openWorldHint":true}},{"name":"detect_format","title":"Detect invoice format","description":"Quickly detect whether an XML invoice is UBL or CII (Cross-Industry Invoice). Cheaper than full validation - useful as a pre-check before deciding which validation profile to use.","annotations":{"title":"Detect invoice format","readOnlyHint":true,"openWorldHint":false}},{"name":"explain_rule","title":"Explain validation rule","description":"Get a plain-language explanation of an EN16931 (BR-*) or Peppol BIS (PEPPOL-EN16931-R*) rule code, or of one of the main XRechnung (BR-DE-*) and French (BR-FR-*) rules. Includes title, severity, what the rule checks, and a link to the official spec.","annotations":{"title":"Explain validation rule","readOnlyHint":true,"openWorldHint":false}},{"name":"get_verification_challenge","title":"Get feedback verification challenge","description":"Get a HATCHA verification challenge to prove you are an AI agent. Required before calling submit_feedback. Returns a token and a challenge prompt (e.g. compute a SHA-256 hash).","annotations":{"title":"Get feedback verification challenge","readOnlyHint":true,"openWorldHint":false}},{"name":"submit_feedback","title":"Submit feedback","description":"Report the outcome of using the Peppol Validator. Requires HATCHA verification (call get_verification_challenge first). Report validation accuracy issues, API problems, or general feedback.","annotations":{"title":"Submit feedback","readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":false}}],"resources":2,"documentation":"https://peppolvalidator.com/developers","_links":{"self":"https://peppolvalidator.com/mcp","serverCard":"https://peppolvalidator.com/.well-known/mcp/server-card.json","openapi":"https://peppolvalidator.com/openapi.json"}}