Skip to main content
Glama
thehive-mcp

thehive-mcp

by lidless-labs

thehive_update_case_custom_fields

DestructiveIdempotent

Update custom fields on an existing TheHive case with preview by default; execution requires dryRun=false and confirm=true after operator approval.

Instructions

Update custom fields on 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>",
      "customFields": "<customFields>"
    },
    "name": "thehive_update_case_custom_fields"
  }
}

Input Schema

NameRequiredDescriptionDefault
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.
customFieldsYesCustom fields keyed by TheHive custom field name

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 already declare destructiveHint=true and idempotentHint=true, but the description adds genuinely new context: the environment-level authority gate and the mandatory preview-then-confirm protocol for execution. It does not disclose whether supplied customFields merge with or replace existing values, which matters for a nested-object mutation.

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?

Front-loaded and efficient: purpose first, then authority requirement, then execution protocol in four short sentences with no filler. A minor typo/missing punctuation between 'case' and 'Requires' slightly hurts readability.

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, gated mutation with a nested object parameter and no output schema, the description covers the critical operational constraints an agent needs before calling. The remaining gap is the update semantics of customFields (additive vs overwriting).

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%, and the schema already spells out dryRun and confirm semantics in detail. The description restates the execution gating but adds no new meaning for caseId or the customFields object shape, so it sits at the baseline for fully documented schemas.

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 names a concrete verb and resource ('Update custom fields on an existing case'), which is specific enough to separate it from the general thehive_update_case sibling. It does not explicitly name that sibling or state the boundary, so it stops 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 states the preconditions and the two-step flow: operator authority via THEHIVE_ALLOW_DESTRUCTIVE_TOOLS=true, preview by default, and execution only with dryRun=false and confirm=true after approval. What is missing is explicit routing guidance against siblings such as thehive_update_case for non-custom fields.

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