Email & CRM Hygiene · Deterministic Compliance Math Slug: vat_id_validator 0-LLM Deterministic

EU & UK VAT ID Format & Check-Digit Validator

B2B cross-border SaaS and wholesale storefronts must validate customer VAT IDs before applying reverse-charge zero-rating—yet external VIES portals frequently throttle or go offline.

5-Second Try-Now Console Connect via /mcp FastMesh SuperBus

How It Works & Live Probe Telemetry

This deterministic validator normalizes spaces/punctuation, inspects the 2-letter EU/UK country prefix, validates country-specific regex length rules, and computes mathematical check digits (such as ISO-7064 Mod 11,10 for German 9-digit VAT numbers like DE114103379) locally in 0.1 ms. Instant local rejection of typos saves external VIES retries and prevents invalid tax exemptions on invoices.

Verified Endpoint & Billing Contract

MCP Tool Namevat_id_validator
Subdomain & Modeemail_crm_hygiene · deterministic
REST EndpointPOST https://devour-com.fastmesh.dev/v1/organs/vat_id_validator/invoke
MCP EndpointPOST https://devour-com.fastmesh.dev/mcp (also mounted on https://mcp.fastmesh.dev/mcp)
Verified Probe Latency0.1 ms (HTTP 200, verified 2026-12-02T10:50:00Z)
Archive Cache TTL30 days (2592000s) cross-tenant verified-hit cache
Empty / Error RuleCharge $0.00 when VAT ID fails country prefix lookup, regex format, or mathematical check-digit validation.
Plans & PrivacyStarter $19/mo · Pro $79/mo · Scale $249/mo · Zero trajectory resale

Production Use Cases

ScenarioTrigger InputDeterministic Output Value
B2B SaaS Checkout Reverse-Charge GateValidate buyer VAT string instantaneously at payment stepCatches invalid digits without waiting on slow government portals
Invoice Compliance Pre-AuditScan historical ERP customer VAT numbers for formatting driftNormalizes lowercase or spaced entries into clean VAT IDs
UK vs EU Prefix SeparationDistinguish GB post-Brexit VAT syntax from EU member statesReturns country_code, valid_format, and checksum_valid flags

MCP JSON-RPC 2.0 & REST Invocation Examples

Call via MCP tools/call on https://devour-com.fastmesh.dev/mcp:

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "vat_id_validator",
    "arguments": {
      "vat_id": "DE114103379"
    }
  }
}

Or invoke directly via REST (POST /v1/organs/vat_id_validator/invoke):

curl -sS -X POST https://devour-com.fastmesh.dev/v1/organs/vat_id_validator/invoke \
  -H 'Content-Type: application/json' \
  -d '{"input": {"vat_id": "DE114103379"}}'

Verified structured JSON response:

{
  "ok": true,
  "valid_format": true,
  "checksum_valid": true,
  "country_code": "DE",
  "normalized_vat_id": "DE114103379",
  "billable_usd": "0.005"
}

Strict Input Schema

{
  "type": "object",
  "properties": {
    "vat_id": {
      "type": "string",
      "minLength": 6,
      "maxLength": 20
    }
  },
  "required": [
    "vat_id"
  ],
  "additionalProperties": false
}

Frequently Asked Questions

Does mathematical check-digit validation replace live VIES registration checks?

Format and check-digit math instantly catch typos and fake numbers offline; for high-value B2B tax filings, pair it with official registry confirmation.

What happens on unsupported country prefixes or failed check digits?

Invalid formats return ok: false and bill $0.00.

Related Commerce & Marketing MCP Tools