Skip to main content
Glama
threatlocker-mcp

threatlocker-mcp

by Space-C0wboy

Application Insert

application_insert

Create a custom ThreatLocker application with a unique name, OS type, optional file rules, and a dry-run preview before sending the request.

Instructions

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.

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

Input Schema

NameRequiredDescriptionDefault
nameYesApplication name.
rulesNoOptional initial file rules.
dry_runNoDefault true: return the exact request(s) that would be sent and the target org, and send nothing. Pass false to execute.
os_typeNo
descriptionNo
organization_idNoTarget organization GUID for this write. Omit to target the server's configured default org (THREATLOCKER_ORG_ID). Any other org MUST be named explicitly here; write tools have no other org override.

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 full burden and does well: it discloses the safe-by-default dry_run behavior and exactly what dry_run returns, the org-targeting rule for writes, and the uniqueness constraint on name per OS type. It omits failure/conflict behavior and any auth or rate-limit considerations, leaving some mutation risk undisclosed.

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?

Front-loaded with verb and endpoint, then required params, rule semantics, dry_run, and org targeting in a logical order. The single dense paragraph packs a lot in with no filler sentences, though the rule-constraint clause is terse enough to require careful parsing.

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 6-parameter mutation tool with no output schema and no annotations, the description covers the essential call-shaping details — dry-run default, org targeting, name uniqueness, and rule constraints. What is missing is the post-creation response (returned ID/body) and name-conflict behavior, which an agent would want before executing.

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 only 67%, and notably os_type and description have no schema documentation at all; the description compensates by decoding os_type (1=Windows default, 2=Mac, 3=Linux, names accepted) and by restating the required/optional split. It also adds rule-combination semantics (conditions combinable vs. hash/sha256 standalone) that go beyond the nested schema text.

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?

Opens with a specific verb and resource — "Create a custom application" — and pins it to the concrete endpoint (POST Application/ApplicationInsert). An agent can immediately distinguish this from application_update, application_delete, or application_add_sha256_bulk without inspecting schemas.

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 clear operating context: dry_run defaults to TRUE, so pass dry_run=false to actually create; and writes go to the configured default org unless organization_id is set. It stops short of explicitly naming sibling alternatives (e.g. application_update for modification) or stating prerequisites/permissions, so it is clear context rather than full when/when-not routing.

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