MCP server for EU VAT ID validation (USt-IdNr) via BZSt eVatR API
Three well-named, domain-specific tools with strong descriptions (194 - 280 chars) and complete input schemas. All parameters are typed and described. Tool annotations (readOnlyHint, idempotentHint, openWorldHint) are present. Output is JSON-structured. However, output schemas are not formally documented in the tool definitions, LLMs must infer response structure from descriptions. Error handling is implicit (relies on API responses) rather than explicit recovery guidance. No pagination or batch limits enforced in code visible here.
Qualified confirmation (qualifizierte Bestätigung) for §6a UStG compliance. Verifies the trading partner's VAT ID and checks their company name, city, postal code, and street against the official records of the EU member state via the BZSt eVatR API. Returns match codes per field: A = match, B = no match (do not ship!), C = not requested, D = not available. This is the legally required proof for German businesses claiming zero-rate VAT on intra-community deliveries. Creates trust protection (Vertrauensschutz) under §6a Abs. 4 UStG.
Batch-validate up to 100 EU VAT IDs in parallel. Validates all provided VAT IDs concurrently and returns a summary with total/valid/invalid/error counts plus individual results for each ID. Useful for checking customer lists, supplier databases, or periodic compliance reviews.
Validate a single EU VAT ID (format check + live BZSt/VIES API verification). Checks the format against country-specific patterns for all 27 EU member states, validates the German check digit (ISO/IEC 7064 MOD 11,10), then verifies the ID against the VIES API. Returns structured JSON with validity status, error codes, and company details when available.
Output schemas not documented in tool definitions. LLMs must infer response structure from descriptions alone. ValidationResult and BatchValidationResult models exist in code but are not exposed as formal schema in tool registration.
Error handling lacks explicit recovery guidance. Tools return JSON with error_code and error_description, but descriptions do not explain what the LLM should do on failure (e.g., 'If error_code 201, the format is invalid, suggest the user check the country prefix').
validate_batch accepts up to 100 VAT IDs but no explicit validation or error handling for exceeding the limit is visible in the tool definition. BatchLimitError is imported but not documented in the tool description.
Inferred effective spec: <=2025-11-25.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | C | 63 | <=2025-11-25 | v2 |
qualified_confirmation requires 'own_vat_id' to start with 'DE' but this constraint is only mentioned in the parameter description, not enforced as a regex pattern or enum in the schema.
No pagination or result limits documented for batch validation. If 100 VAT IDs are validated, the response could be very large. No guidance on how to handle large result sets.