Validate Salvadoran DUI
validate_duiValidate a Salvadoran DUI by verifying its format and modulo-10 check digit. Returns validity status and reason if invalid.
Instructions
Validate a Salvadoran DUI (Documento Único de Identidad). Checks the format (8 digits, hyphen, 1 check digit — e.g. 01234567-8) and the official modulo-10 check digit. Returns { valid, reason? }.
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": {
"dui": "<dui>"
},
"name": "validate_dui"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dui | Yes | DUI to validate, e.g. "01234567-8". |