fluentcrm_get_contact
Retrieve contact details from FluentCRM using subscriber ID to access customer information for marketing automation workflows.
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 handler function that executes the API call to retrieve specific contact details by subscriber ID from FluentCRM.async getContact(subscriberId: number) { const response = await this.apiClient.get(`/subscribers/${subscriberId}`); return response.data; }
- src/fluentcrm-mcp-server.ts:947-948 (handler)MCP tool dispatch handler that extracts subscriberId from arguments and calls the core getContact method.case 'fluentcrm_get_contact': return { content: [{ type: 'text', text: JSON.stringify(await client.getContact((args as any)?.subscriberId), null, 2) }] };
- src/fluentcrm-mcp-server.ts:501-510 (registration)Registers the 'fluentcrm_get_contact' tool with the MCP server, including 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)Defines the input schema for the tool: requires subscriberId as number.inputSchema: { type: 'object', properties: { subscriberId: { type: 'number', description: 'ID kontaktu' }, }, required: ['subscriberId'], },