fluentcrm_create_list
Create a new contact list in FluentCRM to organize and segment your email marketing subscribers for targeted campaigns.
Instructions
Tworzy nową listę w FluentCRM
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| description | No | Opis listy | |
| slug | No | Slug listy | |
| title | Yes | Nazwa listy |
Implementation Reference
- src/fluentcrm-mcp-server.ts:156-163 (handler)Core handler function in FluentCRMClient that creates a new list by sending a POST request to the '/lists' endpoint with the provided title, slug, and description.async createList(data: { title: string; slug?: string; description?: string; }) { const response = await this.apiClient.post('/lists', data); return response.data; }
- src/fluentcrm-mcp-server.ts:969-970 (handler)MCP server tool dispatch handler that invokes the FluentCRMClient.createList method with tool arguments and formats the response.case 'fluentcrm_create_list': return { content: [{ type: 'text', text: JSON.stringify(await client.createList(args as any), null, 2) }] };
- src/fluentcrm-mcp-server.ts:635-647 (registration)Tool registration in the MCP server's tools list, defining the name, description, and input schema for fluentcrm_create_list.{ name: 'fluentcrm_create_list', description: 'Tworzy nową listę w FluentCRM', inputSchema: { type: 'object', properties: { title: { type: 'string', description: 'Nazwa listy' }, slug: { type: 'string', description: 'Slug listy' }, description: { type: 'string', description: 'Opis listy' }, }, required: ['title'], }, },
- src/fluentcrm-mcp-server.ts:156-163 (schema)TypeScript type definition for the createList method input parameters, matching the tool schema.async createList(data: { title: string; slug?: string; description?: string; }) { const response = await this.apiClient.post('/lists', data); return response.data; }