Validate a Spanish tax ID
spain_validate_tax_idValidates Spanish tax IDs (DNI, NIE, NIF, CIF) using the official check-digit algorithm and returns document type, company legal form, and validity.
Instructions
Validate a Spanish tax ID (DNI, NIE, NIF or CIF) with the official check-digit algorithm. Returns document type, company legal form and validity.
ES: Valida un DNI, NIE, NIF especial o CIF español con el algoritmo oficial de dígito de control. Devuelve el tipo de documento, la forma jurídica (CIF) y si es válido.
Free tool (no API key, no payment). Official Spanish/EU open data.
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": {
"valor": "<valor>"
},
"name": "spain_validate_tax_id"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| valor | Yes | Documento a validar, p. ej. 12345678Z o B12345674 |