Skip to main content
Glama

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
NameRequiredDescriptionDefault
listIdsYesLista ID list
subscriberIdYesID kontaktu

Implementation Reference

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

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/netflyapp/fluentcrm-mcp-server'

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