calculate_points
Calculate the CNH points situation under Lei 14.071/2020: the applicable suspension threshold (40, or 30 with one gravissima, or 20 with two or more; always 40 for EAR drivers), remaining margin, percentage used, and risk level. currentPoints is the SUM of points in the rolling 12-month window and gravissimasCount the number of gravissima violations in that same window (e.g. taken from a delivered report's diagnosis). If that diagnosis has no points and its allAlerts carries fines_unverified, the points were NOT verified — do not call this with 0 or present the driver as having no points. Free of charge.
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": {
"currentPoints": "<currentPoints>",
"gravissimasCount": "<gravissimasCount>"
},
"name": "calculate_points"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| isEAR | No | Whether the driver has EAR (drives professionally); EAR keeps the limit at 40. | |
| currentPoints | Yes | Sum of all violation points in the rolling 12-month window (how Lei 14.071 counts them). | |
| gravissimasCount | Yes | How many gravissima violations are in that window. |