{"name":"stanza-mcp-server","version":"1.0.0","description":"Model Context Protocol server for Stanza enterprise validation and transformation microservices.","endpoint":"https://stanzaapi.com/mcp","transport":"streamable-http","protocolVersion":"2025-03-26","tools":[{"name":"validate_iban","title":"Validate IBAN & BIC/SWIFT","description":"Validate an International Bank Account Number (IBAN, ISO 13616) with MOD-97-10 checksum, country structure, BBAN parsing, SEPA reachability, and print/electronic formatting. Optionally validate a BIC/SWIFT code (ISO 9362).","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"iban":{"type":"string","minLength":4,"maxLength":42,"description":"International Bank Account Number (ISO 13616); spaces are allowed"},"bic":{"description":"Optional BIC/SWIFT code (ISO 9362) validated alongside the IBAN","type":"string","minLength":8,"maxLength":11}},"required":["iban"]}},{"name":"parse_x12_edi","title":"Parse ANSI X12 Healthcare EDI","description":"Parse or validate ANSI X12 EDI healthcare transactions (837P claims, 835 remittance advice, 270/271 eligibility) into structured JSON with interchange envelopes, delimiters, SNIP validation levels 1-4, and per-segment error diagnostics.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"edi":{"type":"string","minLength":1,"description":"Raw ANSI X12 EDI text (interchange envelope included)"},"operation":{"description":"Operation to run: \"parse\" (default) returns structured JSON, \"validate\" runs envelope and SNIP checks","anyOf":[{"type":"string","const":"parse"},{"type":"string","const":"validate"}]},"snipLevel":{"description":"SNIP validation level 1-4 (validate operation)","type":"integer","minimum":1,"maximum":4},"validateSnip":{"description":"Run SNIP type validation during parse","type":"boolean"}},"required":["edi"]}},{"name":"decode_gs1","title":"Decode GS1 Barcode & Digital Link","description":"Decode a GS1 barcode element string (GS1-128, DataMatrix, FNC1 or bracketed Application Identifiers) or a GS1 Digital Link URI into fields such as GTIN, lot number, serial number, and expiration date.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"string","minLength":1,"maxLength":2048,"description":"GS1 barcode element string (GS1-128, DataMatrix, FNC1 or bracketed AIs) or GS1 Digital Link URI"},"domain":{"description":"Optional domain used to resolve GS1 Digital Link short keys","type":"string","format":"uri"}},"required":["data"]}},{"name":"validate_iso6346_container","title":"Validate ISO 6346 Container Number","description":"Validate an ISO 6346 intermodal shipping container number (BIC owner prefix, equipment category identifier, serial number, modulo-11 check digit) and optionally a 4-character ISO 6346 size/type code.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"containerNumber":{"type":"string","minLength":4,"maxLength":15,"description":"ISO 6346 container number, e.g. CSQU3054383 (owner prefix, category, serial, check digit)"},"sizeTypeCode":{"description":"Optional ISO 6346 size/type code, e.g. 45G1","type":"string","minLength":4,"maxLength":4}},"required":["containerNumber"]}},{"name":"parse_iso20022","title":"Parse ISO 20022 Payment XML","description":"Parse or validate ISO 20022 financial XML messages: pacs.008 credit transfers, pain.001 payment initiation, and camt.053 bank statements, with automatic message-type detection and structured JSON output for payment reconciliation.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"xml":{"type":"string","minLength":1,"description":"Raw ISO 20022 XML message"},"messageType":{"description":"Expected message type: \"auto\" (default) detects it, or pin pacs.008, camt.053, pain.001","anyOf":[{"type":"string","const":"auto"},{"type":"string","const":"pacs.008"},{"type":"string","const":"camt.053"},{"type":"string","const":"pain.001"}]},"operation":{"description":"Operation to run: \"parse\" (default) returns structured JSON, \"validate\" runs structural checks","anyOf":[{"type":"string","const":"parse"},{"type":"string","const":"validate"}]}},"required":["xml"]}},{"name":"calculate_cbam","title":"Calculate EU CBAM Emissions & Liability","description":"Calculate EU Carbon Border Adjustment Mechanism (CBAM, Regulation (EU) 2023/956) embedded emissions and liability for imported goods from CN code, country of origin, mass, production route, electricity consumption, and precursor materials.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"cnCode":{"type":"string","minLength":4,"maxLength":12,"description":"Combined Nomenclature (CN) code of the imported good, e.g. 72071110"},"countryOfOrigin":{"type":"string","minLength":2,"maxLength":2,"description":"Two-letter ISO country of origin, e.g. TR"},"massKg":{"type":"number","exclusiveMinimum":0,"description":"Imported mass in kilograms"},"productionRoute":{"description":"Optional production route key, e.g. BF_BOF or EAF","type":"string"},"customDirectFactor":{"description":"Optional specific direct emissions factor (tCO2e per tonne)","type":"number","minimum":0},"customElectricityConsumption":{"description":"Optional electricity consumption (MWh per tonne)","type":"number","minimum":0},"precursors":{"description":"Optional precursor materials with CN code, mass, and specific direct factor","type":"array","items":{"type":"object","properties":{"cnCode":{"type":"string","minLength":4,"maxLength":12},"massKg":{"type":"number","exclusiveMinimum":0},"specificDirectFactor":{"type":"number","minimum":0}},"required":["cnCode","massKg"]}},"originCarbonPricePaidEur":{"description":"Carbon price already paid in the country of origin (EUR per tonne)","type":"number","minimum":0},"euEtsBenchmarkPriceEur":{"description":"Optional EU ETS benchmark price override (EUR per tonne)","type":"number","minimum":0}},"required":["cnCode","countryOfOrigin","massKg"]}},{"name":"validate_lei","title":"Validate Legal Entity Identifier (LEI)","description":"Validate a Legal Entity Identifier (LEI, ISO 17442) checksum and 20-character format, resolving the LOU prefix and entity code; optionally verify live issuance status against the GLEIF registry.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"lei":{"type":"string","minLength":1,"maxLength":100,"description":"20-character Legal Entity Identifier (ISO 17442)"},"live":{"description":"When true, verify issuance status against the live GLEIF registry","type":"boolean"}},"required":["lei"]}},{"name":"validate_vat","title":"Validate EU & UK VAT Number","description":"Validate an EU or UK VAT number (VIES/HMRC syntax and checksum rules) and return the applicable standard and reduced VAT rates; optionally verify live registration status against VIES or HMRC.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"vatNumber":{"type":"string","minLength":4,"maxLength":20,"description":"Full VAT number including the country prefix, e.g. DE123456789 or GB123456789"},"live":{"description":"When true, verify registration status against VIES (EU) or HMRC (UK)","type":"boolean"}},"required":["vatNumber"]}},{"name":"validate_iata_awb","title":"Validate IATA Air Waybill (AWB)","description":"Validate an IATA air waybill (AWB) number: 3-digit airline prefix, 8-digit serial number, and modulo-7 check digit per IATA Resolution 600a for air cargo freight documentation.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"awb":{"type":"string","minLength":1,"maxLength":64,"description":"IATA air waybill number, e.g. 016-12345675 (3-digit airline prefix + serial + check digit)"}},"required":["awb"]}},{"name":"decode_udi","title":"Decode FDA & EU MDR Unique Device Identification","description":"Decode a Unique Device Identification (UDI) string from GS1, HIBCC, or ICCBBA carriers into the device identifier (DI) and production identifiers (lot, serial, expiration), with FDA GUDID and EU MDR compliance checks; optionally verify live GUDID records.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"udi":{"type":"string","minLength":1,"maxLength":500,"description":"UDI carrier string from GS1, HIBCC, or ICCBBA, e.g. (01)00884838012345(17)260831(10)LOT7788"},"live":{"description":"When true, verify the device identifier against the live FDA GUDID registry","type":"boolean"}},"required":["udi"]}},{"name":"validate_peppol","title":"Validate Peppol BIS Billing 3.0 E-Invoice","description":"Validate or parse a Peppol BIS Billing 3.0 e-invoice (OASIS UBL 2.1 Invoice/CreditNote or UN/CEFACT CII) against CEN TC 434 business rules, returning violations, billing profile, totals, and extracted invoice JSON.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"xml":{"type":"string","minLength":1,"description":"Raw Peppol e-invoice XML (OASIS UBL 2.1 Invoice/CreditNote or UN/CEFACT CII)"},"operation":{"description":"Operation to run: \"validate\" (default) returns rule violations, \"parse\" returns the extracted invoice","anyOf":[{"type":"string","const":"validate"},{"type":"string","const":"parse"}]}},"required":["xml"]}},{"name":"validate_dscsa","title":"Verify FDA DSCSA Pharmaceutical Identifier","description":"Verify a pharmaceutical product identifier under FDA DSCSA (Drug Supply Chain Security Act): a GS1 DataMatrix barcode or the GTIN + serial + lot + expiration element set, with NDC/GTIN checks and expiry validation.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"barcode":{"description":"Raw GS1 DataMatrix barcode element string; alternative to the four DSCSA elements","type":"string","maxLength":500},"gtin":{"description":"14-digit GTIN of the pharmaceutical product","type":"string","pattern":"^\\d{14}$"},"serial":{"description":"Serial number (up to 20 characters)","type":"string","minLength":1,"maxLength":20},"lot":{"description":"Lot or batch number (up to 20 characters)","type":"string","minLength":1,"maxLength":20},"expirationDate":{"description":"Expiration date (YYYY-MM-DD or YYMMDD)","type":"string","minLength":6,"maxLength":10},"referenceDate":{"description":"Optional reference date for expiry calculations (defaults to today)","type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}}}},{"name":"validate_facturx","title":"Validate Factur-X / ZUGFeRD E-Invoice (EN 16931)","description":"Validate or parse a Factur-X, ZUGFeRD 2.x or XRechnung e-invoice (UN/CEFACT CrossIndustryInvoice XML) against EN 16931 business rules BR-01..BR-65, returning the detected profile (MINIMUM, BASIC WL, BASIC, EN 16931, EXTENDED, XRechnung), violations with exact rule IDs, and extracted invoice JSON. PDF/A-3 attachment extraction is available on the HTTP API.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"xml":{"type":"string","minLength":1,"description":"Raw UN/CEFACT CrossIndustryInvoice XML (Factur-X 1.0.x / ZUGFeRD 2.x / XRechnung CII)"},"operation":{"description":"Operation to run: \"validate\" (default) returns the detected profile and rule violations, \"parse\" returns the extracted invoice","anyOf":[{"type":"string","const":"validate"},{"type":"string","const":"parse"}]}},"required":["xml"]}}]}