Validate a Chilean RUT
validate_rutValidates a Chilean RUT/RUN by computing its modulo-11 check digit. Accepts formatted or unformatted input and returns valid=false for an invalid RUT as a normal result.
Instructions
Checks a Chilean RUT (RUN/RUT) with the modulo-11 check digit. Accepts '12.345.678-5' or '12345678-5'. An invalid RUT is a normal result (valid=false), not an error.
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": {
"rut": "<rut>"
},
"name": "validate_rut"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rut | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| valid | Yes | ||
| reason | No | ||
| formatted | No | ||
| normalized | No | ||
| expected_check_digit | No |