fluentcrm_update_contact
Update contact information in FluentCRM marketing automation by modifying fields like name and phone number using the contact's ID.
Instructions
Aktualizuje dane kontaktu
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"subscriberId": "<subscriberId>"
},
"name": "fluentcrm_update_contact"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| subscriberId | Yes | ID kontaktu | |
| first_name | No | ||
| last_name | No | ||
| phone | No |
Implementation Reference
- src/fluentcrm-mcp-server.ts:953-954 (handler)MCP tool handler switch case that executes the tool by calling FluentCRMClient.updateContact with subscriberId and the provided arguments, returning JSON stringified response.
case 'fluentcrm_update_contact': return { content: [{ type: 'text', text: JSON.stringify(await client.updateContact((args as any)?.subscriberId, args as any), null, 2) }] }; - src/fluentcrm-mcp-server.ts:542-551 (schema)Input schema definition for the tool, specifying parameters like subscriberId (required), first_name, last_name, phone.
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:539-552 (registration)Tool registration in the ListTools response, defining name, description, and input schema.
{ 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:87-90 (helper)FluentCRMClient helper method that performs the actual API update via PUT request to /subscribers/{subscriberId} endpoint.
async updateContact(subscriberId: number, data: any) { const response = await this.apiClient.put(`/subscribers/${subscriberId}`, data); return response.data; }