Skip to main content
Glama
threatlocker-mcp

threatlocker-mcp

by Space-C0wboy

Policy Delete

policy_delete

Delete one or more allowlisting policies after previewing with dry-run; set confirm=true and dry_run=false to execute, then deploy policies.

Instructions

Delete one or more Allowlisting policies in a single organization (PUT Policy/PolicyUpdateForDeleteByIds). Each policy is read first to fill the required name / organizationId / osType. Requires confirm=true with dry_run=false. Run policies_deploy afterwards. 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": {
      "policy_ids": "<policy_ids>"
    },
    "name": "policy_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.
policy_idsYes
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?

With no annotations, the description carries the safety burden well: it discloses that each policy is read first to populate name/organizationId/osType (implying extra calls and per-id failure risk), that dry_run is true by default, and that deletion is not effective until policies_deploy runs. It does not describe partial-failure behavior when one id is invalid or what the response contains, which are the remaining gaps for a destructive tool.

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?

Effectively front-loaded: purpose first, then mechanics, then prerequisites, then follow-up. The dry_run default is stated twice (implicitly in the confirm rule and again explicitly), and the raw endpoint string is somewhat incidental, but no sentence is wasted overall.

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 destructive, multi-id write tool with no annotations and no output schema, the definition covers safety gating, default dry-run behavior, org targeting, and required follow-up. It falls short only on return values and error handling, which an agent would want before firing a batch delete.

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 75%, so most parameters are already documented, but the description adds genuine cross-parameter meaning: confirm must be true in combination with dry_run=false, rather than each flag read in isolation. It also restates the org override rule at the call level. It adds little about policy_ids semantics (e.g., whether unknown ids abort the batch).

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 with scope: 'Delete one or more Allowlisting policies in a single organization', plus the underlying endpoint (PUT Policy/PolicyUpdateForDeleteByIds). Batch behavior and the org boundary are explicit, so an agent can distinguish this from application_delete or policy_update without opening another 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?

Gives concrete preconditions ('Requires confirm=true with dry_run=false'), notes that dry_run defaults to TRUE, and prescribes the follow-up action ('Run policies_deploy afterwards') so the deletion actually takes effect. The org-targeting rule ('Writes target the configured default org unless organization_id is given explicitly') further tells the agent when extra input is mandatory.

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