Skip to main content
Glama
thehive-mcp

thehive-mcp

by lidless-labs

thehive_wait_for_job

Read-onlyIdempotent

Polls a Cortex analyzer job until it reaches a terminal status, returning results within a 50-second window. Use it to check whether an analysis has finished before acting on its output.

Instructions

Wait up to 50 seconds for a Cortex analyzer job to reach a terminal status

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": {
      "jobId": "<jobId>"
    },
    "name": "thehive_wait_for_job"
  }
}

Input Schema

NameRequiredDescriptionDefault
jobIdYesThe Cortex job ID
intervalMsNoPolling interval in milliseconds (default: 2000)
maxAttemptsNoMaximum polling attempts (default: 20, max: 60)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint and destructiveHint=false, so safety is covered; the description usefully adds the 50-second wait ceiling and the terminal-status target. However it omits what happens on timeout (return non-terminal status, error, or partial result) and its stated 50-second bound is not reconciled with maxAttempts (up to 60) times intervalMs (up to 10000), which allows up to 600 seconds.

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?

A single front-loaded sentence with no filler and the key constraint (50 seconds) stated immediately. It is efficient to the point of being sparse, but nothing is wasted.

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

Completeness3/5

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

For a polling/wait primitive with no output schema, an agent still needs to know the return value shape, timeout behavior, and the relationship between the stated ceiling and the polling parameters. Those gaps are material even though the schema documents all three inputs.

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%, with defaults and min/max documented for intervalMs and maxAttempts, so the schema carries parameter meaning and the baseline applies. The description adds nothing about how intervalMs and maxAttempts interact with the stated 50-second ceiling, leaving an agent to guess which knob governs the cutoff.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

Names a specific verb (wait), a specific resource (Cortex analyzer job), and the terminating condition (terminal status), plus a bound. It does not distinguish itself from siblings such as thehive_get_job (non-blocking poll) or thehive_run_analyzer_and_wait (run-and-wait), so an agent must infer which to pick.

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

Usage Guidelines3/5

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

The blocking-wait semantics imply when to use it — after starting an analyzer job when you need the result before continuing — but the description never states that condition, never says to prefer thehive_get_job when you do not want to block, and gives no prerequisite (e.g. the job must already exist).

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.