Skip to main content
Glama

Minha CNH

Server Details

Brazilian CNH reports, traffic-violation lookup and points calculator for AI agents.

If you are the author of this connector, you can claim ownership. Claimed connector authors can inspect health checks, view analytics, and manage their listing.
Status
Healthy
Uptime
100.0% over the last 24 hours
Last Tested
Transport
Streamable HTTP · MCP 2025-06-18
URL
ChatGPT
–
Claude
–

TDQS

A4.4/5.0

Scored across 12 tools

Disambiguation4/5

Most tools target clearly distinct actions, and the descriptions explicitly explain when to use each (e.g. get_report vs wait_for_report vs find_report_by_external_ref, get_usage vs get_credit_balance). The only mild overlap is the three separate report-retrieval paths, which an agent must read carefully to choose correctly, but each has a stated use case.

Naming Consistency5/5

All twelve tools follow a consistent verb_noun snake_case pattern (get_report, list_reports, request_report, calculate_points, lookup_violation_code). The one Portuguese-named tool, ask_doutor_multas, still fits the verb-object convention.

Tool Count5/5

Twelve tools is well within the ideal range and each earns its place: core report lifecycle, credit/usage accounting, consent flow, and free supporting lookups. No obvious filler or redundant tools.

Completeness4/5

The report lifecycle is thoroughly covered (request, wait, get, list, recover by external ref), plus consent, billing/usage, docs, and legal lookups. Minor gaps: no webhook subscription management despite webhooks being the recommended production delivery pattern, and no report cancellation.

Available Tools

12 tools
ask_doutor_multasA
Read-only
Inspect

Ask a general Brazilian traffic-law question, answered with retrieval over the CTB and state legislation. Generic legal information only — it knows no specific driver or report; do not include CPF or other personal data in the question, and every answer carries a disclaimer that it is not legal advice. Free of charge, but rate-limited per organization (a 429 error carries retryAfter).

Inputs: question (required), state, reportId.

calculate_pointsA
Read-only
Inspect

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.

Inputs: currentPoints (required), gravissimasCount (required), isEAR.

find_report_by_external_refA
Read-only
Inspect

Recover a report using your own externalRef (the idempotency key you passed to request_report) — the recovery path when you lost the reportId, e.g. after a crash or a timed-out call. Returns the most recent matching report for your organization, in the same shape and with the same caveats as get_report (incl. fines_unverified). Free of charge.

Inputs: externalRef (required).

get_credit_balanceA
Read-only
Inspect

Current credit balance for the organization, in centavos (prepaid; organizations under contract may have a credit line). creditLineLimit is the negative floor the balance may reach before new reports are blocked (0 = no credit line). Call this after a 402 from request_report: a balance at the floor means it is exhausted — ask your organization admin to top up in the API settings; retrying will not succeed. With a cnh_test_ key the result is synthetic (sandbox: true): sandbox reports never charge, so its 402 comes only from the sandbox's 402 test CPF.

Inputs: no named parameters.

get_reportA
Read-only
Inspect

Fetch a CNH report by id for the authenticated organization. status PROCESSING with diagnosis null means the report is still being generated — a normal state, not an error; check again later or use wait_for_report. A report from another organization returns not-found. If diagnosis.allAlerts contains fines_unverified, points and fines were NOT verified — never report them as zero or as "no fines"; the verdict (diagnosis.status) still holds. When holderConsent.status is required, the holder must authorize the lookup of the data in holderConsent.covers (points, fines) for the state in holderConsent.stateCode: offer request_holder_consent.

Inputs: reportId (required).

get_usageA
Read-only
Inspect

Report-API usage in the current per-minute and per-day windows against the organization's configured rate limits, plus the price per report in centavos. Use it to pace request_report calls; when any tool returns a 429 error, wait the retryAfter seconds it carries before retrying. With a cnh_test_ key it counts sandbox reports only, at price 0.

Inputs: no named parameters.

list_reportsA
Read-only
Inspect

List recent reports for the organization, most recent first. CPF is masked — use get_report for the full report. status filters client-side over the fetched page (fetch a larger limit if a status filter returns fewer rows than expected).

Inputs: limit (required), status.

lookup_violation_codeA
Read-only
Inspect

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.

Inputs: code (required), desdob.

request_reportAInspect

Request a CNH report for a Brazilian CPF; consumes one credit per new report. Returns immediately with a reportId — delivery is asynchronous (typically ~5 minutes): webhooks are the production pattern; use wait_for_report or poll get_report in interactive sessions. When retrying a logical request, reuse the SAME externalRef (idempotent per CPF+externalRef for 1 hour) — a fresh externalRef per retry attempt defeats idempotency and bills again. On a 402 error the credit line is exhausted: check get_credit_balance and contact your organization admin (not retryable); on a 429, wait the returned retryAfter seconds before retrying.

Inputs: cpf (required), externalRef.

search_docsA
Read-only
Inspect

Search the Minha CNH integration docs (API, webhooks, MCP, events). Returns up to 5 pages, each with a title, an excerpt and a markdownUrl you can fetch for the page as plain Markdown. Free of charge.

Inputs: query (required).

wait_for_reportA
Read-only
Inspect

Wait (bounded) for a report to finish and return it. Median delivery is around 190s, so the default 120s timeout returns {status:'PROCESSING', pollAfterSeconds} for most reports — pass timeoutSeconds: 240 for the best single-call odds, and prefer the webhook when you cannot afford to poll. Timing out is a normal outcome here, not an error: wait pollAfterSeconds, then call this tool again or use get_report. With a cnh_test_ key the wait is capped at 30s — sandbox reports are prompt or scheduled, so poll again as told. Does not consume credits. The returned report has the same shape and caveats as get_report (incl. fines_unverified).

Inputs: reportId (required), timeoutSeconds.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables users to query public Brazilian vehicle and traffic data from official sources, including vehicle debts (IPVA, licensing, open fines), federal infractions by plate/RENAVAM, vehicles registered to an owner, and driver's license status.
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Enables AI agents to query Brazilian public data such as CEP, CNPJ, banks, holidays, business days, FIPE vehicle prices, DDD, IBGE municipalities, .br domains, and ISBN, with read-only tools and offline document validation.
      14
      61 npm
      MIT
    Try in Browser

    Glama MCP Gateway

    Add one secure layer between your agents and this server.

    Resources