fluentcrm_detach_contact_from_list
Remove a contact from specific lists in FluentCRM marketing automation. Use this tool to manage contact list memberships by providing the subscriber ID and list IDs.
Instructions
Usuwa kontakt z listy
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| listIds | Yes | Lista ID list | |
| subscriberId | Yes | ID kontaktu |
Implementation Reference
- src/fluentcrm-mcp-server.ts:183-189 (handler)Core handler function in FluentCRMClient that executes the API call to detach a contact from specified lists using the /subscribers/{subscriberId}/lists/detach endpoint.async detachContactFromList(subscriberId: number, listIds: number[]) { const response = await this.apiClient.post( `/subscribers/${subscriberId}/lists/detach`, { lists: listIds } ); return response.data; }
- src/fluentcrm-mcp-server.ts:672-682 (registration)Tool registration in the listTools response, defining the tool 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:975-976 (handler)MCP tool call handler in the switch statement that invokes the FluentCRMClient's detachContactFromList method with parsed 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:674-681 (schema)Input schema definition for the tool, specifying required parameters subscriberId and listIds.inputSchema: { type: 'object', properties: { subscriberId: { type: 'number', description: 'ID kontaktu' }, listIds: { type: 'array', items: { type: 'number' }, description: 'Lista ID list' }, }, required: ['subscriberId', 'listIds'], },