Skip to main content
Glama
threatlocker-mcp

threatlocker-mcp

by Space-C0wboy

Policy Update

policy_update

Updates an Allowlisting policy's name, description, enabled state, scope, applications, action, log action, or order through read-modify-write; review the dry run before executing, then deploy.

Instructions

Update an Allowlisting policy: rename, description, enable/disable, applies-to, application list, action, log action or order. Does a read-modify-write: GET Policy/PolicyGetById, carry every existing setting over, apply the changes, then PUT Policy/PolicyUpdateById (the API resets any field that is omitted, so the full body is always sent). The dry run shows the merged body and which fields were carried over — review it before executing. applies_to: 'organization' or a group/computer GUID. action: permit | deny | permit_with_ringfencing (or 1/2/6). 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": {
      "policy_id": "<policy_id>"
    },
    "name": "policy_update"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNo
actionNo
dry_runNoDefault true: return the exact request(s) that would be sent and the target org, and send nothing. Pass false to execute.
order_byNo
policy_idYesPolicy GUID.
applies_toNo
is_enabledNo
log_actionNo
descriptionNo
application_idsNo
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.5/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and does so well: it discloses the read-modify-write sequence (GET PolicyGetById, carry settings over, PUT PolicyUpdateById), warns that the API resets omitted fields so the full body is always sent, and explains the dry-run preview. It also states that writes target the configured default org unless organization_id is given.

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 with the capability, then the mutation mechanics, then parameter notes and the deploy follow-up. Dense but nearly every clause carries operational value; the sequence of clauses is slightly run-on but never padded.

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 an 11-parameter mutation tool with no annotations and no output schema, the description covers the risky behavior (field reset on omission), the safety mechanism (dry run), and org targeting. Minor gaps remain, such as what happens if policy_id doesn't exist, but nothing essential for 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 only 27%, so the description must compensate, and it does for the highest-risk parameters: applies_to values ('organization' or a group/computer GUID), action values (permit | deny | permit_with_ringfencing or 1/2/6), dry_run default, and organization_id targeting. The remaining fields (name, description, is_enabled, log_action, order_by, application_ids) are largely self-explanatory and left to the schema.

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?

States a specific verb and resource ('Update an Allowlisting policy') and enumerates exactly which fields can change (rename, description, enable/disable, applies-to, application list, action, log action, order). This clearly separates it from policy_insert, policy_delete, and policy_set_order 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 explicit workflow guidance: review the dry run before executing, and 'Run policies_deploy afterwards' to activate changes. It also states dry_run defaults to TRUE. It stops short of explicitly contrasting when to use this versus policy_insert for a new policy, but the update semantics make that largely implicit.

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