Skip to main content
Glama

Validate EU/XI B2B VAT ID & VIES Reverse-Charge State

revclamp_validate_eu_vat_vies
Read-onlyIdempotent

Normalize EU-27 and Northern Ireland (XI) B2B VAT identifiers (including mandatory Greece ISO-3166 GR to EL prefix normalization) and evaluate cross-border 0% VAT reverse-charge eligibility, VIES consultation evidence, or MS_UNAVAILABLE circuit-breaker fulfillment hold actions. Read-only and non-destructive; supports deterministic simulation modes ('VALID', 'INVALID', 'MS_UNAVAILABLE') or real-time European Commission VIES SOAP/REST lookup ('LIVE'). Returns structuredContent containing ok, mode, statelessEphemeralAudit, simulatedViesLookup, tenantId, normalizedVat, reverseChargeEligible, and viesDecision (status, action, zeroRateAllowed, consultationId). Use this tool for EU/XI VAT tax compliance; use revclamp_reconcile_b2b_net_terms for wholesale Net-15/30/60 deposit and credit-note accounting.

Input Schema

NameRequiredDescriptionDefault
demoNoOptional simulation flag (boolean) for deterministic VIES gateway preset evaluation.
viesModeNoVIES evaluation mode: 'FORMAT_ONLY' (deterministic EU/XI syntax validation without consultation), 'VALID' (deterministic active VAT simulation, default), 'INVALID' (deterministic rejected VAT simulation), 'MS_UNAVAILABLE' or 'GLOBAL_MAX_CONCURRENT_REQ' (deterministic member-state outage circuit-breaker simulation), or 'LIVE' (real-time European Commission VIES lookup).
buyerVatIdYesRequired buyer EU or Northern Ireland VAT registration number to normalize and validate (e.g. 'DE123456789', 'GR123456789', 'NL123456789B01', 'XI123456789', max 40 chars).
sellerCountryNoTwo-letter EU-27 or XI member state prefix of the merchant's dispatch warehouse (e.g. 'DE', 'NL', 'FR', 'EL', 'XI'; 'GR' is automatically normalized to 'EL'; default: 'DE').
consultationNumberNoOptional VIES requester consultation reference number (e.g. 'WAPIAAAAW998877', max 64 chars) to attach to deterministic 'VALID' mode tax audit records.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnlyHint, idempotentHint and destructiveHint=false, so the safety profile is covered; the description still adds real value beyond that by disclosing the GR→EL prefix normalization rule, the deterministic-vs-LIVE execution distinction, the circuit-breaker hold behavior, and the statelessEphemeralAudit flag. It does not mention authentication requirements or rate/latency characteristics of the LIVE VIES call, which keeps it short of a 5.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Content is front-loaded: identity and normalization come first, then eligibility, then modes, then return shape, then sibling routing. The second sentence is a single very long clause chain dense with parenthetical field lists, which costs some readability, but every sentence carries information and nothing is padded.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema, the description usefully names the structuredContent keys (ok, mode, normalizedVat, reverseChargeEligible, viesDecision), which the agent would otherwise have to discover at runtime. Error semantics for a failed LIVE lookup and any auth prerequisites for the European Commission endpoint are the remaining gaps, but for a 5-parameter read-only tool this is close to sufficient.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema already documents every parameter, including the mode enum and its default. The description only partially restates the enum ('VALID', 'INVALID', 'MS_UNAVAILABLE', 'LIVE') and omits FORMAT_ONLY and GLOBAL_MAX_CONCURRENT_REQ, adding no syntax or format detail beyond what the schema provides — baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a specific verb pair (normalize/evaluate) and a precisely bounded resource (EU-27 and XI B2B VAT identifiers, reverse-charge eligibility). It explicitly names the sibling it is not (revclamp_reconcile_b2b_net_terms) and its domain, so an agent can distinguish it from all eight siblings without opening a schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It states the use case directly ('Use this tool for EU/XI VAT tax compliance') and supplies the alternative plus the condition that selects it (Net-15/30/60 deposit and credit-note accounting). The mode enumeration also tells the agent which evaluation path to pick for simulation vs. live lookup.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.