Skip to main content
Glama
thehive-mcp

thehive-mcp

by lidless-labs

thehive_close_case

DestructiveIdempotent

Close or resolve a TheHive case by setting its resolution status and summary; previews changes by default and requires explicit confirmation to execute.

Instructions

Close/resolve a case. In TheHive 5, the status field is the resolution status directly. 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": {
      "caseId": "<caseId>",
      "status": "<status>",
      "summary": "<summary>"
    },
    "name": "thehive_close_case"
  }
}

Input Schema

NameRequiredDescriptionDefault
caseIdYesThe case ID to close
dryRunNoPreview this mutation by default. Set false only to execute an approved operation.
statusYesResolution status (becomes the case status in TheHive 5)
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.3/5.0
Behavior5/5

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

Annotations already declare destructiveHint=true and idempotentHint=true, but the description goes well beyond them by disclosing the privilege requirement (operator authority env var) and the two-step dryRun/confirm approval protocol that gates actual execution. It also preempts a likely confusion point by explaining that in TheHive 5 the status field IS the resolution status, so no separate resolution field is needed.

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 action and the version-specific semantic caveat, then the safety gating. No filler and no repetition of the tool name or schema text.

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, approval-gated mutation with no output schema and full parameter coverage, the description supplies everything needed to call it safely: authority requirement, preview default, confirmation requirement, and status semantics. The main omission is any pointer to the bulk sibling or to thehive_update_case for non-closing status changes.

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 description coverage is 100%, so the baseline is 3; the description earns above baseline by explaining the semantic relationship between status and resolution in TheHive 5, and by framing dryRun as preview-by-default and confirm as post-approval. It does not add anything about impactStatus or what the summary should contain beyond the schema's own text.

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+resource pair ('Close/resolve a case') that an agent can map directly to intent, and clarifies the TheHive 5 status semantics. It does not distinguish itself from the sibling thehive_bulk_close_cases, so single-vs-bulk routing is left to inference, but the core purpose is unambiguous.

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 concrete operational conditions: operator authority via THEHIVE_ALLOW_DESTRUCTIVE_TOOLS=true, preview by default, and execution only with dryRun=false plus confirm=true after approval. It never names an alternative (e.g. thehive_update_case or thehive_bulk_close_cases) or states when not to use it, which keeps it below a 5.

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