Skip to main content
Glama
threatlocker-mcp

threatlocker-mcp

by Space-C0wboy

Application Delete

application_delete

Delete a custom application from ThreatLocker, with dry-run preview and optional forced deletion when policies are attached. Confirm execution to remove the app, then redeploy policies as needed.

Instructions

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.

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

Input Schema

NameRequiredDescriptionDefault
confirmNoRequired (true) in addition to dry_run=false for destructive operations. Ignored during a dry run.
dry_runNoDefault true: return the exact request(s) that would be sent and the target org, and send nothing. Pass false to execute.
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.
force_with_policiesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.3.0

TDQS

A3.9/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 so well: it discloses the read-then-POST sequence, the two distinct backend endpoints, the destructive-action confirmation gate, the safety-critical fact that dry_run defaults to TRUE, and the default-org targeting rule with its single override. It stops short of stating whether deletion is reversible or what happens to existing associations/policies.

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 the destructive intent and the dry-run/confirm precondition, and each sentence adds a distinct operational fact with no filler. The embedded internal endpoint names (Application/ApplicationUpdateForDelete and ApplicationConfirmUpdateForDelete) make it dense for an agent that only needs the branch condition.

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 5-parameter destructive write tool with no annotations and no output schema, the definition covers the critical gaps: precondition, default safety mode, org scoping, and the policy-attachment branch. Remaining gaps are the return shape of a dry run and whether the deletion is permanent.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 80%, so the baseline is 3, and the schema already documents confirm, dry_run, application_id, and organization_id thoroughly. The description adds genuine value for the one undocumented parameter (force_with_policies) by explaining its branch behavior, but otherwise largely restates schema-stated defaults.

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?

Opens with a specific verb+resource ("Delete a custom application") and immediately scopes it to the no-policy case vs. the force_with_policies case. It does not name a sibling tool to contrast with (e.g., application_update, policy_delete), so the differentiation is inferable from the wording rather than stated.

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 conditional routing guidance: use the standard path for apps with no policies, and pass force_with_policies=true when policies are still attached, with the follow-up obligation to redeploy policies afterwards. It also states the confirm/dry_run precondition. What is missing is any explicit statement of when not to use this tool at all (e.g., when only modifying settings).

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