Skip to main content
Glama
byndcloud

Unofficial Dex CRM MCP Server

by byndcloud

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
NameRequiredDescriptionDefault
groupIdYes
contactIdsYes

Implementation Reference

  • 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);
        }
      }
    );

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/byndcloud/unofficial-dex-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server