fluentcrm_delete_list
Delete a contact list from FluentCRM marketing automation by specifying the list ID to remove it from your WordPress plugin.
Instructions
Usuwa listę z FluentCRM
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| listId | Yes | ID listy |
Implementation Reference
- src/fluentcrm-mcp-server.ts:971-972 (handler)Handler for fluentcrm_delete_list tool: extracts listId from arguments and calls client.deleteList to delete the list via FluentCRM API.case 'fluentcrm_delete_list': return { content: [{ type: 'text', text: JSON.stringify(await client.deleteList((args as any)?.listId), null, 2) }] };
- src/fluentcrm-mcp-server.ts:648-658 (registration)Registers the fluentcrm_delete_list tool in the MCP server's tool list, including name, description, and input schema.{ name: 'fluentcrm_delete_list', description: 'Usuwa listę z FluentCRM', inputSchema: { type: 'object', properties: { listId: { type: 'number', description: 'ID listy' }, }, required: ['listId'], }, },
- src/fluentcrm-mcp-server.ts:170-173 (helper)FluentCRMClient helper method that performs the actual API deletion of a list by ID using DELETE /lists/{listId}.async deleteList(listId: number) { const response = await this.apiClient.delete(`/lists/${listId}`); return response.data; }
- src/fluentcrm-mcp-server.ts:651-657 (schema)Input schema definition for fluentcrm_delete_list tool, requiring a numeric listId.inputSchema: { type: 'object', properties: { listId: { type: 'number', description: 'ID listy' }, }, required: ['listId'], },