fluentcrm_list_smart_links
Retrieve and search Smart Links from FluentCRM to manage automated marketing URL tracking and redirection for your campaigns.
Instructions
Pobiera listę Smart Links z FluentCRM (może nie być dostępne w obecnej wersji)
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Numer strony | |
| search | No | Szukaj Smart Link |
Implementation Reference
- src/fluentcrm-mcp-server.ts:321-341 (handler)Core implementation of the tool logic: Attempts to GET /smart-links from FluentCRM API with optional params, handles 404 by returning a helpful message indicating the endpoint is not yet available.async listSmartLinks(params: any = {}) { // Try to get smart links - this might not work until FluentCRM adds the endpoint try { const response = await this.apiClient.get('/smart-links', { params }); return response.data; } catch (error: any) { // If endpoint doesn't exist, return helpful message if (error.response?.status === 404) { return { success: false, message: "Smart Links API endpoint not available yet in FluentCRM", suggestion: "Use FluentCRM admin panel to manage Smart Links manually", available_endpoints: [ "FluentCRM → Smart Links (admin panel)", "Custom WordPress hooks for Smart Links" ] }; } throw error; } }
- src/fluentcrm-mcp-server.ts:820-829 (registration)Registers the MCP tool 'fluentcrm_list_smart_links' in the listTools response, including description and input schema for page and search parameters.name: 'fluentcrm_list_smart_links', description: 'Pobiera listę Smart Links z FluentCRM (może nie być dostępne w obecnej wersji)', inputSchema: { type: 'object', properties: { page: { type: 'number', description: 'Numer strony' }, search: { type: 'string', description: 'Szukaj Smart Link' }, }, }, },
- src/fluentcrm-mcp-server.ts:822-828 (schema)Defines the input schema for the tool, accepting optional 'page' (number) and 'search' (string) parameters.inputSchema: { type: 'object', properties: { page: { type: 'number', description: 'Numer strony' }, search: { type: 'string', description: 'Szukaj Smart Link' }, }, },
- src/fluentcrm-mcp-server.ts:1005-1006 (handler)MCP server switch case handler that calls the client.listSmartLinks method with arguments and formats response as MCP content.case 'fluentcrm_list_smart_links': return { content: [{ type: 'text', text: JSON.stringify(await client.listSmartLinks(args || {}), null, 2) }] };