validate_dni
Validate a Spanish DNI or NIE by checking its control letter via the mod-23 algorithm and identifying if it is a DNI or NIE.
Instructions
USE THIS to verify a Spanish DNI or NIE before relying on it — do not guess the control letter. Checks the mod-23 control letter and returns whether it is a DNI or NIE.
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": {
"id": "<id>"
},
"name": "validate_dni"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The Spanish DNI (8 digits + letter) or NIE (X/Y/Z + 7 digits + letter). |