Skip to main content
Glama
threatlocker-mcp

threatlocker-mcp

by Space-C0wboy

Policy Set Order

policy_set_order

Set non-negative evaluation order numbers for one or more policies so lower numbers run first. Preview changes by default, execute the updates, then deploy policies to apply them.

Instructions

Set the order number (orderBy) for one or more policies. Lower numbers are evaluated first regardless of applies-to level; negatives are not allowed. Implemented as a read-modify-write per policy (GET Policy/PolicyGetById → PUT Policy/PolicyUpdateById with the new orderBy and every other field preserved). 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": {
      "orders": "<orders>"
    },
    "name": "policy_set_order"
  }
}

Input Schema

NameRequiredDescriptionDefault
ordersYes
dry_runNoDefault true: return the exact request(s) that would be sent and the target org, and send nothing. Pass false to execute.
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.1/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses that each policy is updated via read-modify-write (GET then PUT with every other field preserved), that dry_run defaults to TRUE, and that writes target the configured default org unless organization_id is given. It does not state whether multi-policy updates are atomic or what happens if one policy fails midway, which is relevant for a batch mutation.

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?

The definition is front-loaded with the core action and then layers in ordering semantics, implementation behavior, the follow-up step, and org targeting. Every sentence is relevant, though the read-modify-write implementation sentence is dense and could be split for readability.

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 mutation tool with no annotations and no output schema, this is quite complete: it explains the write mechanism, the dry-run safety default, org targeting, and the required follow-up deploy. The main missing piece is partial-failure or atomicity behavior for a multi-policy batch, which an agent would want to know before executing with dry_run=false.

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 67%, so the schema already documents order_by, dry_run, and organization_id in reasonable detail. The description reinforces the ordering semantics and the dry-run default but mostly repeats what the schema provides rather than adding new parameter meaning. It does add the clarifying detail that ordering applies regardless of applies-to level.

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: set the order number (orderBy) for one or more policies. It also distinguishes this from the generic policy_update sibling by making clear this is a batch ordering operation, and it explains that lower numbers are evaluated first regardless of applies-to level.

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 post-call guidance: run policies_deploy afterwards. It also surfaces the dry_run default and the org-targeting rule, which help an agent choose parameters. It does not explicitly say when to prefer policy_update instead of this tool for non-ordering changes, but the purpose is narrow enough that this is a minor gap.

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