Skip to main content
Glama

fluentcrm_create_campaign

Create email campaigns in FluentCRM by specifying title, subject, template, and recipient lists for targeted marketing communications.

Instructions

Tworzy nową kampanię email

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
titleYesTytuł kampanii
subjectYesTemat emaila
template_idNoID szablonu
recipient_listNoID list

Implementation Reference

  • The main handler function in FluentCRMClient class that implements the tool logic by making a POST request to the '/campaigns' endpoint with the input data.
    async createCampaign(data: any) { const response = await this.apiClient.post('/campaigns', data); return response.data; }
  • The MCP server request handler switch case that dispatches the tool call to the client.createCampaign method.
    case 'fluentcrm_create_campaign': return { content: [{ type: 'text', text: JSON.stringify(await client.createCampaign(args as any), null, 2) }] };
  • Registers the tool in the MCP server's tools list, including name, description, and input schema.
    name: 'fluentcrm_create_campaign', description: 'Tworzy nową kampanię email', inputSchema: { type: 'object', properties: { title: { type: 'string', description: 'Tytuł kampanii' }, subject: { type: 'string', description: 'Temat emaila' }, template_id: { type: 'number', description: 'ID szablonu' }, recipient_list: { type: 'array', items: { type: 'number' }, description: 'ID list' }, }, required: ['title', 'subject'], }, },
  • Defines the input schema for validating tool arguments: requires title and subject, optional template_id and recipient_list.
    inputSchema: { type: 'object', properties: { title: { type: 'string', description: 'Tytuł kampanii' }, subject: { type: 'string', description: 'Temat emaila' }, template_id: { type: 'number', description: 'ID szablonu' }, recipient_list: { type: 'array', items: { type: 'number' }, description: 'ID list' }, }, required: ['title', 'subject'],
  • Instantiates the FluentCRMClient instance used by all tool handlers, configured with API credentials.
    const client = new FluentCRMClient( FLUENTCRM_API_URL, FLUENTCRM_API_USERNAME, FLUENTCRM_API_PASSWORD );

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/netflyapp/fluentcrm-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server