Skip to main content
Glama
thehive-mcp

thehive-mcp

by lidless-labs

thehive_run_analyzer_and_wait

Run a Cortex analyzer on a TheHive observable and poll until it reaches a terminal status. Previews by default; execution requires dryRun=false and confirm=true.

Instructions

Run a Cortex analyzer on an observable and wait up to 50 seconds for a terminal job status Requires operator authority (THEHIVE_ALLOW_DESTRUCTIVE_TOOLS=true). Preview by default. Execution requires dryRun=false and confirm=true after approval.

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": {
      "analyzerId": "<analyzerId>",
      "cortexId": "<cortexId>",
      "observableId": "<observableId>"
    },
    "name": "thehive_run_analyzer_and_wait"
  }
}

Input Schema

NameRequiredDescriptionDefault
dryRunNoPreview this mutation by default. Set false only to execute an approved operation.
confirmNoSet true only after the operator approves this exact operation.
cortexIdYesThe Cortex server ID (e.g. 'cortex')
analyzerIdYesThe Cortex analyzer ID to run
intervalMsNoPolling interval in milliseconds (default: 2000)
maxAttemptsNoMaximum polling attempts (default: 20, max: 60)
observableIdYesThe observable ID to analyze

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

A3.6/5.0
Behavior4/5

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

Beyond the annotations, it discloses the 50-second wait cap, the operator-authority environment gate (THEHIVE_ALLOW_DESTRUCTIVE_TOOLS=true), the default-preview posture, and the two-flag approval sequence — genuinely useful behavioral context for a mutation. It stops short of 5 because it never says what happens on timeout (does the job keep running, is a pending status returned?) or how the caller should follow up.

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?

Three short sentences with the core action front-loaded and the approval requirements following in priority order; nothing is padded. Minor flaws are the missing period after 'terminal job status' and the fragment-style authority note, which slightly reduce scannability.

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?

With seven parameters, no output schema, and an open-world async operation, the definition leaves the return value and timeout outcome unexplained. The mismatch between the stated 50-second bound and the configurable polling budget is an unresolved ambiguity an agent would need to resolve before calling.

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%, so all seven parameters are already documented, and the description largely restates the dryRun/confirm gating that the schema already explains. It also introduces a tension: the description promises a 50-second wait while intervalMs (max 10000) and maxAttempts (max 60) permit polling far longer, and the description does nothing to reconcile the two.

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?

The first sentence gives a specific verb+resource (run a Cortex analyzer on an observable) plus a distinctive behavior (wait up to 50 seconds for terminal status), which separates it from the fire-and-forget siblings thehive_run_analyzer and thehive_wait_for_job without naming them. It falls short of a 5 only because it never explicitly contrasts itself with those siblings.

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 description supplies strong invocation prerequisites (operator authority, preview by default, dryRun=false plus confirm=true after approval) but no explicit when-to-use/when-not guidance relative to thehive_run_analyzer or thehive_wait_for_job. An agent must infer that this is the 'run and block until done' variant from the name and the 50-second clause.

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