Skip to main content
Glama
thehive-mcp

thehive-mcp

by lidless-labs

thehive_create_alert

Create a new TheHive alert with title, type, source, severity, TLP and tags. Runs as a preview by default; execution requires dryRun=false and confirm=true after operator approval.

Instructions

Create a new alert in TheHive 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": {
      "title": "<title>",
      "type": "<type>",
      "source": "<source>",
      "sourceRef": "<sourceRef>"
    },
    "name": "thehive_create_alert"
  }
}

Input Schema

NameRequiredDescriptionDefault
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)
tagsNoTags to apply to the alert
typeYesAlert type (e.g. phishing, malware, intrusion)
titleYesAlert title
dryRunNoPreview this mutation by default. Set false only to execute an approved operation.
followNoWhether to follow the alert for updates
sourceYesAlert source (e.g. SIEM, IDS, email)
confirmNoSet true only after the operator approves this exact operation.
severityNoSeverity: 1=Low, 2=Medium, 3=High, 4=Critical (default: 2)
sourceRefYesSource reference ID (unique identifier from source system)
descriptionNoAlert description (supports markdown)
caseTemplateNoCase template to use when promoting to case

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?

Annotations already declare readOnlyHint=false and destructiveHint=false, and the description adds meaningful context beyond them: the THEHIVE_ALLOW_DESTRUCTIVE_TOOLS gate and the two-step preview/confirm workflow. However, the naming of a 'destructive tools' gate alongside destructiveHint=false creates mild ambiguity about the tool's blast radius, and there is no mention of what an alert creation returns or whether duplicates are rejected.

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 action and then the safety protocol; nothing is padded. A missing period between 'TheHive' and 'Requires' slightly blurs two distinct clauses.

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 13-parameter mutation with full schema coverage and no output schema, the description supplies the critical auth and approval workflow that the schema cannot express. The remaining gap — return value shape or duplicate-handling behavior — is small given the schema carries the parameter burden.

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 13 parameters are already documented in the schema, including dryRun, confirm, TLP/PAP, and severity levels. The description's brief mention of dryRun/confirm adds emphasis but no new semantics 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?

States a specific verb and resource ('Create a new alert in TheHive'), which distinguishes it from the many case/observable siblings by resource. It stops short of explicitly contrasting with thehive_create_case or thehive_promote_alert, which would have made it 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?

Gives real operational guidance: preview-by-default, execution only when dryRun=false and confirm=true after approval, and the operator-authority gate. It does not say when an agent should choose alert creation over case creation or alert promotion, but the preconditions for correct invocation are clearly stated.

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