Skip to main content
Glama

Minha CNH

calculate_points

Read-only

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

NameRequiredDescriptionDefault
isEARNoWhether the driver has EAR (drives professionally); EAR keeps the limit at 40.
currentPointsYesSum of all violation points in the rolling 12-month window (how Lei 14.071 counts them).
gravissimasCountYesHow many gravissima violations are in that window.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnlyHint=true, and the description adds context the annotations cannot: it is free of charge, it is a pure computation over supplied inputs, and it warns about a real failure mode (unverified points from a report). It does not spell out the exact numeric rules per gravissima case beyond the threshold values, but the safety and cost profile are fully disclosed without contradicting the annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the purpose and the outputs, then the input semantics, then the caveat. It is dense but every clause carries information (threshold rules, window definition, unverified-points trap); the law citation and parenthetical example add slight weight but remain useful for an agent computing legal thresholds.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

There is no output schema, so the description carries the return-value burden and does so by listing the four outputs. Combined with the input semantics and the unverified-points guard, an agent has enough to call it correctly and interpret results, though it does not state edge-case handling (e.g. exactly what 'risk level' values are returned).

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the schema already documents all three parameters; nonetheless the description clarifies that `currentPoints` is the SUM over the rolling 12-month window and `gravissimasCount` counts only gravissima violations in that same window, and notes that EAR pins the ceiling at 40 — meaning beyond the schema's terse field blurbs.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Names a specific verb (calculate) and a specific domain resource (CNH points situation under Lei 14.071/2020), and enumerates exactly what it produces: suspension threshold, remaining margin, percentage used, risk level. An agent can distinguish this from lookup_violation_code or ask_doutor_multas without opening a schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives a clear when-to-use condition (feed the SUM of points and the gravissima count from the rolling window, e.g. from a delivered report's diagnosis) plus an explicit when-NOT guard: if the diagnosis has no `points` and `allAlerts` carries `fines_unverified`, do not call with 0. It stops short of naming a sibling alternative to use instead, so it falls just under the top mark.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources