Skip to main content
Glama
thehive-mcp

thehive-mcp

by lidless-labs

thehive_bulk_close_cases

DestructiveIdempotent

Close multiple TheHive cases in bulk using one resolution status and summary, with a safe preview by default and explicit confirmation required to execute.

Instructions

Close multiple cases with the same resolution status and summary. Requires THEHIVE_ALLOW_DESTRUCTIVE_TOOLS=true. 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": {
      "caseIds": "<caseIds>",
      "status": "<status>",
      "summary": "<summary>"
    },
    "name": "thehive_bulk_close_cases"
  }
}

Input Schema

NameRequiredDescriptionDefault
dryRunNoPreview this mutation by default. Set false only to execute an approved operation.
statusYesResolution status (becomes the case status in TheHive 5)
caseIdsYesCase IDs to close
confirmNoSet true only after the operator approves this exact operation.
summaryYesCase summary/conclusion explaining the resolution
impactStatusNoImpact status

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, readOnlyHint=false and idempotentHint=true, so the safety profile is known. The description adds genuinely useful context beyond that: the required THEHIVE_ALLOW_DESTRUCTIVE_TOOLS environment flag, the two-step preview/confirm gate, and the operator-authority prerequisite. Deduction for the duplicated sentence restating the env-flag requirement as 'operator authority'.

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 purpose, then prerequisites, then the execution gate — a sensible order with no wasted preamble. The one flaw is the redundant repetition of the THEHIVE_ALLOW_DESTRUCTIVE_TOOLS requirement in two consecutive sentences.

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 destructive batch mutation with no output schema, the description covers prerequisites, safety gating, and the approval flow an agent needs to call it correctly. It does not address partial-failure behavior when some case IDs in the batch fail, which is the main remaining gap.

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, but the description adds a real semantic constraint not visible in the schema: the same status and summary are applied uniformly to every case in the batch. It also reinforces that dryRun/confirm form an approval sequence rather than independent flags.

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?

States a specific verb and resource ('Close multiple cases') plus the key scope constraint that all cases share one resolution status and summary. 'Multiple' implicitly distinguishes it from the single-case sibling thehive_close_case, but that alternative is never named explicitly.

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 a clear operating protocol: preview by default, and execution only with dryRun=false and confirm=true after operator approval. It does not explicitly say when to prefer this over thehive_close_case for a single case, so it stops short of full alternative-routing guidance.

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