remove_leads_from_list
Delete leads from a lead list (get their ids with get_lead_list and include_leads=true). The leads are removed and the list's lead count goes down; this cannot be undone, so confirm with the user before emptying a list. Ids that aren't in the list are ignored without an error, so removed is how many were actually deleted and can be lower than the number of ids sent. Scope: removing a single lead (one id) works with a write key; removing more than one at a time requires an admin-scoped key (a write key gets 403). LIMITS: up to 5000 ids per call. To delete the whole list use delete_lead_list.
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": {
"lead_list_id": "<lead_list_id>",
"lead_ids": "<lead_ids>"
},
"name": "remove_leads_from_list"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lead_ids | Yes | Ids of the leads to delete (from get_lead_list with include_leads). One id needs only a write key. | |
| lead_list_id | Yes | Id of the lead list (from list_lead_lists). |