Skip to main content
Glama

toggle_threat_category

Enable or disable a threat intelligence category by source path, staging the change until apply_change is called.

Instructions

Enable or disable a threat intelligence category by its source_path (e.g., "malware/callhome", "illegal/phishing"). Returns a change_id; nothing changes until apply_change.

Args: source_path: The category identifier (from list_threat_categories). enabled: True to enable blocking, False to disable.

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": {
      "source_path": "<source_path>",
      "enabled": "<enabled>"
    },
    "name": "toggle_threat_category"
  }
}

Input Schema

NameRequiredDescriptionDefault
enabledYes
source_pathYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations provided, the description carries the full burden and does well: it discloses the staged-change model (returns change_id, nothing changes until apply_change) and the meaning of the boolean as blocking enablement. It omits permission requirements, idempotency of re-toggling an already-set category, and error behavior for invalid paths.

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

Conciseness5/5

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

Purpose, commit caveat, and per-argument notes are front-loaded in a short structured block with zero filler. Every sentence adds information an agent needs before invoking.

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

Completeness5/5

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

For a two-parameter toggle with required args, the description covers the identifier source, the semantics of the boolean, the deferred write model, and even the return value despite an output schema existing. Nothing essential to a correct call is missing.

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 0%, so the description must compensate, and it does: source_path is defined as a category identifier with two concrete example paths and a pointer to list_threat_categories, and enabled is explained as enable blocking versus disable. It stops short of describing path syntax rules or validation behavior.

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 pair (enable/disable) and resource (threat intelligence category) with concrete path examples like "malware/callhome". It clearly separates the tool from list_threat_categories (identifier source) and apply_change (commit step), but does not differentiate itself from the similarly-named activate_threat_intel / deactivate_threat_intel siblings.

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: source_path must come from list_threat_categories, and the effect is staged until apply_change is called. This is strong when-to-use guidance, though it never states when this tool is the wrong choice versus the activate/deactivate siblings.

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