Skip to main content
Glama
thehive-mcp

thehive-mcp

by lidless-labs

thehive_create_alert_observable

Add an observable (IOC) to an existing alert without promoting it to a case; preview the mutation by default and execute only after explicit operator approval.

Instructions

Add an observable (IOC) to an alert without promoting it to a 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": {
      "alertId": "<alertId>",
      "dataType": "<dataType>",
      "data": "<data>"
    },
    "name": "thehive_create_alert_observable"
  }
}

Input Schema

NameRequiredDescriptionDefault
iocNoMark as Indicator of Compromise (default: false)
papNoPAP: 0=Clear, 1=Green, 2=Amber, 3=Red (default: 2)
tlpNoTLP 2.0: 0=Clear, 1=Green, 2=Amber, 3=Amber+Strict, 4=Red (default: 2)
dataYesObservable value (e.g. IP address, domain name, hash)
tagsNoTags to apply
dryRunNoPreview this mutation by default. Set false only to execute an approved operation.
alertIdYesThe alert ID to add the observable to
confirmNoSet true only after the operator approves this exact operation.
messageNoDescription or context about this observable
sightedNoMark as sighted in the environment (default: false)
dataTypeYesObservable data type
ignoreSimilarityNoIgnore this observable in similarity calculations

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?

Annotations only declare readOnlyHint=false, destructiveHint=false, idempotentHint=false and openWorldHint=false. The description adds genuinely new behavior: an environment-level authorization requirement, a default-preview mode, and a two-step dryRun/confirm approval flow. It omits what a preview returns and what happens on duplicate submission (relevant given idempotentHint=false), and the THEHIVE_ALLOW_DESTRUCTIVE_TOOLS gate sits in mild tension with destructiveHint=false, though it describes an access gate rather than contradicting the hint.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Content is dense and front-loaded, but the first two sentences run together without a separator ('...to a case Requires operator authority...'), which obscures the clause boundary. The approval/execution steps are ordered well once the reader parses past the run-on.

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 12-parameter mutation with no output schema, the definition covers the critical operational facts: target entity, authority requirement, and the preview-to-execute transition. It is not fully complete because it never says what the preview returns or how duplicates are handled, which matters for an agent deciding whether rerunning is safe.

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 real meaning for the two safety-critical parameters by explaining the dryRun/confirm relationship and the default-preview posture. The remaining ten parameters (tlp, pap, ioc, sighted, ignoreSimilarity, tags, message, dataType) are left entirely to the schema.

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 an observable (IOC) to an alert') and adds scope clarification ('without promoting it to a case'), which distinguishes it from case-level observable creation. It does not name the sibling to use for case observables, but the alert-vs-case boundary is explicit.

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 preconditions for use: operator authority via THEHIVE_ALLOW_DESTRUCTIVE_TOOLS, preview-by-default, and the dryRun=false + confirm=true execution gate. It does not explicitly name the alternative tools (e.g. the case-level observable creation or bulk variant) that an agent should prefer when the target is a case rather than an alert.

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