validate_cpf
Validates a Brazilian CPF (Cadastro de Pessoas Físicas) using the official Receita Federal checksum algorithm. Use this tool when processing Brazilian user registrations, invoices, tax forms, e-commerce orders, or any document requiring a valid Brazilian individual taxpayer number. Input must be an 11-digit string (with or without formatting). Returns whether the CPF is mathematically valid, along with the cleaned CPF. Does not verify if the CPF exists in the Receita Federal database — only validates the format and checksum.
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": {
"cpf": "<cpf>"
},
"name": "validate_cpf"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cpf | Yes | The Brazilian CPF to validate. Formatting (dots and dash) is automatically removed. Example: '123.456.789-09' or '12345678909' |