sockdock_reorder_rules
Reorder a Slack channel's SockDock rules so the first enabled match runs, letting specific rules take priority over broad ones that would otherwise hide them.
Instructions
Sets the order of one channel's rules; the first is tried first, and the first enabled rule that matches a post runs. List every rule of that channel exactly once (names from sockdock_list_rules). Use it when a broad rule (such as all_posts) is above a specific one and hides it. The user gets a notification on their Mac.
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": {
"channel": "<channel>",
"names": "<names>"
},
"name": "sockdock_reorder_rules"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| names | Yes | every rule of the channel once, in the new order | |
| channel | Yes | channel name (#dev-help or dev-help) or ID; must be in sockdock_list_channels |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| config_problems | No | problems in the whole config after the change (rare) |