Skip to main content
Glama
thehive-mcp

thehive-mcp

by lidless-labs

thehive_create_alert_comment

Adds a comment to a specified alert for incident response, with preview by default and execution gated by explicit operator approval.

Instructions

Add a comment to 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>",
      "message": "<message>"
    },
    "name": "thehive_create_alert_comment"
  }
}

Input Schema

NameRequiredDescriptionDefault
dryRunNoPreview this mutation by default. Set false only to execute an approved operation.
alertIdYesThe alert ID to comment on
confirmNoSet true only after the operator approves this exact operation.
messageYesComment message (supports markdown)

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?

Beyond annotations, it discloses the two-phase preview/confirm workflow and the operator-authority prerequisite (THEHIVE_ALLOW_DESTRUCTIVE_TOOLS), which is genuinely useful context an agent cannot get from the schema. This is consistent with destructiveHint=false since adding a comment does not remove data; only the returned comment payload is left undescribed.

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 purpose and then the execution gate; nothing extraneous. Minor flaws: a missing period after 'alert' and some duplication of the schema's dryRun/confirm descriptions.

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 small 4-parameter mutation tool, the description covers purpose, authority requirements, and the approval workflow, which is enough to invoke it correctly. The only gap is that no output schema exists and the description does not say what is returned after a successful comment.

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%, so alertId, message, dryRun, and confirm are all already documented in the schema. The description restates the dryRun=false and confirm=true requirement without adding format, ordering, or behavioral nuance beyond the structured fields, 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?

States a specific verb and resource: 'Add a comment to an alert', which cleanly separates it from thehive_create_comment (case comments) and thehive_list_alert_comments. It does not explicitly name those siblings, so an agent must infer the alert-vs-case distinction from the tool name and description alone.

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 clear operational context: preview by default, execute only with dryRun=false and confirm=true after approval, and requires THEHIVE_ALLOW_DESTRUCTIVE_TOOLS=true. It does not state when to choose this over thehive_create_comment or list_alert_comments, but the usage gating is unambiguous for the tool itself.

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