Skip to main content
Glama
thehive-mcp

thehive-mcp

by lidless-labs

thehive_delete_alert

Destructive

Permanently deletes a TheHive alert by ID; previews by default and executes only when dryRun=false and confirm=true are supplied after approval.

Instructions

Permanently delete an alert 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": {
      "alertId": "<alertId>"
    },
    "name": "thehive_delete_alert"
  }
}

Input Schema

NameRequiredDescriptionDefault
dryRunNoPreview this mutation by default. Set false only to execute an approved operation.
alertIdYesThe alert ID to delete
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.3/5.0
Behavior5/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, but the description adds genuinely non-obvious context beyond them: the permanence of the deletion, the environment-variable gate, the safe preview default, and the two-flag confirmation workflow. That is exactly the kind of gating and irreversibility detail an agent cannot infer from the schema.

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, front-loaded sentences with no filler, and the destructive nature is the very first thing the reader sees. Minor flaw: the first two sentences run together without punctuation, creating a small parsing hiccup at the most important point.

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 three-parameter destructive tool with no output schema, the description covers safety, prerequisites, default behavior, and the execution gate. It stops short of saying whether related entities (such as linked cases or observables) are affected or what an authorization failure looks like, which would be useful for an irreversible operation.

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 description coverage is 100 percent, so the baseline is 3; each parameter is already documented in the schema with essentially the same wording. The description usefully conveys that dryRun and confirm work together as an approval gate, but adds little parameter meaning beyond what the schema states individually.

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?

States a specific verb and resource ("Permanently delete an alert") and immediately qualifies permanence, which is the key characteristic of this operation. The resource name distinguishes it from the sibling delete_case tool without ambiguity.

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 spells out the prerequisites for use: operator authority via THEHIVE_ALLOW_DESTRUCTIVE_TOOLS=true, preview-by-default behavior, and the dryRun=false plus confirm=true combination needed to actually execute. It does not name an explicit alternative or when-not-to-use condition, so it stops short of a 5.

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