fluentcrm_find_contact_by_email
Find a contact in FluentCRM using their email address to access contact details and manage customer relationships within your marketing automation platform.
Instructions
Wyszukuje kontakt po adresie email
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| Yes | Adres email |
Implementation Reference
- src/fluentcrm-mcp-server.ts:64-69 (handler)Core implementation of the tool logic in FluentCRMClient: searches subscribers by email using the FluentCRM API /subscribers endpoint with search param, returns the first matching contact or null.async findContactByEmail(email: string) { const response = await this.apiClient.get('/subscribers', { params: { search: email }, }); return response.data.data?.[0] || null; }
- src/fluentcrm-mcp-server.ts:511-521 (registration)Tool registration in ListToolsRequestSchema handler, including name, description, and input schema requiring 'email' string.{ name: 'fluentcrm_find_contact_by_email', description: 'Wyszukuje kontakt po adresie email', inputSchema: { type: 'object', properties: { email: { type: 'string', description: 'Adres email' }, }, required: ['email'], }, },
- src/fluentcrm-mcp-server.ts:949-950 (handler)MCP server CallToolRequestSchema switch case handler that invokes the client.findContactByEmail method and formats the JSON response for the tool call.case 'fluentcrm_find_contact_by_email': return { content: [{ type: 'text', text: JSON.stringify(await client.findContactByEmail((args as any)?.email), null, 2) }] };