Skip to main content
Glama
thehive-mcp

thehive-mcp

by lidless-labs

thehive_run_analyzer

Run a Cortex analyzer on a specific observable and get a job ID. Use preview by default; execution requires dryRun=false and confirm=true after operator approval.

Instructions

Run a Cortex analyzer on a specific observable. Returns the job ID for tracking. 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"
  }
}

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
observableIdYesThe observable ID to analyze

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

A4.1/5.0
Behavior4/5

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

Adds substantial behavior beyond the annotations: an environment-level authority gate, a default-preview mode, and a two-flag confirmation ritual with an approval step. Annotations already declare non-read-only/open-world, but nothing there conveys the gating sequence. Minor tension with destructiveHint=false given the destructive-tools requirement, though the flag is a global gate rather than a claim about this call's effects.

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?

Four short sentences, front-loaded with the effect, then the return value, then the authority requirement, then the execution protocol. No redundant restatement of the title or schema.

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?

No output schema exists, but the description tells the agent the result is a job ID, which is the key return fact; it stops short of pointing at thehive_get_job for polling. For a mutation-adjacent async tool gated by a confirmation flow, the definition covers what an agent needs to call it safely.

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 the baseline is 3; the description earns extra by explaining the required conjunction of dryRun=false AND confirm=true and tying it to a prior approval, which the per-parameter schema text does not link together. The three ID parameters receive no added semantics, but the schema already covers them.

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?

Specific verb and resource: 'Run a Cortex analyzer on a specific observable', plus the return contract 'Returns the job ID for tracking'. The async job-ID framing implicitly distinguishes it from thehive_run_analyzer_and_wait, but the sibling is never named, so the differentiation is left to inference.

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?

Gives clear preconditions for execution: operator authority via THEHIVE_ALLOW_DESTRUCTIVE_TOOLS, preview-by-default, and execution only with dryRun=false plus confirm=true after approval. It does not state when to prefer this over the blocking variant, which is the main guidance gap.

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