Policy Set Order
policy_set_orderSet 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
| Name | Required | Description | Default |
|---|---|---|---|
| orders | Yes | ||
| dry_run | No | Default true: return the exact request(s) that would be sent and the target org, and send nothing. Pass false to execute. | |
| organization_id | No | Target 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. |