Skip to main content
Glama

RevClamp MCP Server

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
viesModeNoVIES evaluation mode: 'VALID' (deterministic active VAT simulation, default), 'INVALID' (deterministic rejected VAT simulation), 'MS_UNAVAILABLE' (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 cover safety (readOnly, idempotent, non-destructive), and the description's restatement of read-only adds nothing. However it does add real behavioral context beyond annotations: deterministic simulation modes, LIVE SOAP/REST lookup against the European Commission, circuit-breaker hold behavior on MS_UNAVAILABLE, and stateless ephemeral audit records. It stops short of stating rate limits or failure/error behavior for LIVE calls.

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?

Purpose, behavior, return shape, and routing are front-loaded in a single dense paragraph with no filler sentences. It is long, and the field-by-field enumeration of structuredContent is somewhat list-heavy, but every clause carries information an agent needs.

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?

For a read-only, four-parameter tool with full schema coverage and no output schema, the description supplies the return-field inventory and the mode semantics that the schema leaves implicit. The only missing piece is what LIVE lookup failure or VIES error responses look like, which matters given the MS_UNAVAILABLE circuit-breaker path.

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 all four parameters are already documented; the baseline is 3. The description adds only marginal semantic value, chiefly the mandatory GR to EL prefix normalization and the reverse-charge framing of viesMode, both of which the schema largely repeats.

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?

States specific verbs (normalize, evaluate) and the exact resource: EU-27/XI B2B VAT identifiers and reverse-charge/VIES eligibility. It explicitly routes the accounting case to revclamp_reconcile_b2b_net_terms, so an agent can separate it from that sibling without opening either 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?

Gives a direct use case sentence ('Use this tool for EU/XI VAT tax compliance') and names the alternative tool plus the condition that selects it (Net-15/30/60 deposit and credit-note accounting). The mode enum is also framed with when-to-use semantics (deterministic 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.