Skip to main content
Glama
threatlocker-mcp

threatlocker-mcp

by Space-C0wboy

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
LOG_LEVELNoLogging verbosity: DEBUG / INFO / WARNING / ERRORINFO
MCP_HTTP_HOSTNoBind host for the HTTP transport127.0.0.1
MCP_HTTP_PORTNoBind port for the HTTP transport8765
THREATLOCKER_ORG_IDYesDefault organization GUID. Find it in the portal URL after switching into the target org.
THREATLOCKER_API_KEYYesAPI key from ThreatLocker Portal → Modules → API
THREATLOCKER_TIMEOUTNoPer-request timeout in seconds30
THREATLOCKER_BASE_URLYesPortal API base URL. Use the same subdomain letter shown in your portal (e.g., https://portalapi.h.threatlocker.com)

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

MCP server for the ThreatLocker Portal API. Call list_organizations (optionally with search_text) first to discover the org GUIDs this API key can target, then pass organization_id to other tools to target a specific child/parent org. Without organization_id, the server's default org (THREATLOCKER_ORG_ID) is used.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}
logging
{}
prompts
{
  "listChanged": true
}
resources
{
  "subscribe": false,
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
action_log_get_by_parameters_v2A

Get Action Logs By Parameters. NOTE: this endpoint runs in two modes depending on the usenewsearch header. The MCP defaults to usenewsearch=true (the new search path the portal SPA uses), which is the only mode that returns data. Required: sourceTableId (1=ActionLog, 2=DenyActionLog, 3=BaselineActionLog, 4=EventLogActionLog), startDate, endDate, and paramsFieldsDto (the MCP defaults this to []; the server returns HTTP 500 when the field is absent under the new search path). Omitting sourceTableId returns HTTP 500; omitting both date forms returns 417 'Invalid Date Range'. Pass usenewsearch=null to opt out into the legacy path -- but note the legacy path returns an empty body even when data exists, so this is only useful for back-compat probing.

action_log_get_by_id_v2D

Action Log: Get By Id V2

action_log_get_all_for_file_history_v2A

Get All File History by hostname and fullpath NOTE: spec marks every parameter optional, but the API returns 417 'Missing Parameters. Unable to load details.' unless fullPath plus one of (hostname, computerId) is supplied.

action_log_get_file_download_details_by_idD

Action Log: Get File Download Details By Id

action_log_searchA

Search the Unified Audit (POST ActionLog/ActionLogGetByParametersV2 with usenewsearch=true) with explicit paging and output shaping — use this instead of action_log_get_by_parameters_v2 for anything larger than a quick look. Required: start_date / end_date (UTC, 'YYYY-MM-DDTHH:MM:SSZ'). source_table_id: 1=ActionLog (default), 2=DenyActionLog, 3=Baseline, 4=EventLog. Filters: hostname (wildcards), full_path (wildcards), username, action_type (execute|install|network|registry|read|write|move|delete|baseline|powershell|elevate|configuration|dns), action_id (1 Permit, 2 Deny, 3 Deny-request, 6 Ringfenced, 99 any deny), policy_id. fields: list of column names to keep per row (case-insensitive), e.g. ['dateTime','hostname','fullPath','policyName']. aggregate_by: return counts instead of rows — server-side groupBys (1–2 fields such as policyName, fullPath, processPath, createdByProcess, hostname, username, applicationName, actionType, sha256) or client-side over paged rows for fullPathFolder / more than two fields (bounded by max_rows). Paging info (page_number, page_size, total_items, total_pages) is always returned. Read-only.

application_get_by_idC

Get Application by Id.

application_get_matching_listD

Get Matching Applications

application_get_for_application_optionsA

Load Application List custom + built-in applications available to permit a file into. Use this when the permit_application flow needs useExistingApplication: true -- i.e., adding the requested file to an app discovered through means other than application_get_matching_list. Filter by osType (1=Windows, 2=MAC, 3=Linux, 5=Windows XP), optional searchText to narrow by name, and includeBuiltIn to include master-org BUILT-IN apps. (Renamed from the KB's ApplicationGetListForAddToApplication.)

application_get_for_maintenance_modeA

Get Application Options for Maintenance Scheduling List applications eligible for use with a Maintenance Mode when processing an approval request. Filter by osType (1=Windows, 2=MAC, 3=Linux, 5=Windows XP). Maintenance Modes (Installation/Learning/Monitor) are selected on the permit_application body via policyConditions.ruleId (1/2/3 respectively).

application_get_research_details_by_idA

Get Application Research Details by Id. Optional. Get ThreatLocker's research data (description, risks, mitigations) for an application before permitting it. Useful for decision support when the chosen matchingApplication or existingApplication is a sensitive built-in or unknown app.

application_listA

List custom (and optionally built-in) applications in an organization, paged. Use this to find an application's GUID by name before calling the other application_* or policy_* tools. Wraps POST Application/ApplicationGetByParameters. category: 0=All, 1=Custom (default), 2=Built-In, 4=Patch Supported. os_type: 0=All, 1=Windows (default), 2=Mac, 3=Linux, 5=Windows XP. search_by: app (default) | full | process | hash | cert | created | categories | countries. order_by: name (default) | date-created | review-rating | computer-count | policy. Read-only.

application_files_listA

List an application's file rules, paged. application_get_by_id returns applicationFiles: [] even for apps with ~1,000 rules — use this instead. Wraps GET ApplicationFile/ApplicationFileGetByApplicationId. Filters: hash_only=true returns only hash-only rules; custom_rules_only=true returns only custom (non-hash) rules (do not set both); search_text is a wildcard search across rule text and notes. Built-in application rules cannot be retrieved. Read-only.

application_insertA

Create a custom application (POST Application/ApplicationInsert). Required: name (unique per OS type). os_type: 1=Windows (default), 2=Mac, 3=Linux (names accepted). Optional description and initial rules — each rule is a set of conditions (full_path / process_path / created_by / cert may be combined; hash or sha256 are standalone) plus notes. dry_run defaults to TRUE and returns the exact body without sending; pass dry_run=false to create. Writes target the configured default org unless organization_id is given explicitly.

application_updateA

Update a custom application: rename / change description (PUT Application/ApplicationUpdateById), add file rules (POST ApplicationFile/ApplicationFileInsert, one request per rule) and/or remove rules by applicationFileId (POST ApplicationFile/ApplicationFileDeleteById, one request per rule). The current app is read first so an omitted description is preserved rather than wiped. Each rule is a list of conditions (full_path / process_path / created_by / cert combinable; hash or sha256 standalone). Removing rules requires confirm=true. dry_run defaults to TRUE and returns every request that would be sent. Writes target the configured default org unless organization_id is given explicitly.

application_add_sha256_bulkA

Add many SHA256 hash-only rules to an existing custom application. Validates and de-duplicates the input (64-hex), skips hashes the app already has (skip_existing, default true), then sends one ApplicationFileInsert per hash in concurrent batches of batch_size (default 25) and reports added / failed / skipped counts. Up to 5,000 hashes per call. dry_run defaults to TRUE and returns the batch plan plus a sample request without sending. Writes target the configured default org unless organization_id is given explicitly.

application_deleteA

Delete a custom application. Reads the app first, then POSTs Application/ApplicationUpdateForDelete (apps with no policies). If the app still has policies attached, pass force_with_policies=true to use ApplicationConfirmUpdateForDelete instead (deploy policies afterwards). Requires confirm=true with dry_run=false. dry_run defaults to TRUE. Writes target the configured default org unless organization_id is given explicitly.

approval_request_get_by_parametersA

Approval Request: Get By Parameters NOTE: statusId is required (e.g. 1 for Pending). Calls without it return HTTP 500. Each result's requestorReason is base64-encoded -- decode before display. For the decoded reason plus richer file/policy context, follow up with approval_request_get_permit_application_by_id.

approval_request_get_by_idB

Get Approval Request By ID NOTE: requestorReason is base64-encoded -- decode before display. approval_request_get_permit_application_by_id returns the same request with the reason already decoded under fileDetails.requestorReason, plus file/policy/ringfencing context.

approval_request_get_countD

Get Approval Request Pending Count

approval_request_get_permit_application_by_idC

Get Permit Application Details By Approval Request Id

approval_request_permit_applicationA

Approve Permit Application Request WORKFLOW: take_ownership -> get_permit_application_by_id -> application_get_matching_list -> permit_application. Start from the DTO returned by get_permit_application_by_id and modify the choices below. REQUIRED FIELDS (KB-documented, all must be present): approvalRequest.approvalRequestId; approvalRequest.json -- copy verbatim from get_permit_application_by_id (server uses it to reconstruct file/action context, omitting it causes silent failures); userinstance -- the portal shard ('h', 'g', etc.), parsed from the request's portalApiUrl subdomain; isFromApproval: true; hasOriginApprovalCenter: true; actionType (copy from request: 'elevate'/'execute'/'install'); osType (1=Windows, 2=Mac, 3=Linux, 5=WinXP); organizationId, computerId (copy from request); organizationIds -- list of parent org IDs above the request's org ([] for top-level); fileDetails.fullPath. APP SELECTION (set exactly ONE mode on matchingApplications): (a) PREFERRED -- use application_get_matching_list result. Prefer tenant-owned match (its organizationId equals the call's organizationId) over master-org/BUILT-IN (organizationName: "master"). Set useMatchingApplication: true, populate matchingApplication with the chosen result; set others false and their objects to null. The DTO's hasMatchingApplication flag is UNRELIABLE -- trust application_get_matching_list.hasMatching instead. *** CRITICAL -- BUILT-IN match REQUIRES entire-org scope. When the chosen match has organizationName: "master", you MUST set policyLevel.toEntireOrganization: true. Pairing a BUILT-IN with computer-scope returns HTTP 401 "Missing the '' permission" (misleading -- it's actually a body-shape error). Verified 2026-05-21. Tenant-owned matches and new apps use the default all-flags-false scope. (b) FALLBACK -- add to existing custom app (discover via application_get_for_application_options). Set useExistingApplication: true, populate existingApplication; others null. (c) LAST RESORT -- create new app. Set useNewApplication: true and newApplicationName to a non-null derived name (e.g. file stem title-cased: vlc.exe -> "VLC"). Null returns HTTP 417 'Must enter a name for a new application'. POLICY (policyConditions.ruleId): 0=manual rules, 1=Install Mode 1hr, 2=Learning Mode 1hr, 3=Monitor Mode 1hr. Set useExistingPolicy: true to reuse an existing policy (manualOptions then carries the rule criteria). SCOPE (policyLevel): default 'this computer' = ALL THREE flags false (toEntireOrganization/toComputerGroup/toComputer); scope is inferred from top-level computerId. Setting toComputer: true returns HTTP 417 'Provided applies to ID does not associate with a known OS type'. For computer group, set toComputerGroup: true and populate selectedComputerGroup (discover via computer_group_get_dropdown_by_organization_id). For entire-org, set toEntireOrganization: true. ACTION TYPE: for elevate set isElevationRequest: true and isExecutionRequest: false; for execute reverse. Both are spec-readOnly but MUST be sent matching the action. SHAPE: send null (not omit) for unused sub-objects -- matchingApplication, existingApplication, selectedComputerGroup, policyExpirationDate, elevationExpirationDate. Wrong shape = opaque HTTP 500. PERMISSIONS: API key user needs one of 'Approve for Entire Organization', 'Approve for Group', 'Approve for Single Computer', or 'Approve for Single Computer Application Only' in Administrators.

approval_request_update_for_rejectC

Reject Approval Request

approval_request_update_for_ignoreD

Ignore Approval Request

approval_request_update_for_take_ownershipD

Take Ownership of Approval Request

approval_request_get_storage_approval_by_idC

Get Storage Approval Request By Id

approval_request_permit_storage_approvalA

Approve Storage Request NOT YET LIVE-TESTED -- expect shape sensitivity similar to approval_request_permit_application. WORKFLOW: take_ownership -> get_storage_approval_by_id -> permit_storage_approval. Start from the DTO returned by approval_request_get_storage_approval_by_id and modify the choices below. LIKELY REQUIRED (by analogy with the application-permit flow): approvalRequest -- copy verbatim from get_storage_approval_by_id; json -- verbatim copy from the same response, used by the server to reconstruct the storage-request context. DEVICE / SCOPE FLAGS (set exactly one mode): addDeviceToExisting -- add the storage device to an existing storage policy (populate existingStoragePolicy); deviceExists -- the device is already known to ThreatLocker; allStorageDevices -- apply to all storage devices in scope; allFilePaths -- apply to all paths rather than just selectedPath; allUserGroups -- apply to all users/groups rather than the populated usersList/userGroups. Set unused companion objects (existingStoragePolicy, newStorageDevice) to null, not omitted. EXPIRATION: expirationDate is ISO 8601 UTC; null = permanent. RESPONSE: responseSubject and responseReason are shown to the requester; notifyOnResponse controls whether they're emailed. If the server returns HTTP 401 "Missing the '' permission" (empty interpolation), suspect body-shape rather than permissions -- same root cause as the application-permit flow.

approval_request_get_file_download_details_by_idC

Get File Download Details By Approval Request Id

computer_get_by_all_parametersC

Load Computers By All Parameters

computer_get_for_edit_by_idC

Get Computer Information By Id.

computer_update_for_editD

Update Computer

computer_enable_protectionD

Computer Enable Protection

computer_disable_protectionD

Disable Computer Protection

computer_update_maintenance_modeC

Updates a device's maintenance mode settings.

computer_move_to_other_organizationD

Move Computer

computer_update_baseline_rescanD

Update Baseline Rescan Computer

computer_update_to_finish_maintenance_modeA

End Maintenance Mode Ends ACTIVE maintenance mode on a specific computer immediately. Distinct from maintenance_mode_end_by_id, which ends a SCHEDULED maintenance window (in progress or not) identified by maintenanceModeId. Use this when you have a computerId and want enforcement re-enabled now. WARNING: may break in-progress installs.

computer_group_get_group_and_computerB

Get Groups and Computer NOTE: this endpoint can return very large payloads (>100KB for a single populated group) when called without scoping. Pass a specific computerGroupId and set only the include_* flags you actually need; unscoped calls may exceed downstream output limits.

computer_group_get_dropdown_by_organization_idC

Get Computer Groups by OrganizationId

maintenance_mode_get_by_computer_idC

Get Maintenance Schedule By Computer Id

maintenance_mode_insertC

Add to Maintenance Schedule

maintenance_mode_end_by_idD

End Maintenance Schedule

maintenance_mode_update_end_date_time_for_specific_dateA

Updated Maintenance Mode End Date Time. Reschedules the end time of an existing maintenance window for a specific computer without terminating it. Pass the new maintenanceEndDate (ISO 8601 UTC). To END maintenance immediately use computer_update_to_finish_maintenance_mode (by computer) or maintenance_mode_end_by_id (by maintenance schedule).

online_devices_get_by_parametersD

View Online Devices

list_organizationsA

Get Organizations For Move Computers Returns the organizations the current API key can target. Use this FIRST to discover org GUIDs to pass as organization_id to other tools. Despite the path name (the endpoint also feeds the portal's 'move computers' org picker), the result is the canonical list of accessible orgs for this key. searchText filters by display name; pass an empty string for the full list.

policy_get_by_idC

Get Policy by Id.

policy_listA

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.

policy_insertA

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.

policy_updateA

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.

policy_set_orderA

Set the order number (orderBy) for one or more policies. Lower numbers are evaluated first regardless of applies-to level; negatives are not allowed. Implemented as a read-modify-write per policy (GET Policy/PolicyGetById → PUT Policy/PolicyUpdateById with the new orderBy and every other field preserved). Run policies_deploy afterwards. dry_run defaults to TRUE. Writes target the configured default org unless organization_id is given explicitly.

policy_deleteA

Delete one or more Allowlisting policies in a single organization (PUT Policy/PolicyUpdateForDeleteByIds). Each policy is read first to fill the required name / organizationId / osType. Requires confirm=true with dry_run=false. Run policies_deploy afterwards. dry_run defaults to TRUE. Writes target the configured default org unless organization_id is given explicitly.

policies_deployA

The portal's 'Deploy Policies' action: POST DeployPolicyQueue/DeployPolicies pushes pending policy changes to every computer in the target organization. Pass both computer_id and computer_name to deploy to one computer instead (DeployPoliciesForComputer). One organization per call. Requires confirm=true with dry_run=false. dry_run defaults to TRUE. Writes target the configured default org unless organization_id is given explicitly.

report_get_by_organization_idC

Get report(s) by organization id.

system_audit_get_by_parametersC

Retrieves System Audit records based on specified parameters.

system_audit_get_for_health_centerC

Retrieves System Audit data for the Health Center, specifically focused on login attempts.

tag_get_by_idD

Get Tag by Id.

tag_get_dropdown_options_by_organization_idD

Get Tag Dropdown Options.

tag_updateA

Update Tag. Updates an existing tag. tagId (spec-nullable) must be a valid existing tag GUID; passing an empty or omitted tagId may cause the server to interpret the request as a new-tag creation. Use tag_get_dropdown_options_by_organization_id to discover existing tag GUIDs first. tagType enum (verify against tenant): 1=Computer tag, 2=Application tag, 3=Network tag. Sending one of tagItemsText / tagItemsIPv4 / tagItemsIPv6 replaces (not merges) that list for the tag. NOT YET LIVE-TESTED -- verify behaviour against the dev tenant before relying on it.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

C2.6/5.0

Scored across 57 tools

Disambiguation3/5

Several clusters genuinely overlap: application_list / application_get_by_id / application_get_matching_list / application_get_for_application_options / application_get_for_maintenance_mode / application_get_research_details_by_id are six 'get application' variants, and approval_request_get_by_parameters / get_by_id / get_permit_application_by_id / get_storage_approval_by_id / get_file_download_details_by_id are five near-siblings. The descriptions are unusually thorough and explicitly flag the tricky pairs (action_log_search vs action_log_get_by_parameters_v2, computer_update_to_finish_maintenance_mode vs maintenance_mode_end_by_id), which rescues much of the ambiguity, but an agent still has to read long prose to pick correctly.

Naming Consistency3/5

The dominant pattern is noun_verb snake_case (application_insert, policy_delete, tag_update), but it is broken by list_organizations (verb_noun), policies_deploy (plural prefix vs singular policy_*), and suffixed/qualified names like action_log_get_by_parameters_v2 and approval_request_update_for_take_ownership. Readable overall, but the convention drifts enough that you cannot infer a tool name from an action.

Tool Count2/5

57 tools is well past the threshold where a set becomes hard to hold in working context, and many entries are thin one-endpoint wrappers (action_log_get_by_id_v2, action_log_get_file_download_details_by_id, approval_request_get_count). The domain is genuinely large, but several variants could be consolidated into parameterized tools.

Completeness4/5

Core allowlisting workflows are covered end to end: application CRUD plus bulk hash rules, policy CRUD/order/deploy, the full approval-request lifecycle (take ownership, permit, reject, ignore), computer management, maintenance modes, audit/action logs and org discovery. Gaps remain around tag lifecycle (get/update only, no create/delete), network policies and storage policy management, and report creation.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues