Skip to main content
Glama

Minha CNH

wait_for_report

Read-only

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).

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": "wait_for_report"
  }
}

Input Schema

NameRequiredDescriptionDefault
reportIdYesThe reportId returned by request_report.
timeoutSecondsNoMax seconds to wait (default 120, hard cap 240). Roughly a third of reports finish inside 120s and about three fifths inside 240s, so even the cap times out sometimes.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only declare readOnlyHint, so the description carries the real burden and does: median delivery ~190s, the returned {status:'PROCESSING', pollAfterSeconds} payload on timeout, the 30s cap under a cnh_test_ key, and 'Does not consume credits.' It also points at the returned report's caveats (fines_unverified) rather than leaving return behavior opaque.

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 core action and then ordered by decision relevance (timing, timeout-is-normal, sandbox cap, cost, return shape). It is dense but nearly every clause carries operational information; the em-dash chains make it slightly harder to scan than it needs to be.

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?

For a two-parameter async polling tool with no output schema, it covers the timing distribution, the non-error timeout path, the sandbox special case, credit cost, and return-value caveats by reference to get_report. Nothing needed to call and interpret it correctly 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, but the description adds actionable meaning beyond the schema: it recommends timeoutSeconds: 240 rather than merely restating the 120 default and 240 cap. The reportId parameter is left to the schema, which already ties it to request_report.

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 ('Wait (bounded) for a report to finish and return it') with the key qualifier 'bounded' front-loaded. It also implicitly separates itself from get_report by naming that sibling as the post-timeout alternative, so an agent can route between them without opening either schema.

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?

Explicit when-to-use guidance: pass timeoutSeconds: 240 for best single-call odds, prefer the webhook when polling is unaffordable, wait pollAfterSeconds and re-call or switch to get_report, and poll again in the sandbox case. It also defuses the main misuse risk by declaring a timeout a normal outcome rather than an error.

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