Check a VAT number against EU VIES
check_vatCheck 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, 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
| Name | Required | Description | Default |
|---|---|---|---|
| cui | Yes | Romanian tax identification number (CUI), e.g. '2816464'; 'RO' and leading zeros are accepted. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | The name the EU holds for this number. | |
| error | No | Set only when there is no answer (empty_query, invalid_cui, data_unavailable, plan_required ...); such a call is not counted. | |
| valid | No | True when VIES says the number is a live VAT number. | |
| cached | No | True when answered from the short-lived cache. | |
| reason | No | Why the check did not run. | |
| source | No | EU VIES. | |
| address | No | The address the EU holds. | |
| checked | No | False when VIES could not be reached. | |
| message | No | A sentence for the caller. | |
| warning | No | Present only on a mismatch. | |
| checkedAt | No | When VIES answered. | |
| vatNumber | No | The number as queried, e.g. RO14399840. | |
| nameMismatch | No | True when the two names clearly disagree. | |
| registryName | No | The name in the ONRC registry. |