Delete Segment (preview, then confirm)
delete_segmentDelete a segment. The contacts in it are not deleted, but the segment can't be restored and campaigns can no longer target it. A segment used by a campaign that is scheduled or sending is refused. Needs segment_id. Shows a preview first and deletes only with confirm: true.
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": {
"segment_id": "<segment_id>"
},
"name": "delete_segment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | No | Must be true to make the change. Leave it out first to get a preview, show it to the user, and ask them to confirm | |
| dry_run | No | Show what would be deleted without deleting | |
| segment_id | Yes | Segment ID (from list_segments) |