fluentcrm_get_contact
Retrieve contact details from FluentCRM marketing automation by providing a subscriber ID to access specific contact information.
Instructions
Pobiera szczegóły konkretnego kontaktu
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| subscriberId | Yes | ID kontaktu |
Implementation Reference
- src/fluentcrm-mcp-server.ts:59-62 (handler)Core implementation of the tool: fetches contact details from FluentCRM REST API endpoint /subscribers/{subscriberId} using Axios client.async getContact(subscriberId: number) { const response = await this.apiClient.get(`/subscribers/${subscriberId}`); return response.data; }
- src/fluentcrm-mcp-server.ts:501-510 (registration)Tool registration in the ListTools response, defining name, description, and input schema.name: 'fluentcrm_get_contact', description: 'Pobiera szczegóły konkretnego kontaktu', inputSchema: { type: 'object', properties: { subscriberId: { type: 'number', description: 'ID kontaktu' }, }, required: ['subscriberId'], }, },
- src/fluentcrm-mcp-server.ts:503-509 (schema)Input schema validation: requires subscriberId as number.inputSchema: { type: 'object', properties: { subscriberId: { type: 'number', description: 'ID kontaktu' }, }, required: ['subscriberId'], },
- src/fluentcrm-mcp-server.ts:947-948 (handler)MCP server dispatch handler: calls the FluentCRMClient.getContact method with tool arguments and formats response.case 'fluentcrm_get_contact': return { content: [{ type: 'text', text: JSON.stringify(await client.getContact((args as any)?.subscriberId), null, 2) }] };