Skip to main content
Glama
BigfootBytes

threatlocker-mcp-server

by BigfootBytes

ThreatLocker Policies

policies
Destructive

Create, update, list, and deploy application control rules that permit, deny, or ringfence software on computer groups.

Instructions

Manage ThreatLocker policies.

Use list_all to search policies by computer group / org / filter without an applicationId; use list_by_application when you already have an applicationId.

Policies define what applications can run on which computer groups. A policy links an application (set of file rules) to a computer group with an action (permit/deny/ringfence).

Common workflows:

  • Get policy details by ID: action=get, policyId="..."

  • List all policies for an application: action=list_by_application, applicationId="...", organizationId="..."

  • Find policies for a specific group: action=list_by_application, applicationId="...", organizationId="...", appliesToId="group-id"

  • Include deny policies in results: action=list_by_application, ..., includeDenies=true

  • Create new policy: action=create, name="...", applicationIds=["..."], computerGroupId="...", osType=1, policyActionId=1

  • Update policy (full replace - get first!): action=update, policyId="...", name="...", applicationIds=["..."], computerGroupId="...", osType=1, policyActionId=1

  • Delete policies: action=delete, policyIds=["..."], organizationId="..."

  • Copy policies between groups: action=copy, osType=1, policyIds=["..."], sourceAppliesToId="...", sourceOrganizationId="...", targetAppliesToIds=["..."]

  • Deploy pending changes: action=deploy, organizationId="..."

IMPORTANT: After create/update/delete/copy, deploy changes with action=deploy to push to computers. IMPORTANT: Update is a full replace — use action=get first to read current values, then provide ALL fields.

Policy actions: Permit (allow), Deny (block), Ringfence (allow but restrict network/storage access)

Pitfalls:

  • Precedence is first-match-wins (Global > Global Group > Entire Org > Computer > Computer Group). New policies land at the bottom unless orderBefore=true.

  • monitorMode=1 (Secured) creates an explicit deny that overrides Learning Mode; monitorMode=2 is Monitor Only.

  • allowRequest/killRunningProcesses are only valid with policyActionId=2 (Deny).

  • Ringfence requires policyActionId=6 + ringfencingOptions (5 restrict flags + rf* arrays). rfFilePolicy permission: permit 1=read-only/2=read+write, deny 1=deny-write/2=deny-read+write. rfNetworkPolicy.server uses "tag:".

  • policySchedules requires policyScheduleStatus=2; networkExclusions pairs with restrictNetworkAccess=true.

  • update is FULL-REPLACE: get first, then resend ALL nested arrays (ringfencingOptions/policySchedules/networkExclusions/userGroups/parentProcessIdList/requestEmailAddressesList) you want to keep — omitting one removes it. Payload-verified, NOT live-tested.

  • Scoping: userGroups needs allUserGroups=false; deviceType needs allDevices=false; parentProcessIdList needs parentRestrictionEnabled=true (apps must match the policy osType); applicationSelection=1 (all apps) needs a name containing "Permit All" or starting "Default - "; notifyOnRequest/requestEmailAddressesList are Deny-only (policyActionId=2).

Permissions: View Application Control Policies, Edit Application Control Policies. Pagination: list_by_application is paginated (use fetchAllPages=true to auto-fetch all pages). Key response fields: policyId, name, policyActionId, applicationId, computerGroupId, isEnabled.

