fluentcrm_update_contact
Update contact details in FluentCRM marketing automation, including names and phone numbers, using the subscriber ID to modify customer information.
Instructions
Aktualizuje dane kontaktu
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| first_name | No | ||
| last_name | No | ||
| phone | No | ||
| subscriberId | Yes | ID kontaktu |
Implementation Reference
- src/fluentcrm-mcp-server.ts:87-90 (handler)Core handler function in FluentCRMClient that performs the HTTP PUT request to update a contact's data in FluentCRM API.async updateContact(subscriberId: number, data: any) { const response = await this.apiClient.put(`/subscribers/${subscriberId}`, data); return response.data; }
- src/fluentcrm-mcp-server.ts:539-552 (registration)Tool registration in the MCP server's listTools response, including name, description, and input schema definition.{ name: 'fluentcrm_update_contact', description: 'Aktualizuje dane kontaktu', inputSchema: { type: 'object', properties: { subscriberId: { type: 'number', description: 'ID kontaktu' }, first_name: { type: 'string' }, last_name: { type: 'string' }, phone: { type: 'string' }, }, required: ['subscriberId'], }, },
- src/fluentcrm-mcp-server.ts:953-954 (handler)MCP CallToolRequestSchema dispatch case that handles the tool invocation by calling the FluentCRMClient's updateContact method with parsed arguments.case 'fluentcrm_update_contact': return { content: [{ type: 'text', text: JSON.stringify(await client.updateContact((args as any)?.subscriberId, args as any), null, 2) }] };