validate_cpf
Validates Brazilian CPF (individual taxpayer ID) using official modulo-11 checksum. Returns validity boolean and CPF string, or reason for failure.
Instructions
Validates a Brazilian CPF (Cadastro de Pessoas Físicas) — the 11-digit individual taxpayer identification number issued by the Receita Federal. Applies the official two-pass modulo-11 checksum algorithm. Returns { valid: boolean, cpf: string } for valid CPFs, or { valid: false, reason: string } for invalid format or failed checksum. Rejects known invalid sequences (all same digits). Use when processing Brazilian e-commerce orders, fintech onboarding, KYC flows, or any compliance workflow requiring a verified Brazilian individual tax ID. Offline validation only — does not query Receita Federal.
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 | 11-digit Brazilian CPF, with or without formatting. Example: '123.456.789-09' or '12345678909' |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| valid | Yes | ||
| cpf | No | ||
| reason | No |