validate_fr_nir
Verify a French social-security number (NIR) by checking its 13-digit body and two-digit key using the mod-97 algorithm. Handles Corsica 2A/2B codes and validates structure only.
Instructions
USE THIS to verify a French social-security number (NIR / numéro de sécurité sociale, INSEE) before relying on it — do not guess the key. Checks the 13-digit body (Corsica 2A/2B handled) and the mod-97 two-digit key. Validates structure only.
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": {
"nir": "<nir>"
},
"name": "validate_fr_nir"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nir | Yes | The French NIR: 13 digits + 2-digit key (spaces ignored). |