Skip to main content
Glama

Check a VAT number against EU VIES

check_vat
Read-onlyIdempotent

Check a Romanian VAT number against the EU's VIES register in real time: is it a valid VAT number today, under which name and address (a company's; never a sole trader's), and does that name agree with the company registry. Use it before invoicing a new supplier or when a buyer asks whether the VAT number on file is still live.

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": {
      "cui": "<cui>"
    },
    "name": "check_vat"
  }
}

Input Schema

NameRequiredDescriptionDefault
cuiYesRomanian tax identification number (CUI), e.g. '2816464'; 'RO' and leading zeros are accepted.

Output Schema

NameRequiredDescriptionDefault
nameNoThe name the EU holds for this number.
errorNoSet only when there is no answer (empty_query, invalid_cui, data_unavailable, plan_required ...); such a call is not counted.
validNoTrue when VIES says the number is a live VAT number.
cachedNoTrue when answered from the short-lived cache.
reasonNoWhy the check did not run.
sourceNoEU VIES.
addressNoThe address the EU holds.
checkedNoFalse when VIES could not be reached.
messageNoA sentence for the caller.
warningNoPresent only on a mismatch.
checkedAtNoWhen VIES answered.
vatNumberNoThe number as queried, e.g. RO14399840.
nameMismatchNoTrue when the two names clearly disagree.
registryNameNoThe name in the ONRC registry.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already cover read-only, open-world, idempotent and non-destructive behavior. The description adds genuine context beyond them: the check is real time, validity is as of 'today', the returned name/address belong to a company and never a sole trader, and the response includes a name-vs-registry agreement check.

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?

Two sentences, front-loaded with the action and the returned data, then the usage triggers. Dense but readable; the parenthetical about sole traders is the only slightly awkward insertion.

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

Completeness5/5

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

An output schema exists, yet the description still summarizes what comes back (validity, name, address, name agreement), and the single parameter is fully documented. Nothing an agent needs to invoke and interpret this call is missing.

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 coverage is 100% and the 'cui' property already documents format, example, and acceptance of 'RO' and leading zeros. The description only reinforces the Romanian scope, adding little syntax or semantic meaning beyond the schema; 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 ('Check a Romanian VAT number against the EU's VIES register'), names the authority consulted, and clarifies the scope ('Romanian') plus the exact question answered. An agent can distinguish it from the company-lookup siblings 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 two concrete triggering situations (before invoicing a new supplier, when a buyer asks whether a number is still live), which is real when-to-use guidance. It does not name an alternative tool or state exclusions, so it stops short of the 5 bar.

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