Skip to main content
Glama
thehive-mcp

thehive-mcp

by lidless-labs

thehive_delete_case

Destructive

Permanently delete a TheHive case with preview-by-default safeguards, optional force deletion for cases with tasks or observables, and explicit confirmation before execution.

Instructions

Permanently delete a case. Use force=true to delete even if the case has tasks/observables. 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>"
    },
    "name": "thehive_delete_case"
  }
}

Input Schema

NameRequiredDescriptionDefault
forceNoForce delete even if case has children (default: false)
caseIdYesThe case ID to delete
dryRunNoPreview this mutation by default. Set false only to execute an approved operation.
confirmNoSet true only after the operator approves this exact operation.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the destructiveHint=true annotation, it discloses that deletion is permanent and irreversible, that child tasks/observables normally block deletion unless force is set, that an environment-level operator authority is required (THEHIVE_ALLOW_DESTRUCTIVE_TOOLS=true), and that the default mode is preview-only. These are exactly the safety mechanics an agent needs and none of them are in the annotations.

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?

Four short sentences, front-loaded with the irreversible action and its safety requirements; nothing is padding. It is dense with qualifiers (THEHIVE_ALLOW_DESTRUCTIVE_TOOLS, dryRun, confirm) but each earns its place given the stakes.

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

Completeness5/5

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

For a destructive mutation with no output schema, the definition covers permanence, permission prerequisites, the preview-by-default behavior, and the exact execution sequence. There is no output schema to explain return values, and there is nothing an agent needs to call this correctly that is missing.

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 meaning the schema does not: the coupling between dryRun and confirm as an ordered approval gate, and force as the override for child-object blocking. The individual flags are still largely restated from the schema, which keeps it from a 5.

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

Purpose5/5

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

The opening sentence states a specific verb and resource ('Permanently delete a case') and the word 'permanently' immediately separates it from reversible case operations like close or archive. An agent can distinguish it from siblings such as thehive_delete_alert or thehive_close_case without opening any schema.

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?

It gives concrete conditions for the force flag and for actual execution (dryRun=false plus confirm=true after approval). What it never says is when NOT to delete — e.g., that thehive_close_case is the non-destructive alternative for resolving a case. That omission is the one meaningful guidance gap for a destructive tool.

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