{"schemaVersion":"2025-12-11","name":"eu.iotpay/en16931-validator","title":"EU EN-16931 & XRechnung Deterministic Validator","version":"0.9.1","protocolVersion":"2025-03-26","organization":"iotpay.eu","did":"did:web:iotpay.eu","transport":{"type":"streamable-http","endpoint":"https://iotpay.eu/mcp"},"authentication":{"required":false,"schemes":["none","x402"]},"capabilities":{"tools":true,"prompts":true,"resources":true,"verifiableCredentials":true,"zeroDataRetention":true},"tools":[{"name":"validate_en16931_e_invoice","title":"EN 16931 & XRechnung Deterministic E-Invoice Validator","description":"Deterministically validates European B2B electronic invoices (EN 16931, XRechnung 3.0.2, ZUGFeRD / Factur-X, UBL 2.1, UN/CEFACT CII) using KoSIT-aligned XML/Schematron rules and XXE-safe defusedxml parsing. Use this tool whenever an agent must verify invoice XML syntax, CustomizationID, VAT/currency structure, or obtain cryptographic proof before ERP ingestion. Operates strictly read-only in volatile EU RAM (zero PII retention) and returns a signed Ed25519 W3C Verifiable Credential. Free Pre-GmbH technical preview (0.00 EUR, non-binding format check; not tax or legal advice).","annotations":{"title":"EN 16931 & XRechnung XML Validator","readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"inputSchema":{"type":"object","properties":{"xml_content":{"type":"string","minLength":20,"description":"Complete raw EN 16931 / XRechnung / UBL Invoice or UN/CEFACT CrossIndustryInvoice XML document string."},"max_accepted_fee_eur":{"type":"number","minimum":0,"description":"Optional maximum x402 fee in EUR accepted by the caller (planned post-GmbH list price 0.12 EUR; 0.00 EUR in Pre-GmbH Shadow-Pass). Omit if unpaid."},"ap2_intent_mandate_id":{"type":"string","description":"Optional AP2 (Agent Payments Protocol) intent mandate reference ID for audit correlation."}},"required":["xml_content"]},"outputSchema":{"type":"object","description":"W3C Verifiable Credential signed with Ed25519 (did:web:iotpay.eu) containing deterministic validation results and SHA-256 payload proof.","properties":{"@context":{"type":"array","items":{"type":"string"},"description":"W3C Verifiable Credentials context URIs."},"type":{"type":"array","items":{"type":"string"},"description":"Credential types (including 'VerifiableCredential' and domain attestation type)."},"issuer":{"type":"string","description":"Cryptographic issuer DID ('did:web:iotpay.eu')."},"issuanceDate":{"type":"string","description":"ISO-8601 UTC issuance timestamp."},"credentialSubject":{"type":"object","description":"Deterministic verification verdict, structured findings, and SHA-256 payload hash."},"proof":{"type":"object","description":"Ed25519 cryptographic signature proof verifiable via /.well-known/did.json.","properties":{"type":{"type":"string"},"verificationMethod":{"type":"string"},"proofPurpose":{"type":"string"},"signatureHex":{"type":"string"}}}},"required":["type","issuer","issuanceDate","credentialSubject","proof"]}},{"name":"screen_sanctions_and_kyb","title":"EU FSF & UN Sanctions / KYB Clearance Oracle","description":"Deterministically screens legal entities, suppliers, and beneficiaries against consolidated European Union Financial Sanctions Files (EU FSF), UN Security Council lists, and OpenSanctions. Use this tool during supplier onboarding, procurement, or payment pre-checks to avoid LLM hallucinations on sanctioned entity names. Read-only, zero-retention in volatile EU RAM, returning an Ed25519-signed Non-Hit or Hit Verifiable Credential. Free Pre-GmbH technical preview (0.00 EUR, non-binding data lookup; not legal or AML compliance advice).","annotations":{"title":"EU Sanctions & KYB Screening","readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":true},"inputSchema":{"type":"object","properties":{"entity_name":{"type":"string","minLength":2,"description":"Full legal company name or beneficiary name to screen (e.g. 'Muster Maschinenbau GmbH')."},"country_code":{"type":"string","default":"DE","minLength":2,"maxLength":2,"description":"Two-letter ISO 3166-1 alpha-2 country code of entity registration (default: 'DE')."},"vat_or_lei_id":{"type":"string","description":"Optional EU VAT ID (e.g. 'DE123456789') or 20-character ISO 17442 LEI for disambiguation."},"max_accepted_fee_eur":{"type":"number","minimum":0,"description":"Optional maximum x402 fee in EUR accepted by the caller (planned post-GmbH list price 0.15 EUR; 0.00 EUR in Pre-GmbH Shadow-Pass). Omit if unpaid."},"ap2_intent_mandate_id":{"type":"string","description":"Optional AP2 (Agent Payments Protocol) intent mandate reference ID for audit correlation."}},"required":["entity_name"]},"outputSchema":{"type":"object","description":"W3C Verifiable Credential signed with Ed25519 (did:web:iotpay.eu) containing deterministic validation results and SHA-256 payload proof.","properties":{"@context":{"type":"array","items":{"type":"string"},"description":"W3C Verifiable Credentials context URIs."},"type":{"type":"array","items":{"type":"string"},"description":"Credential types (including 'VerifiableCredential' and domain attestation type)."},"issuer":{"type":"string","description":"Cryptographic issuer DID ('did:web:iotpay.eu')."},"issuanceDate":{"type":"string","description":"ISO-8601 UTC issuance timestamp."},"credentialSubject":{"type":"object","description":"Deterministic verification verdict, structured findings, and SHA-256 payload hash."},"proof":{"type":"object","description":"Ed25519 cryptographic signature proof verifiable via /.well-known/did.json.","properties":{"type":{"type":"string"},"verificationMethod":{"type":"string"},"proofPurpose":{"type":"string"},"signatureHex":{"type":"string"}}}},"required":["type","issuer","issuanceDate","credentialSubject","proof"]}},{"name":"redact_gdpr_pii_text","title":"GDPR PII Shield & EU AI Act Anonymization Gate","description":"Deterministically detects and redacts DACH and European personally identifiable information (IBAN, German Steuer-ID, EU VAT/USt-IdNr., Handelsregister HRB/HRA numbers, email addresses, and phone numbers) from unstructured text before forwarding prompts to external LLMs. Use this tool as a pre-flight privacy filter in agent pipelines. Executes strictly read-only in volatile EU RAM (input text is never persisted) and issues a signed Ed25519 anonymization Verifiable Credential.","annotations":{"title":"GDPR PII Redaction Gate","readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"inputSchema":{"type":"object","properties":{"raw_text":{"type":"string","minLength":1,"description":"Unstructured prompt, ticket, or document text to scan and redact for GDPR PII entities."},"max_accepted_fee_eur":{"type":"number","minimum":0,"description":"Optional maximum x402 fee in EUR accepted by the caller (planned post-GmbH list price 0.008 EUR; 0.00 EUR in Pre-GmbH Shadow-Pass). Omit if unpaid."},"ap2_intent_mandate_id":{"type":"string","description":"Optional AP2 (Agent Payments Protocol) intent mandate reference ID for audit correlation."}},"required":["raw_text"]},"outputSchema":{"type":"object","description":"W3C Verifiable Credential signed with Ed25519 (did:web:iotpay.eu) containing deterministic validation results and SHA-256 payload proof.","properties":{"@context":{"type":"array","items":{"type":"string"},"description":"W3C Verifiable Credentials context URIs."},"type":{"type":"array","items":{"type":"string"},"description":"Credential types (including 'VerifiableCredential' and domain attestation type)."},"issuer":{"type":"string","description":"Cryptographic issuer DID ('did:web:iotpay.eu')."},"issuanceDate":{"type":"string","description":"ISO-8601 UTC issuance timestamp."},"credentialSubject":{"type":"object","description":"Deterministic verification verdict, structured findings, and SHA-256 payload hash."},"proof":{"type":"object","description":"Ed25519 cryptographic signature proof verifiable via /.well-known/did.json.","properties":{"type":{"type":"string"},"verificationMethod":{"type":"string"},"proofPurpose":{"type":"string"},"signatureHex":{"type":"string"}}}},"required":["type","issuer","issuanceDate","credentialSubject","proof"]}},{"name":"calculate_enwg14a_grid_preview","title":"German § 14a EnWG Grid-Fee & SMARD Load-Shift Preview","description":"Computes a non-binding German § 14a EnWG (Module 1 flat, Module 2 percentage, Module 3 time-variable) grid-fee reduction and Bundesnetzagentur SMARD day-ahead load-shift simulation by German postal code (PLZ) and controllable assets (EV wallbox, heat pump, PV/battery). Use this tool for residential or industrial electricity flexibility quotes in Germany instead of letting LLMs guess local DSO/VNB tariffs. Free, read-only, zero PII retention, no ads or affiliate links, returning a signed Ed25519 Verifiable Credential.","annotations":{"title":"§ 14a EnWG Grid Fee Preview","readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":true},"inputSchema":{"type":"object","properties":{"country_code":{"type":"string","enum":["DE","AT","NL"],"default":"DE","description":"ISO country code ('DE' for German VNB/§ 14a resolution; 'AT'/'NL' return DE-LU benchmark)."},"postal_code":{"type":"string","description":"5-digit German postal code (PLZ) for local distribution grid operator (VNB) resolution (e.g. '45127')."},"annual_consumption_kwh":{"type":"number","exclusiveMinimum":0,"description":"Estimated total annual electricity consumption in kilowatt-hours (kWh, e.g. 6500)."},"assets":{"type":"object","description":"Controllable household/site energy assets qualifying under § 14a EnWG (> 4.2 kW).","properties":{"has_ev":{"type":"boolean","default":false,"description":"True if an EV wallbox (> 4.2 kW) is installed."},"ev_annual_km":{"type":"number","default":0,"description":"Annual EV driving distance in km for charging load estimation."},"has_heat_pump":{"type":"boolean","default":false,"description":"True if an electric heat pump (> 4.2 kW) is installed."},"has_pv_or_battery":{"type":"boolean","default":false,"description":"True if solar PV or battery storage (> 4.2 kW) is installed."}}},"controllable_device_enwg14a":{"type":"boolean","description":"Explicit flag indicating whether a § 14a EnWG controllable consumption device (> 4.2 kW) is present."},"tso_control_area":{"type":"string","enum":["50hertz","amprion","tennet","transnetbw","DE-LU"],"default":"DE-LU","description":"German transmission system operator (ÜNB) control area or bidding zone ('DE-LU')."},"grid_module_14a":{"type":"string","enum":["module_1_flat","module_2_percentage","module_3_time_variable"],"default":"module_3_time_variable","description":"Selected § 14a EnWG tariff module ('module_1_flat', 'module_2_percentage', or 'module_3_time_variable')."},"load_kw":{"type":"number","exclusiveMinimum":0,"description":"Optional flexible electrical load in kilowatts (kW) for industrial dispatch simulation."},"ap2_intent_mandate_id":{"type":"string","description":"Optional AP2 (Agent Payments Protocol) intent mandate reference ID for audit correlation."}}},"outputSchema":{"type":"object","description":"W3C Verifiable Credential signed with Ed25519 (did:web:iotpay.eu) containing deterministic validation results and SHA-256 payload proof.","properties":{"@context":{"type":"array","items":{"type":"string"},"description":"W3C Verifiable Credentials context URIs."},"type":{"type":"array","items":{"type":"string"},"description":"Credential types (including 'VerifiableCredential' and domain attestation type)."},"issuer":{"type":"string","description":"Cryptographic issuer DID ('did:web:iotpay.eu')."},"issuanceDate":{"type":"string","description":"ISO-8601 UTC issuance timestamp."},"credentialSubject":{"type":"object","description":"Deterministic verification verdict, structured findings, and SHA-256 payload hash."},"proof":{"type":"object","description":"Ed25519 cryptographic signature proof verifiable via /.well-known/did.json.","properties":{"type":{"type":"string"},"verificationMethod":{"type":"string"},"proofPurpose":{"type":"string"},"signatureHex":{"type":"string"}}}},"required":["type","issuer","issuanceDate","credentialSubject","proof"]}},{"name":"verify_eudamed_udi_device","title":"EUDAMED MDR/IVDR Medical Device & UDI-DI Verifier","description":"Deterministically verifies EU Medical Device Regulation (MDR 2017/745) and IVDR (2017/746) device identifiers: GS1 GTIN-14 Modulo-10 check digit, Basic UDI-DI Modulo-97-10 check, HIBC/ICCBBA syntax, EUDAMED Actor SRN format, EMDN nomenclature code, and 4-digit Notified Body number. Use this tool in MedTech/hospital procurement pipelines to catch malformed UDIs before purchasing. Read-only, zero PII retention, free Pre-GmbH technical preview (0.00 EUR; non-binding syntax check, not a Notified Body conformity assessment).","annotations":{"title":"EUDAMED UDI & Actor SRN Check","readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"inputSchema":{"type":"object","properties":{"udi_di":{"type":"string","minLength":4,"description":"GS1 GTIN-14 (14 digits), Basic UDI-DI, HIBC, or ICCBBA device identifier (e.g. '04012345678901')."},"actor_srn":{"type":"string","description":"Optional EUDAMED Actor Single Registration Number (e.g. 'DE-MF-000012345')."},"emdn_code":{"type":"string","description":"Optional European Medical Device Nomenclature (EMDN) code (e.g. 'Z120302')."},"regulation":{"type":"string","enum":["MDR","IVDR"],"default":"MDR","description":"Applicable EU medical device regulation ('MDR' or 'IVDR')."},"risk_class":{"type":"string","enum":["I","IIa","IIb","III","A","B","C","D"],"default":"IIa","description":"Declared MDR (I, IIa, IIb, III) or IVDR (A, B, C, D) risk class."},"notified_body_code":{"type":"string","description":"Optional 4-digit EU Notified Body identifier (e.g. '0123' for TÜV SÜD)."},"max_accepted_fee_eur":{"type":"number","minimum":0,"description":"Ignored in Pre-GmbH free preview (0.00 EUR); planned post-GmbH fee 0.20 EUR."}},"required":["udi_di"]},"outputSchema":{"type":"object","description":"W3C Verifiable Credential signed with Ed25519 (did:web:iotpay.eu) containing deterministic validation results and SHA-256 payload proof.","properties":{"@context":{"type":"array","items":{"type":"string"},"description":"W3C Verifiable Credentials context URIs."},"type":{"type":"array","items":{"type":"string"},"description":"Credential types (including 'VerifiableCredential' and domain attestation type)."},"issuer":{"type":"string","description":"Cryptographic issuer DID ('did:web:iotpay.eu')."},"issuanceDate":{"type":"string","description":"ISO-8601 UTC issuance timestamp."},"credentialSubject":{"type":"object","description":"Deterministic verification verdict, structured findings, and SHA-256 payload hash."},"proof":{"type":"object","description":"Ed25519 cryptographic signature proof verifiable via /.well-known/did.json.","properties":{"type":{"type":"string"},"verificationMethod":{"type":"string"},"proofPurpose":{"type":"string"},"signatureHex":{"type":"string"}}}},"required":["type","issuer","issuanceDate","credentialSubject","proof"]}},{"name":"validate_dora_ict_provider","title":"DORA Art. 28/31 ICT Provider & ISO 17442 LEI Validator","description":"Validates ICT third-party service providers for EU DORA (Regulation (EU) 2022/2554) Register of Information (RoI) compliance: verifies 20-character ISO 17442 LEI Modulo 97-10 check digits, queries the live GLEIF Global LEI Index (api.gleif.org, CC0 Open Data) for Level-1 ACTIVE/ISSUED status and Level-2 direct/ultimate parent chains, validates European Unique Identifier (EUID) syntax and EBA ITS (EU) 2024/2956 Annex III ICT service codes (S01-S19), and screens ESA Critical ICT Third-Party Provider (CTPP) and non-EU/EEA parent concentration risk. Read-only, zero PII retention, free Pre-GmbH preview (0.00 EUR), returning a signed Ed25519 Verifiable Credential.","annotations":{"title":"DORA ICT Provider & LEI Check","readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":true},"inputSchema":{"type":"object","properties":{"provider_lei":{"type":"string","minLength":20,"maxLength":20,"description":"20-character ISO 17442 Legal Entity Identifier (LEI) of the ICT provider (e.g. '529900T8BM49AURSDO55')."},"provider_name":{"type":"string","description":"Optional legal entity name of the ICT third-party service provider."},"euid":{"type":"string","description":"Optional European Unique Identifier (e.g. 'DEHRB12345.B') per DORA ITS (EU) 2024/2956."},"ict_service_code":{"type":"string","default":"S01","description":"DORA ITS Annex III ICT service classification code ('S01' through 'S19', e.g. 'S17' for cloud)."},"supports_critical_function":{"type":"boolean","default":true,"description":"True if the ICT service supports a critical or important business function under DORA Art. 28."},"country_code":{"type":"string","default":"DE","minLength":2,"maxLength":2,"description":"Two-letter ISO 3166-1 alpha-2 country code of the ICT provider (default: 'DE')."},"max_accepted_fee_eur":{"type":"number","minimum":0,"description":"Ignored in Pre-GmbH free preview (0.00 EUR); planned post-GmbH fee 0.20 EUR."}},"required":["provider_lei"]},"outputSchema":{"type":"object","description":"W3C Verifiable Credential signed with Ed25519 (did:web:iotpay.eu) containing deterministic validation results and SHA-256 payload proof.","properties":{"@context":{"type":"array","items":{"type":"string"},"description":"W3C Verifiable Credentials context URIs."},"type":{"type":"array","items":{"type":"string"},"description":"Credential types (including 'VerifiableCredential' and domain attestation type)."},"issuer":{"type":"string","description":"Cryptographic issuer DID ('did:web:iotpay.eu')."},"issuanceDate":{"type":"string","description":"ISO-8601 UTC issuance timestamp."},"credentialSubject":{"type":"object","description":"Deterministic verification verdict, structured findings, and SHA-256 payload hash."},"proof":{"type":"object","description":"Ed25519 cryptographic signature proof verifiable via /.well-known/did.json.","properties":{"type":{"type":"string"},"verificationMethod":{"type":"string"},"proofPurpose":{"type":"string"},"signatureHex":{"type":"string"}}}},"required":["type","issuer","issuanceDate","credentialSubject","proof"]}}],"prompts":[{"name":"test_en16931_xrechnung_sample","description":"1-Click test vector: Validate a compliant German XRechnung 3.0.2 XML invoice and verify the Ed25519 VC.","arguments":[]},{"name":"test_sanctions_kyb_screening","description":"1-Click test vector: Screen a DACH B2B supplier against EU FSF & UN sanctions lists.","arguments":[{"name":"entity_name","description":"Supplier name to screen","required":false}]},{"name":"test_gdpr_pii_redaction","description":"1-Click test vector: Anonymize IBAN, VAT-ID, HRB and email in a German support ticket.","arguments":[]},{"name":"test_enwg14a_grid_quote","description":"1-Click test vector: Simulate § 14a EnWG Module 1-3 grid-fee savings for PLZ 45127 (EV + Heat Pump).","arguments":[{"name":"postal_code","description":"5-digit German postal code","required":false}]},{"name":"test_eudamed_udi_device","description":"1-Click test vector: Verify an EU MDR Class IIa medical device UDI-DI, Actor SRN and EMDN code.","arguments":[]},{"name":"test_dora_ict_provider","description":"1-Click test vector: Validate an ICT cloud provider LEI (Mod 97-10) & DORA RoI taxonomy.","arguments":[]}],"resources":[{"uri":"iotpay://samples/xrechnung-3.0.2.xml","name":"Sample XRechnung 3.0.2 XML Test Vector","description":"Ready-to-use compliant EN 16931 XML payload for testing validate_en16931_e_invoice.","mimeType":"application/xml"},{"uri":"iotpay://catalog/agent-card.json","name":"iotpay.eu W3C Agent Card & Service Directory","description":"Complete machine-readable catalog of all active Wave 1 and Pre-GmbH Preview MCP Oracles.","mimeType":"application/json"}]}