fluentcrm_list_campaigns
Retrieve email campaign lists from FluentCRM to view and manage marketing automation campaigns directly within your workflow.
Instructions
Pobiera listę kampanii email
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | ||
| search | No |
Implementation Reference
- src/fluentcrm-mcp-server.ts:193-196 (handler)Core handler function in FluentCRMClient that fetches campaigns via API GET /campaigns with optional params.async listCampaigns(params: any = {}) { const response = await this.apiClient.get('/campaigns', { params }); return response.data; }
- src/fluentcrm-mcp-server.ts:685-695 (registration)Registers the fluentcrm_list_campaigns tool in the MCP server's tool list with description and input schema.{ 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 definition allowing optional page and search parameters.inputSchema: { type: 'object', properties: { page: { type: 'number' }, search: { type: 'string' }, }, },
- src/fluentcrm-mcp-server.ts:977-978 (handler)MCP tool dispatcher case that invokes the client.listCampaigns method and formats response.case 'fluentcrm_list_campaigns': return { content: [{ type: 'text', text: JSON.stringify(await client.listCampaigns(args || {}), null, 2) }] };