Skip to main content
Glama
threatlocker-mcp

threatlocker-mcp

by Space-C0wboy

Action Log Search

action_log_search

Search ThreatLocker Unified Audit logs by date range, host, user, action, policy, or path, with paging, field selection, and counts for larger investigations.

Instructions

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.

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": {
      "start_date": "<start_date>",
      "end_date": "<end_date>"
    },
    "name": "action_log_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
fieldsNo
end_dateYesUTC end, e.g. 2026-11-08T00:00:00Z
hostnameNo
max_rowsNo
usernameNo
action_idNo
full_pathNo
page_sizeNo
policy_idNo
start_dateYesUTC start, e.g. 2026-11-01T00:00:00Z
total_rowsNototalItems from a previous page; the API needs it for deep multi-page pulls.
action_typeNo
page_numberNo
aggregate_byNo
aggregate_modeNoauto
organization_idNoOverride the default organization (ManagedOrganizationId header).
source_table_idNo
override_organization_idNoOptional OverrideManagedOrganizationId header.
show_child_organizationsNo

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 no annotations supplied, the description carries the burden and does disclose key traits: 'Read-only', that paging info is always returned, that client-side aggregation is bounded by max_rows, and that server-side groupBys are limited to 1-2 fields. It does not cover auth/permission requirements or rate limits, so it stops short of fully transparent.

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?

Purpose and the sibling alternative are front-loaded in the first sentence, and every subsequent clause carries concrete information rather than filler. The density is high for a single unbroken block, which makes the filter vocabulary and paging detail harder to scan than a short bulleted layout would be.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 19-parameter tool with no output schema and no annotations, the description covers the core search path and aggregation behavior but leaves a meaningful remainder undocumented — organization scoping parameters, show_child_organizations, the auto/server/client mode resolution, and how max_rows interacts with page_size. Enough to call it correctly in the common case, not enough to be complete.

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 26%, so the description must compensate and largely does: it decodes source_table_id (1=ActionLog, 2=DenyActionLog, 3=Baseline, 4=EventLog) and action_id (1 Permit, 2 Deny, 3 Deny-request, 6 Ringfenced, 99 any deny), which the schema exposes as bare integers, and spells out wildcard behavior for hostname/full_path and the meaning of the action_type values. Several parameters still get no treatment (aggregate_mode, show_child_organizations, organization overrides, page_size/page_number interactions, max_rows cap of 50000).

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 ('Search the Unified Audit') and even names the backing endpoint (POST ActionLog/ActionLogGetByParametersV2 with usenewsearch=true), then explicitly distinguishes itself from the sibling action_log_get_by_parameters_v2. An agent can tell exactly what this does and how it differs from the closest alternative without opening the schema.

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?

It names the alternative tool explicitly and gives the condition that selects this one: 'use this instead of action_log_get_by_parameters_v2 for anything larger than a quick look.' Guidance is also given for when to use server-side versus client-side aggregation, which is a second real routing decision an agent must make.

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