fluentcrm_delete_contact
Remove a contact from FluentCRM marketing automation by specifying the subscriber ID to delete contact data from the WordPress plugin.
Instructions
Usuwa kontakt z FluentCRM
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| subscriberId | Yes | ID kontaktu do usunięcia |
Implementation Reference
- src/fluentcrm-mcp-server.ts:955-956 (handler)MCP tool handler case that executes the delete contact tool by calling the FluentCRMClient's deleteContact method with the provided subscriberId.case 'fluentcrm_delete_contact': return { content: [{ type: 'text', text: JSON.stringify(await client.deleteContact((args as any)?.subscriberId), null, 2) }] };
- src/fluentcrm-mcp-server.ts:92-95 (helper)Core helper method in FluentCRMClient that performs the actual API deletion of a contact by subscriber ID.async deleteContact(subscriberId: number) { const response = await this.apiClient.delete(`/subscribers/${subscriberId}`); return response.data; }
- src/fluentcrm-mcp-server.ts:553-563 (registration)Tool registration in the listTools response, including name, description, and input schema definition.{ name: 'fluentcrm_delete_contact', description: 'Usuwa kontakt z FluentCRM', inputSchema: { type: 'object', properties: { subscriberId: { type: 'number', description: 'ID kontaktu do usunięcia' }, }, required: ['subscriberId'], }, },
- src/fluentcrm-mcp-server.ts:556-561 (schema)Input schema definition for the fluentcrm_delete_contact tool, specifying required subscriberId parameter.inputSchema: { type: 'object', properties: { subscriberId: { type: 'number', description: 'ID kontaktu do usunięcia' }, }, required: ['subscriberId'],