fluentcrm_list_campaigns
Retrieve email campaign lists from FluentCRM to manage marketing automation, with options to search and paginate results.
Instructions
Pobiera listę kampanii email
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | ||
| search | No |
Implementation Reference
- src/fluentcrm-mcp-server.ts:977-978 (handler)MCP server request handler case for 'fluentcrm_list_campaigns' tool. Receives arguments, calls client.listCampaigns, and formats response as MCP content.case 'fluentcrm_list_campaigns': return { content: [{ type: 'text', text: JSON.stringify(await client.listCampaigns(args || {}), null, 2) }] };
- src/fluentcrm-mcp-server.ts:193-196 (helper)FluentCRMClient method implementing the core logic: GET request to /campaigns API endpoint with optional params (page, search), returns API response data.async listCampaigns(params: any = {}) { const response = await this.apiClient.get('/campaigns', { params }); return response.data; }
- src/fluentcrm-mcp-server.ts:685-695 (registration)Registration of the tool in MCP server's tools list, defining name, description, and input schema for pagination and search.{ name: 'fluentcrm_list_campaigns', description: 'Pobiera listę kampanii email', inputSchema: { type: 'object', properties: { page: { type: 'number' }, search: { type: 'string' }, }, }, },
- src/fluentcrm-mcp-server.ts:688-694 (schema)Input schema defining optional 'page' (number) and 'search' (string) parameters for listing campaigns.inputSchema: { type: 'object', properties: { page: { type: 'number' }, search: { type: 'string' }, }, },