Skip to main content
Glama
thehive-mcp

thehive-mcp

by lidless-labs

thehive_set_case_flag

DestructiveIdempotent

Set or clear a case flag in TheHive, with preview by default and execution only after explicit approval and confirmation.

Instructions

Set or clear the case flag 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>",
      "flag": "<flag>"
    },
    "name": "thehive_set_case_flag"
  }
}

Input Schema

NameRequiredDescriptionDefault
flagYesWhether the case should be flagged
caseIdYesThe case ID to update
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

A3.9/5.0
Behavior4/5

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

The annotations already flag destructive=true and idempotent=true, and the description adds real context beyond them: an operator-authority environment gate (THEHIVE_ALLOW_DESTRUCTIVE_TOOLS=true) and a preview-then-confirm execution protocol. It stops short of describing the result or what clearing a flag affects downstream.

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 padding, putting purpose before the authorization and preview requirements. Minor flaw: the missing period after 'case flag' makes the first two sentences run together.

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 mutation with no output schema, the description gives the essential safety picture: authority gate, default preview, and explicit confirmation. Only a note on the effect of clearing a flag or the returned result is absent.

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%, so all four parameters are already documented in the schema. The description reinforces the dryRun/confirm sequencing but adds no new syntax or value meaning beyond what the schema states, so the baseline 3 applies.

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?

The description states a specific verb and resource ('Set or clear the case flag'), which is unambiguous and distinct from sibling mutations like add_case_tags or assign_case. It does not name a sibling or scope boundary explicitly, so it falls short of a 5.

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 clearly establishes the operating context: previews happen by default, and an approved operation needs dryRun=false plus confirm=true. That is concrete when-to/how-to guidance, but it never contrasts this tool with alternatives such as update_case for other case attributes.

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