fluentcrm_delete_smart_link
Remove a smart link from FluentCRM marketing automation by specifying its ID. This action deletes the link from your WordPress plugin's campaign management system.
Instructions
Usuwa Smart Link (może nie być dostępne w obecnej wersji)
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| smartLinkId | Yes | ID Smart Link do usunięcia |
Implementation Reference
- src/fluentcrm-mcp-server.ts:401-415 (handler)Core handler function in FluentCRMClient that performs the DELETE request to the Smart Links API endpoint and handles potential 404 errors by returning a user-friendly message.async deleteSmartLink(smartLinkId: number) { try { const response = await this.apiClient.delete(`/smart-links/${smartLinkId}`); return response.data; } catch (error: any) { if (error.response?.status === 404) { return { success: false, message: "Smart Links API endpoint not available yet in FluentCRM", suggestion: "Delete Smart Link manually in FluentCRM admin panel" }; } throw error; } }
- src/fluentcrm-mcp-server.ts:880-886 (schema)Input schema defining the required 'smartLinkId' parameter as a number.inputSchema: { type: 'object', properties: { smartLinkId: { type: 'number', description: 'ID Smart Link do usunięcia' }, }, required: ['smartLinkId'], },
- src/fluentcrm-mcp-server.ts:878-887 (registration)Tool registration in the MCP server's tools list, including name, description, and input schema.name: 'fluentcrm_delete_smart_link', description: 'Usuwa Smart Link (może nie być dostępne w obecnej wersji)', inputSchema: { type: 'object', properties: { smartLinkId: { type: 'number', description: 'ID Smart Link do usunięcia' }, }, required: ['smartLinkId'], }, },
- src/fluentcrm-mcp-server.ts:1013-1014 (handler)MCP server request handler case that invokes the client.deleteSmartLink method and formats the response.case 'fluentcrm_delete_smart_link': return { content: [{ type: 'text', text: JSON.stringify(await client.deleteSmartLink((args as any)?.smartLinkId), null, 2) }] };