Skip to main content
Glama

Minha CNH

request_report

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.

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": {
      "cpf": "<cpf>"
    },
    "name": "request_report"
  }
}

Input Schema

NameRequiredDescriptionDefault
cpfYesBrazilian CPF, 11 digits (formatting is ignored).
externalRefNoYour stable reference for this logical request (e.g. your order or driver id); idempotency key per CPF for 1 hour. Reuse the SAME value when retrying — never generate a fresh one per attempt. Also lets you recover the report later via find_report_by_external_ref.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior4/5

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

With only readOnlyHint=false supplied, the description carries real weight and delivers: credit consumption, asynchronous delivery (~5 minutes), the 1-hour idempotency window keyed on CPF+externalRef, and the billing consequence of breaking idempotency. Misses only ancillary detail such as what a failed/refunded report does to the credit.

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 purpose and cost, then routed to alternatives, then failure handling — a sensible order with no filler. It is dense to the point of being a single long run-on chain, which costs a point on scanability, but every clause conveys actionable information.

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?

Absent an output schema, the description still tells the agent what comes back (a reportId) and that delivery is asynchronous, plus the exact retry and error semantics needed to use the tool correctly. Nothing essential for a correct first call is missing.

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 baseline is 3; the description earns above that by explaining why externalRef matters operationally — that a fresh value per retry defeats idempotency and bills again — which is a consequence the schema text only partly conveys. CPF itself adds nothing beyond the schema.

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?

States a specific verb and resource ('Request a CNH report for a Brazilian CPF') plus the cost model ('consumes one credit per new report'), which immediately distinguishes it from get_report and wait_for_report siblings that retrieve rather than request.

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

Usage Guidelines5/5

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

Gives explicit routing guidance: webhooks as the production pattern, wait_for_report or get_report polling for interactive sessions, and concrete error paths (402 non-retryable, contact admin and check get_credit_balance; 429 wait retryAfter seconds). Names alternatives by name and states the condition that selects each.

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