Skip to main content
Glama
threatlocker-mcp

threatlocker-mcp

by Space-C0wboy

Policy List

policy_list

List and filter ThreatLocker allowlisting policies by organization, computer group, computer, application, status, OS, and policy type to review enforcement and scope.

Instructions

List Allowlisting policies with filters (POST Policy/PolicyGetByParameters, or Policy/PolicyGetForViewPoliciesByApplicationId when application_id is given). applies_to: 'organization' (entire-org policies), a computer-group GUID or a computer GUID; omit for all levels. search_text is a case-insensitive name search. include_inactive includes disabled/expired policies. show_all_policies also returns higher-level policies that affect the selected location. filter: '' | nomatch | match | oversixweeks | ringfence | noringfence | elevation | permitonly | inherit | monitor | secured. os_type (default 1=Windows) applies when no applies_to is given. With compact=true (default) each row is reduced to policyId, name, orderBy, action, isEnabled, appliesTo, policyLevel (organization/computer_group/computer), lastMatch, applications; compact=false returns raw rows. Read-only.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "policy_list"
  }
}

Input Schema

NameRequiredDescriptionDefault
filterNo
compactNo
os_typeNo
page_sizeNo
applies_toNo
page_numberNo
search_textNo
application_idNo
organization_idNoOverride the default organization (ManagedOrganizationId header).
include_inactiveNo
show_all_policiesNo
override_organization_idNoOptional OverrideManagedOrganizationId header.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.3.0

TDQS

A4.3/5.0
Behavior4/5

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

With no annotations, the description carries the behavioral burden and does well: it states 'Read-only,' explains compact output fields versus raw rows, and describes how include_inactive and show_all_policies alter results. It does not cover authentication, rate limits, or pagination behavior beyond the schema, leaving some gaps.

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 a dense single paragraph that front-loads the purpose and then walks through parameter semantics in a logical order. It is appropriately sized for a 12-parameter tool, though the endpoint path references add minor implementation detail.

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?

Given 12 parameters, no annotations, low schema coverage, and no output schema, the definition is largely complete: it covers read-only behavior, output shape under compact mode, and most non-obvious parameters. Minor omissions like pagination semantics and organization override details are covered by the schema or are self-evident.

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 description coverage is only 17%, but the description compensates by explaining applies_to levels, search_text behavior, include_inactive, show_all_policies, os_type default, compact output, and the full filter value set. It leaves page_size/page_number and the organization override parameters to the schema, so it is not exhaustive.

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 states a specific verb and resource: 'List Allowlisting policies with filters.' It also distinguishes this from single-policy siblings like policy_get_by_id and mutation siblings like policy_insert/policy_update by making clear this is a filtered listing operation.

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?

The description provides clear context for using filters, applies_to levels, search_text, include_inactive, show_all_policies, and compact mode. It does not explicitly name alternative tools such as policy_get_by_id or state when not to use this tool, so it stops short of full when/when-not guidance.

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