fluentcrm_pause_campaign
Pause an active FluentCRM marketing campaign to temporarily stop sending emails and automation sequences to contacts.
Instructions
Wstrzymuje kampanię
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| campaignId | Yes | ID kampanii |
Implementation Reference
- src/fluentcrm-mcp-server.ts:213-216 (handler)Core handler function in FluentCRMClient class that implements pausing a campaign by POSTing to the FluentCRM API endpoint `/campaigns/${campaignId}/pause` and returns the response data.async pauseCampaign(campaignId: number) { const response = await this.apiClient.post(`/campaigns/${campaignId}/pause`); return response.data; }
- src/fluentcrm-mcp-server.ts:981-982 (handler)MCP server request handler switch case that receives the tool call, extracts campaignId from args, calls client.pauseCampaign, and formats the response as MCP content.case 'fluentcrm_pause_campaign': return { content: [{ type: 'text', text: JSON.stringify(await client.pauseCampaign((args as any)?.campaignId), null, 2) }] };
- src/fluentcrm-mcp-server.ts:710-720 (registration)Tool registration in the listTools response, defining the tool name, description, and input schema. This is passed to MCP server.setTools.{ name: 'fluentcrm_pause_campaign', description: 'Wstrzymuje kampanię', inputSchema: { type: 'object', properties: { campaignId: { type: 'number', description: 'ID kampanii' }, }, required: ['campaignId'], }, },
- src/fluentcrm-mcp-server.ts:713-719 (schema)Input schema defining the required 'campaignId' parameter of type number for the tool.inputSchema: { type: 'object', properties: { campaignId: { type: 'number', description: 'ID kampanii' }, }, required: ['campaignId'], },