Related tools: applications (what the policy permits), computer_groups (where policy applies), action_log (see policy enforcement)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameNoPolicy name (required for create, update)
actionYesget=single policy by ID, list_all=search/list policies for a group or org (no applicationId needed), list_by_application=all policies for an application, create=create new policy, update=update existing policy (full replace - use get first to read current values), delete=delete policies, copy=copy policies between groups, deploy=deploy pending policy changes
filterNolist_all filter: ""=all, nomatch, match, over6weeks, ringfence, noringfence, elevation, permitonly
osTypeNoOS type: 1=Windows, 2=macOS, 3=Linux, 5=Windows XP (required for create, update, copy)
endDateNoExpiration date in UTC (YYYY-MM-DDTHH:MM:SSZ). Used with policyScheduleStatus=1.
pageSizeNoResults per page (default: 25, max: 500)
policyIdNoPolicy GUID (required for get, update)
isEnabledNoEnable policy (default: true for create)
logActionNoLog to Unified Audit (default: true for create)
policyIdsNoPolicy GUIDs (required for delete, copy)
activeOnlyNolist_all: only return active policies
allDevicesNotrue=policy applies to all device types; false=restrict to deviceType.
deviceTypeNoSingle device interface to scope to (requires allDevices=false). Only one per policy.
pageNumberNoPage number (default: 1)
searchTextNoFree-text filter for list_all
userGroupsNoUser/AD-group scoping (requires allUserGroups=false). Re-send all on update or they are removed.
appliesToIdNoComputer group GUID to filter by. Find via computer_groups first.
descriptionNoPolicy description / notes.
monitorModeNo0=Inherit, 1=Secured (explicit deny that overrides Learning Mode), 2=Monitor Only.
orderBeforeNoPlace the new policy at the top of its scope instead of the bottom (policy precedence is first-match-wins).
allowRequestNoAllow users to request access when denied. Only valid with policyActionId=2 (Deny).
allUserGroupsNotrue=policy applies to all users; false=restrict to userGroups. Full-replace on update.
applicationIdNoApplication GUID (required for list_by_application). Find via applications search first.
fetchAllPagesNoFetch all pages automatically (max 10 pages). Default: false (single page).
includeDeniesNoInclude deny policies (default: false)
applicationIdsNoApplication GUIDs (required for create, update). Mapped to applicationIdList.
organizationIdNoOrganization GUID (required for list_by_application, deploy). Find via organizations first.
policyActionIdNo1=Permit, 2=Deny, 6=Permit+Ringfence (required for create, update)
computerGroupIdNoComputer group GUID (required for create, update)
elevationStatusNo0=None, 1=Elevate+Notify, 2=Silent, 3=Force Standard User
notifyOnRequestNoEmail admins on approval requests. Only valid with policyActionId=2 (Deny); requires requestEmailAddressesList.
policySchedulesNoRecurring schedule windows (requires policyScheduleStatus=2).
response_formatNoOutput format: markdown (default, human-readable) or json (structured)markdown
showAllPoliciesNolist_all: include inherited higher-level policies
elevationEndDateNoExpiry for an elevation policy in UTC, distinct from endDate.
networkExclusionsNoInternet-ringfence exclusions (pairs with ringfencingOptions.restrictNetworkAccess=true).
sourceAppliesToIdNoSource computer group GUID (required for copy)
ringfencingOptionsNoRingfencing config (requires policyActionId=6). 5 restrict flags are required; rf* arrays are optional.
targetAppliesToIdsNoTarget computer group GUIDs (required for copy)
parentProcessIdListNoApplication GUIDs allowed to launch this policy's apps (requires parentRestrictionEnabled=true; all must match the policy osType). Full-replace on update.
applicationSelectionNo0=use applicationIds (default), 1=all applications. Value 1 requires the policy name to contain "Permit All" or start with "Default - ".
killRunningProcessesNoKill running processes when policy denies. Only valid with policyActionId=2 (Deny).
policyScheduleStatusNo0=None, 1=Expiration, 2=Schedule
sourceOrganizationIdNoSource organization GUID (required for copy)
parentRestrictionEnabledNoEnable parent-process restriction (requires parentProcessIdList).
requestEmailAddressesListNoAdmin emails notified on requests (with notifyOnRequest=true; Deny-only). Full-replace on update.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
dataNoResponse data — shape varies by action
errorNo
successYes
paginationNo
Install Server

TDQS

A4.9/5.0
Behavior5/5

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

The description goes well beyond the annotations: it discloses that update is a full-replace requiring get first, that changes must be deployed, that precedence is first-match-wins, that monitorMode=1 overrides Learning Mode, and that the implementation is payload-verified but not live-tested. These are non-obvious behavioral traits that materially affect safe invocation and are not conveyed by annotations alone.

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?

The description is long but topically organized and mostly dense. It earns its length given 46 parameters and 8 actions. However, the full-replace warning is effectively given three times: in the workflow bullet, in the 'IMPORTANT' callout, and again in the Pitfalls section. This redundancy prevents a 5.

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 complex, mutating tool with 46 parameters and many actions, the description covers workflow examples, pitfalls, scoping constraints, permissions, pagination, key response fields, and related tools. An output schema exists, so return-value documentation is not required here, and what is included is sufficient for an agent to select and invoke the tool correctly in most scenarios.

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 100%, so the baseline is 3, but the description adds substantial meaning: it maps each action to its required parameters, gives concrete example values, explains conditional validity constraints (e.g., allowRequest and killRunningProcesses are Deny-only, ringfencing requires policyActionId=6), and warns about full-replace behavior for nested arrays on update. This is genuinely valuable beyond the property descriptions.

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?

The description opens with 'Manage ThreatLocker policies' and then immediately defines a policy as linking an application (set of file rules) to a computer group with an action. This makes the specific object and domain clear, and the explicit comparison between list_all and list_by_application plus the 'Related tools' section distinguishes it from sibling tools such as network_access_policies and storage_policies.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description explicitly says when to use list_all vs list_by_application, provides a set of common workflows with required parameters per action, and adds critical routing guidance such as 'After create/update/delete/copy, deploy changes with action=deploy'. Alternatives like applications, computer_groups, and action_log are named and their role in the policy workflow is stated.

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

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/BigfootBytes/threatlocker-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server