Skip to main content
Glama
threatlocker-mcp

threatlocker-mcp

by Space-C0wboy

Application Add Sha256 Bulk

application_add_sha256_bulk

Adds many SHA256 hash rules to a ThreatLocker custom application in one call, validating and de-duplicating hashes, skipping existing ones, and reporting added, failed, and skipped counts.

Instructions

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.

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": {
      "application_id": "<application_id>",
      "sha256_list": "<sha256_list>"
    },
    "name": "application_add_sha256_bulk"
  }
}

Input Schema

NameRequiredDescriptionDefault
notesNoNote stored on each rule.Added via threatlocker-mcp
dry_runNoDefault true: return the exact request(s) that would be sent and the target org, and send nothing. Pass false to execute.
batch_sizeNo
sha256_listYes
skip_existingNo
application_idYesApplication GUID.
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.5/5.0
Behavior4/5

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

No annotations are supplied, so the description carries the full burden and does most of it: it discloses 64-hex validation, de-duplication, skipping of existing hashes, concurrent batching, reported added/failed/skipped counts, and the dry-run planning behavior. It omits permission/auth requirements and what happens to already-sent batches on partial failure, which keeps it from a 5.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Every sentence adds new information and is front-loaded: purpose first, then validation/limits, then dry-run and org targeting. No restatement of the name or filler.

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 7-parameter mutation tool with no annotations and no output schema, the definition covers limits, defaults, validation, targeting, and the shape of the report. The remaining gap is error/partial-failure semantics and required permissions, which are material for a bulk write.

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 57%, yet the description supplies the missing meaning for the undocumented params: batch_size as concurrent batch size with default 25, skip_existing default true semantics, dry_run default TRUE with "returns the batch plan ... without sending," and explicit org-targeting rules for organization_id. Only `notes` is left to the schema, and that one is already documented there.

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?

States a specific verb and resource ("Add many SHA256 hash-only rules to an existing custom application") and scopes it to the bulk case, which clearly separates it from a general application_insert-style tool. An agent can tell what this does 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 Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives clear operating context: up to 5,000 hashes per call, dry_run defaults to TRUE so the first call plans rather than executes, and writes hit the configured default org unless organization_id is set. It never explicitly names an alternative sibling for single-hash or full-file inserts, so the routing guidance stops short of a 5.

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