fluentcrm_create_contact
Create a new contact in FluentCRM marketing automation by providing email and optional contact details to build your customer database.
Instructions
Tworzy nowy kontakt w FluentCRM
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| Yes | Email kontaktu | ||
| first_name | No | Imię | |
| last_name | No | Nazwisko | |
| phone | No | Numer telefonu | |
| address_line_1 | No | Adres | |
| city | No | Miasto | |
| country | No | Kraj |
Implementation Reference
- src/fluentcrm-mcp-server.ts:951-952 (handler)MCP tool handler case that executes the fluentcrm_create_contact by calling FluentCRMClient.createContact with input arguments.case 'fluentcrm_create_contact': return { content: [{ type: 'text', text: JSON.stringify(await client.createContact(args as any), null, 2) }] };
- src/fluentcrm-mcp-server.ts:525-537 (schema)Input schema definition for the fluentcrm_create_contact tool, specifying parameters like email (required), names, phone, address fields.inputSchema: { type: 'object', properties: { email: { type: 'string', description: 'Email kontaktu' }, first_name: { type: 'string', description: 'Imię' }, last_name: { type: 'string', description: 'Nazwisko' }, phone: { type: 'string', description: 'Numer telefonu' }, address_line_1: { type: 'string', description: 'Adres' }, city: { type: 'string', description: 'Miasto' }, country: { type: 'string', description: 'Kraj' }, }, required: ['email'], },
- src/fluentcrm-mcp-server.ts:522-538 (registration)Tool registration in the ListTools response, defining name, description, and input schema for fluentcrm_create_contact.{ name: 'fluentcrm_create_contact', description: 'Tworzy nowy kontakt w FluentCRM', inputSchema: { type: 'object', properties: { email: { type: 'string', description: 'Email kontaktu' }, first_name: { type: 'string', description: 'Imię' }, last_name: { type: 'string', description: 'Nazwisko' }, phone: { type: 'string', description: 'Numer telefonu' }, address_line_1: { type: 'string', description: 'Adres' }, city: { type: 'string', description: 'Miasto' }, country: { type: 'string', description: 'Kraj' }, }, required: ['email'], }, },
- src/fluentcrm-mcp-server.ts:71-85 (helper)Core helper method in FluentCRMClient that creates a new contact by POSTing to the /subscribers API endpoint.async createContact(data: { email: string; first_name?: string; last_name?: string; phone?: string; address_line_1?: string; city?: string; state?: string; country?: string; postal_code?: string; [key: string]: any; }) { const response = await this.apiClient.post('/subscribers', data); return response.data; }