Check a Spanish NIF, DNI or NIE
check_spanish_nifTests the control character of a Spanish DNI (eight digits and a letter), an NIE (X, Y or Z, seven digits and a letter) or the NIF of an entity (a letter, seven digits and a control digit or letter). When the control character is left out it is worked out. ES in front is accepted. For numbers that start with K, L or M only the form is recognised. It does not tell whether the number was ever issued.
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": {
"number": "<number>"
},
"name": "check_spanish_nif"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| number | Yes | The number, for example "12345678Z", "X1234567L" or "ESB12345674". |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | ||
| valid | Yes | ||
| number | No | ||
| reason | No | ||
| message | No | ||
| control_character | No | ||
| control_character_tested | No | ||
| expected_control_character | No | ||
| control_character_was_added | No |