Manage Subscriber Lists By Query
listmonk_manage_subscriber_lists_by_queryBulk add, remove, or unsubscribe subscribers matching a Listmonk SQL query from target lists; confirm the match count before applying changes.
Instructions
BULK, NO-PREVIEW: adds, removes, or unsubscribes every subscriber matching a Listmonk SQL query expression from one or more target lists. Always call listmonk_list_subscribers with the same query first to confirm the match count.
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": {
"query": "<query>",
"action": "<action>",
"target_list_ids": "<target_list_ids>"
},
"name": "listmonk_manage_subscriber_lists_by_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Listmonk SQL expression selecting subscribers to modify in bulk. Always call listmonk_list_subscribers with the same query first to verify the match count. | |
| action | Yes | ||
| status | No | Subscription status to set when action is 'add'. | |
| target_list_ids | Yes |