Skip to main content
Glama

Minha CNH

lookup_violation_code

Read-only

Look up a Brazilian RENAINF traffic-violation code (e.g. '5010', or with desdobramento '5029-1'). Returns the violation description, CTB article, points, severity category, multiplier, responsible party, and autosuspension info. The dataset carries no fine amounts (R$). 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": {
      "code": "<code>"
    },
    "name": "lookup_violation_code"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeYesRENAINF violation code, e.g. '5010' or '5029-1'.
desdobNoOptional desdobramento variant number.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations only declare readOnlyHint, so the description adds real value by disclosing the return payload (description, CTB article, points, severity, multiplier, responsible party, autosuspension) and two dataset limits: no fine amounts in R$ and no cost. It does not say what happens for an unrecognized code, but the behavioral picture is otherwise solid.

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?

Three short sentences, front-loaded with purpose, then return fields, then caveats. Nothing is redundant, though the trailing 'Free of charge.' fragment is punchier than it is informative.

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

Completeness5/5

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

With no output schema, the description carries the return-value burden and does so by listing the fields plus the notable absence of fine amounts. Combined with full schema coverage of the two parameters, an agent has enough to call this correctly.

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

Parameters3/5

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

Schema coverage is 100%, so both parameters are already documented; the description only mirrors the code examples. It notably fails to clarify the relationship between an inline suffix like '5029-1' in code and the separate desdob parameter, which is the one genuinely ambiguous spot.

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 and resource ('look up a Brazilian RENAINF traffic-violation code'), supplies concrete code examples including the desdobramento form, and enumerates what comes back. An agent can distinguish this from sibling tools like calculate_points or search_docs without opening the 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?

Implicitly clear that this is the tool for resolving a code into its official attributes, and 'Free of charge' signals no credit consumption, which matters given the get_credit_balance/get_usage siblings. It stops short of naming alternatives or stating when-not to use it (e.g. when a full report is wanted instead).

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