Skip to main content
Glama

Repolog

wait_for_scan

Wait (up to ~45s) for a scan to finish, then return it in the same views as get_scan (summary by default). If it is still running when the wait elapses, returns the current pending state — call again to keep waiting. A scan of a slow page can take a couple of these.

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": {
      "scanId": "<scanId>"
    },
    "name": "wait_for_scan"
  }
}

Input Schema

NameRequiredDescriptionDefault
viewNo"summary" (default): scores, category counts, ranked top issues, and the target-keyword grade. "checks": adds every individual check, with the page's raw body text left out. "full": everything, including that body text — tens of thousands of tokens, and you can fetch the page yourself for less.
scanIdYesUUID of the scan.

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?

With no annotations, the description carries the full burden and does so well: it discloses the ~45s blocking ceiling, what happens on timeout (returns the current pending state rather than erroring), the idiomatic retry loop, and realistic latency for slow pages. It omits failure/error behavior (invalid scanId, a scan that errored) and the shape of the pending response, which keeps it from a 5.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three tight sentences, front-loaded with the wait duration and result framing, then timeout behavior, then practical guidance on repeated calls. Nothing is redundant and every sentence adds operational information.

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

Completeness4/5

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

For a two-parameter polling tool with no output schema, the description covers timing, retry behavior, and return views by reference to a well-documented sibling/view enum. The only real gap is what a pending-state response looks like and how terminal failures surface.

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%, and the view enum is documented in detail in the schema itself, including token-cost warnings for "full." The description only restates the "summary by default" default, adding no meaning beyond the structured data, so the baseline 3 applies.

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 ... for a scan to finish") and immediately distinguishes itself from the sibling get_scan by noting it returns results "in the same views as get_scan," implying get_scan does not block. An agent can pick between the two 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 Guidelines4/5

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

Makes the use case explicit: call when a scan may still be running, and "call again to keep waiting" when the wait elapses. It also sets expectations that slow pages need multiple calls. It does not explicitly state when not to use it (e.g., prefer get_scan for a known-complete scan), so it stops short of full routing guidance.

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.