Skip to main content
Glama
threatlocker-mcp

threatlocker-mcp

by Space-C0wboy

Action Log Get By Parameters V2

action_log_get_by_parameters_v2

Query ThreatLocker action logs by source table, date range, and field filters to retrieve filtered audit records for investigation and compliance reporting.

Instructions

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.

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": {
      "body": "<body>"
    },
    "name": "action_log_get_by_parameters_v2"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyYesRequest body.
usenewsearchNoHeader: usenewsearchtrue
organization_idNoOverride the default organization (ManagedOrganizationId header).
override_organization_idNoOptional OverrideManagedOrganizationId header.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.3.0
    • addedInput schema / additionalProperties
      Added value: +false
  2. First observedv0.2.1

TDQS

A4/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 well: it discloses HTTP 500 on a missing sourceTableId or absent paramsFieldsDto, HTTP 417 on a missing date range, and that the legacy path silently returns an empty body even when data exists. It omits return shape and pagination behavior (pageSize/pageNumber/totalRows), which matters since there is no output schema.

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?

Dense but front-loaded and organized around mode, required fields, then failure modes; nearly every clause carries operational information. Slightly verbose in the parenthetical asides ('the new search path the portal SPA uses'), but nothing is padding.

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 a deeply nested body with no annotations and no output schema, it covers the highest-risk unknowns: required fields, backend failure modes, and which mode actually returns data. A brief note on result shape or paging would make it 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?

Adds meaning the schema lacks: sourceTableId's four legal values (1=ActionLog, 2=DenyActionLog, 3=BaselineActionLog, 4=EventLogActionLog) are undocumented in the schema, and it explains that paramsFieldsDto defaults to [] on the MCP side and must not be omitted. It still leaves the 30+ other body fields (filter, sortBy, groupBy, dateTime) unexplained.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The opening states a specific verb+resource ('Get Action Logs By Parameters') and the note scopes it to a parameter-driven query over action log tables, which separates it from id-based siblings like action_log_get_by_id_v2. It never names a sibling or states the selection rule against action_log_search, so it falls short of a 5.

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 real usage context: the two search modes, which one is default and productive, and explicitly when the legacy path is worth using ('only useful for back-compat probing'). It stops short of saying when to choose this tool over the sibling search tools.

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