Skip to main content
Glama

Minha CNH

request_holder_consent

Get the link a licence holder opens to authorize the lookup of data their issuing state releases only with consent (today SP points and fines, on gov.br). Use it when a report's holderConsent.status is required, declined, denied, expired or revoked; holderConsent.stateCode and covers say which state and what the consent releases. Hand the url to the user so they send it to the holder. The link is valid 7 days; calling again issues a new one and the previous link stops working. After the holder authorizes, the same report is updated (holderConsent.status becomes active; check it with get_report). Never call it for a report whose holderConsent is null or active.

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": {
      "reportId": "<reportId>"
    },
    "name": "request_holder_consent"
  }
}

Input Schema

NameRequiredDescriptionDefault
reportIdYesThe reportId of a report whose holderConsent is not null (from request_report or get_report).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior3/5

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

Annotations only say readOnlyHint=false, and the description adds real behavioral context: the link expires after 7 days, a repeat call issues a new link and kills the previous one, and the report's holderConsent.status becomes active after authorization. That is genuine value beyond the annotation, though it does not cover authorization requirements or error conditions.

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?

The definition is front-loaded with the purpose, then the eligibility rule, then the operational caveats about expiry and reissue. The opening clause is a little dense, but no sentence is redundant and the negative rule at the end is load-bearing rather than filler.

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 one parameter, no output schema, and minimal annotations, the description supplies everything needed: the returned field (`url`), the handoff action, the 7-day validity, the reissue semantics, and the downstream status check via get_report. Nothing an agent needs in order to call it and act on the result 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% for the single reportId parameter, so the baseline is 3, but the description adds the meaningful precondition that holderConsent must not be null or active and identifies the status fields that determine whether the call is valid. Only the parameter's format/provenance is left wholly to 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?

The description opens with a specific verb and resource: it returns the consent link a licence holder opens to authorize lookup of data their issuing state releases only with consent. It scopes the domain (SP points and fines, on gov.br), which immediately distinguishes it from siblings like get_report or request_report.

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?

It enumerates the exact triggering statuses (required, declined, denied, expired, revoked) and the explicit exclusion (null or active), and names get_report as the way to confirm the post-authorization state. When-to-use, when-not-to-use, and the follow-up check are all stated.

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