dex_remove_contacts_from_group
Remove specific contacts from a group in Dex CRM while preserving the contacts in your database. This tool helps you manage group membership by detaching selected contacts from a designated group.
Instructions
Remove one or more contacts from a group. The contacts themselves are not deleted.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| groupId | Yes | ||
| contactIds | Yes |
Implementation Reference
- src/tools/groups.ts:116-133 (handler)The tool 'dex_remove_contacts_from_group' is registered and implemented directly within the registerGroupTools function in src/tools/groups.ts. It takes a groupId and an array of contactIds, and performs a POST request to the group's contacts endpoint to remove them.
server.tool( "dex_remove_contacts_from_group", "Remove one or more contacts from a group. The contacts themselves are not deleted.", { groupId: z.string(), contactIds: z.array(z.string()), }, async (args) => { try { const result = await dex.post(`/v1/groups/${args.groupId}/contacts`, { contactIds: args.contactIds, }); return toResult(result); } catch (error) { return toError(error); } } );