Skip to main content
Glama

Vat validate

vat_validate
Read-onlyIdempotent

Validates an EU VAT number against the European Commission's VIES service: registered or not, with the registered company name and address where the member state shares them. Checks the number's format per country first. Covers the 27 EU states and Northern Ireland (XI); UK (GB) numbers get a format check only. Costs $0.003 USDC on Base via x402.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "vat": "<vat>"
    },
    "name": "vat_validate"
  }
}

Input Schema

NameRequiredDescriptionDefault
vatYesVAT number with its country prefix (DE811569869, IE6388047V)
countryNoTwo-letter country code when vat has no prefix

Output Schema

NameRequiredDescriptionDefault
nameNostring, e.g. "GOOGLE IRELAND LIMITED"
inputNostring, e.g. "IE6388047V"
notesNostring, e.g. "valid comes from VIES, the European Commission's service th
validNoboolean, e.g. true
vatIdNostring, e.g. "IE6388047V"
numberNostring, e.g. "6388047V"
reasonNonull, e.g. null
addressNostring, e.g. "3RD FLOOR, GORDON HOUSE, BARROW STREET, DUBLIN 4"
countryNostring, e.g. "IE"
registeredNoboolean, e.g. true
checkedWithNostring, e.g. "vies"
formatValidNoboolean, e.g. true
requestDateNostring, e.g. "2026-11-08T17:08:58.232Z"

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": true,
      +  "properties": {
      +    "address": {
      +      "description": "string, e.g. \"3RD FLOOR, GORDON HOUSE, BARROW STREET, DUBLIN 4\""
      +    },
      +    "checkedWith": {
      +      "description": "string, e.g. \"vies\""
      +    },
      +    "country": {
      +      "description": "string, e.g. \"IE\""
      +    },
      +    "formatValid": {
      +      "description": "boolean, e.g. true"
      +    },
      +    "input": {
      +      "description": "string, e.g. \"IE6388047V\""
      +    },
      +    "name": {
      +      "description": "string, e.g. \"GOOGLE IRELAND LIMITED\""
      +    },
      +    "notes": {
      +      "description": "string, e.g. \"valid comes from VIES, the European Commission's service th"
      +    },
      +    "number": {
      +      "description": "string, e.g. \"6388047V\""
      +    },
      +    "reason": {
      +      "description": "null, e.g. null"
      +    },
      +    "registered": {
      +      "description": "boolean, e.g. true"
      +    },
      +    "requestDate": {
      +      "description": "string, e.g. \"2026-11-08T17:08:58.232Z\""
      +    },
      +    "valid": {
      +      "description": "boolean, e.g. true"
      +    },
      +    "vatId": {
      +      "description": "string, e.g. \"IE6388047V\""
      +    }
      +  },
      +  "type": "object"
      +}
  2. First observed

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, openWorld and non-destructive, so the safety profile is covered. The description adds genuinely useful context beyond them: the $0.003 USDC Base x402 payment cost, the partial-data caveat ('where the member state shares them'), and the GB format-only limitation. It does not discuss rate limits, failure modes, or VIES downtime behaviour, which matter for an open-world external call, so a 3 rather than higher.

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

Conciseness5/5

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

Three tight sentences, front-loaded with the verb and resource, then the coverage caveats, then the cost. No redundant restatement of the tool name and 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?

With an output schema present, the description need not document return values, and annotations plus 100% schema coverage handle parameters and safety. It covers the unusual bits an agent would otherwise miss — paid x402 invocation and the granularity limits of VIES data. Minor gap: no mention of what happens on VIES unavailability or invalid-format outcomes.

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 both parameters are already documented with examples and patterns. The description reinforces that the number must carry a country prefix and that per-country format checking happens, but adds little syntactic or semantic detail the schema does not already carry; 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?

States a specific verb and resource ('Validates an EU VAT number') plus the authoritative backend (European Commission's VIES) and the response content (registered status, company name, address). The coverage scope (27 EU states, Northern Ireland XI, GB format-only) lets an agent distinguish this from format-only or non-EU validation tools without opening the schema.

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

Usage Guidelines4/5

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

Gives clear context for when this applies: EU and XI numbers get full VIES lookup, GB numbers get a format check only, and the country-format precheck is described. It stops short of naming alternatives or when-not-to-use cases (e.g. non-EU numbers, email or address validation siblings), so the agent must infer the boundary itself.

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.

Resources