fluentcrm_create_tag
Create new tags in FluentCRM to organize and categorize contacts for targeted marketing campaigns and automation workflows.
Instructions
Tworzy nowy tag w FluentCRM
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| description | No | Opis tagu | |
| slug | No | Slug tagu (np. "aw-progress-75") | |
| title | Yes | Nazwa tagu (np. "AW-progress-75") |
Implementation Reference
- src/fluentcrm-mcp-server.ts:109-116 (handler)Core handler function in FluentCRMClient that creates a new tag by making a POST request to the /tags endpoint of the FluentCRM API.async createTag(data: { title: string; slug?: string; description?: string; }) { const response = await this.apiClient.post('/tags', data); return response.data; }
- src/fluentcrm-mcp-server.ts:959-960 (handler)MCP tool dispatch handler in the CallToolRequestSchema switch statement that invokes client.createTag with the provided arguments and formats the response.case 'fluentcrm_create_tag': return { content: [{ type: 'text', text: JSON.stringify(await client.createTag(args as any), null, 2) }] };
- src/fluentcrm-mcp-server.ts:577-589 (registration)Tool registration entry in the ListToolsRequestSchema handler, defining the tool name, description, and input schema.{ name: 'fluentcrm_create_tag', description: 'Tworzy nowy tag w FluentCRM', inputSchema: { type: 'object', properties: { title: { type: 'string', description: 'Nazwa tagu (np. "AW-progress-75")' }, slug: { type: 'string', description: 'Slug tagu (np. "aw-progress-75")' }, description: { type: 'string', description: 'Opis tagu' }, }, required: ['title'], }, },
- src/fluentcrm-mcp-server.ts:580-589 (schema)Input schema definition for the fluentcrm_create_tag tool, specifying parameters like title (required), slug, and description.inputSchema: { type: 'object', properties: { title: { type: 'string', description: 'Nazwa tagu (np. "AW-progress-75")' }, slug: { type: 'string', description: 'Slug tagu (np. "aw-progress-75")' }, description: { type: 'string', description: 'Opis tagu' }, }, required: ['title'], }, },