Skip to main content
Glama
thehive-mcp

thehive-mcp

by lidless-labs

thehive_update_case

DestructiveIdempotent

Update an existing TheHive case's status, severity, tags, or custom fields with a preview-first workflow and explicit confirmation before changes apply.

Instructions

Update an existing case 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_update_case"
  }
}

Input Schema

NameRequiredDescriptionDefault
papNoNew PAP level
tlpNoTLP 2.0: 0=Clear, 1=Green, 2=Amber, 3=Amber+Strict, 4=Red
flagNoFlag/star the case
tagsNoNew tags (replaces existing)
ownerNoNew case owner
titleNoNew title
caseIdYesThe case ID to update
dryRunNoPreview this mutation by default. Set false only to execute an approved operation.
statusNoNew status: New, InProgress, TruePositive, FalsePositive, Indeterminate, Duplicated, Other
confirmNoSet true only after the operator approves this exact operation.
summaryNoCase summary/conclusion
severityNoNew severity: 1=Low, 2=Medium, 3=High, 4=Critical
descriptionNoNew description
customFieldsNoCustom fields to update, keyed by TheHive custom field name
impactStatusNoImpact status: NoImpact, WithImpact, NotApplicable
resolutionStatusNoResolution status: TruePositive, FalsePositive, Indeterminate, Duplicated, Other

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

A3.6/5.0
Behavior3/5

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

The annotations already declare destructiveHint=true, idempotentHint=true, and readOnlyHint=false, so the safety profile is largely known. The description usefully adds the two-step preview/confirm gate and the environment prerequisite, but says nothing about how unspecified fields behave (left untouched vs cleared) or what the preview returns.

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 purpose and followed by the safety gate, with no filler. Minor flaw: the first two clauses run together without punctuation, and the env-var name is buried mid-sentence.

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

Completeness3/5

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

For a 16-parameter destructive mutation with no output schema, the description covers the approval workflow but not the semantics of partial updates, replace-vs-merge behavior beyond the tags hint in the schema, or what a preview produces. Adequate to call safely, incomplete for predicting the result.

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 coverage is 100%, with each of the 16 parameters documented in the schema itself, including the note that tags replaces existing values. The description adds no further parameter meaning beyond referencing dryRun and confirm, so the baseline of 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?

States a specific verb and resource ("Update an existing case"), which is unambiguous about the operation. It does not name any sibling, so an agent must infer on its own whether to use this general update or the narrower siblings such as thehive_update_case_custom_fields, thehive_add_case_tags, or thehive_set_case_flag.

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 execution protocol: preview by default, and execution only when dryRun=false plus confirm=true after operator approval, gated on THEHIVE_ALLOW_DESTRUCTIVE_TOOLS=true. What is missing is routing guidance against the sibling tools that update a single aspect of the same case.

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