fluentcrm_detach_contact_from_list
Remove a contact from specified lists in FluentCRM to manage audience segmentation and update contact relationships.
Instructions
Usuwa kontakt z listy
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| subscriberId | Yes | ID kontaktu | |
| listIds | Yes | Lista ID list |
Implementation Reference
- src/fluentcrm-mcp-server.ts:975-976 (handler)MCP tool handler that executes the detach contact from list operation by calling the FluentCRMClient method with extracted arguments.case 'fluentcrm_detach_contact_from_list': return { content: [{ type: 'text', text: JSON.stringify(await client.detachContactFromList((args as any)?.subscriberId, (args as any)?.listIds), null, 2) }] };
- src/fluentcrm-mcp-server.ts:671-682 (registration)Registers the tool in the MCP server's tool list, including name, description, and input schema.{ name: 'fluentcrm_detach_contact_from_list', description: 'Usuwa kontakt z listy', inputSchema: { type: 'object', properties: { subscriberId: { type: 'number', description: 'ID kontaktu' }, listIds: { type: 'array', items: { type: 'number' }, description: 'Lista ID list' }, }, required: ['subscriberId', 'listIds'], }, },
- src/fluentcrm-mcp-server.ts:183-189 (helper)Core implementation in FluentCRMClient: sends POST request to FluentCRM API endpoint to detach contact from specified lists.async detachContactFromList(subscriberId: number, listIds: number[]) { const response = await this.apiClient.post( `/subscribers/${subscriberId}/lists/detach`, { lists: listIds } ); return response.data; }