Skip to main content
Glama
threatlocker-mcp

threatlocker-mcp

by Space-C0wboy

Policy Insert

policy_insert

Creates an Allowlisting policy for specified applications and targets, with permit, deny, or ringfencing actions; use dry_run first to preview the API request before enabling and deploying.

Instructions

Create an Allowlisting policy (POST Policy/PolicyInsert). Required: name, application_ids (GUID list), applies_to ('organization' for entire org, or a computer-group / computer GUID). action: permit (1, default) | deny (2) | permit_with_ringfencing (6). log_action (default true; may only be false for permit). is_enabled defaults to FALSE (policy created disabled) — pass true to enable. add_to_top=true places it first (orderBefore); default appends to the bottom. extra_fields passes through any other KB-documented PolicyInsert field verbatim (e.g. ringfencingOptions, monitorMode, endDate). Run policies_deploy afterwards. dry_run defaults to TRUE. Writes target the configured default org unless organization_id is given explicitly.

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": {
      "name": "<name>",
      "application_ids": "<application_ids>",
      "applies_to": "<applies_to>"
    },
    "name": "policy_insert"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYes
actionNopermit
dry_runNoDefault true: return the exact request(s) that would be sent and the target org, and send nothing. Pass false to execute.
os_typeNo
add_to_topNo
applies_toYes'organization' or a group/computer GUID.
is_enabledNo
log_actionNo
descriptionNo
extra_fieldsNo
application_idsYes
organization_idNoTarget organization GUID for this write. Omit to target the server's configured default org (THREATLOCKER_ORG_ID). Any other org MUST be named explicitly here; write tools have no other org override.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.3.0

TDQS

A4.4/5.0
Behavior4/5

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

With zero annotations, the description carries the full burden and does so unusually well: it discloses that is_enabled defaults to FALSE (created disabled), that dry_run defaults to TRUE, that add_to_top=false appends, that log_action may only be false for permit, and that writes hit the configured default org unless organization_id is named. Remaining gaps are authorization requirements, duplicate/conflict behavior, and error semantics for invalid GUIDs.

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?

Information is front-loaded: purpose first, then required fields, then optional behavior, then the follow-up step, then org targeting. Nearly every clause carries decision-relevant content. It is dense to the point of being a run-on with inline backticked fragments, which slightly hurts scannability but not correctness.

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?

No annotations and no output schema, so the description must establish both safety profile and semantics for a 12-parameter write — and it largely does, including the dry_run preview contract and the mandatory deploy follow-up. It stops short of describing failure modes or required permissions, which matters for a mutating tool with no readOnlyHint/destructiveHint coverage.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is only 25% across 12 parameters, so the description must compensate, and it does: it documents the action value map (permit=1 default, deny=2, permit_with_ringfencing=6), the applies_to encoding ('organization' vs computer-group/computer GUID), the GUID-list nature of application_ids, and the pass-through contract of extra_fields with concrete examples. It also surfaces a meaningful default inversion (is_enabled false) that the bare schema would not convey. Only os_type and the description field go unmentioned.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Opens with a specific verb and resource — 'Create an Allowlisting policy' — and even names the underlying API call (POST Policy/PolicyInsert). This is unambiguously distinct from the sibling policy_update and policy_delete tools, so an agent can select it without opening a schema.

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 explicit lifecycle guidance with 'Run policies_deploy afterwards', which tells the agent this is a two-step operation and prevents a half-finished workflow. It also explains the safe default (dry_run TRUE) and how to opt into execution. It does not, however, state when to prefer policy_update over insert, or what to do if a policy with the same name already exists.

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

Deploy Server

Other Tools