Manage Subscriber List Membership
listmonk_manage_subscriber_list_membershipManage subscriber membership in a specific Listmonk list by adding, removing, or unsubscribing selected subscribers using explicit IDs or a SQL query.
Instructions
Adds, removes, or unsubscribes subscribers from a single specific list (list_id). Select the subscribers with either an explicit ids array or a Listmonk SQL query (provide exactly one).
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": {
"list_id": "<list_id>",
"action": "<action>"
},
"name": "listmonk_manage_subscriber_list_membership"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ids | No | Subscriber ids to modify (use this or query, not both). | |
| query | No | Listmonk SQL expression selecting subscribers (use this or ids). | |
| action | Yes | ||
| status | No | Subscription status to set when action is 'add'. | |
| list_id | Yes | The list whose subscriber membership is being modified. |