fluentcrm_find_contact_by_email
Find a contact in FluentCRM using their email address to manage marketing automation tasks from Cursor.
Instructions
Wyszukuje kontakt po adresie email
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| Yes | Adres email |
Implementation Reference
- src/fluentcrm-mcp-server.ts:949-950 (handler)MCP tool handler implementation in the switch statement of CallToolRequestSchema. Calls the FluentCRMClient's findContactByEmail method with the input email argument and returns the JSON-stringified result.case 'fluentcrm_find_contact_by_email': return { content: [{ type: 'text', text: JSON.stringify(await client.findContactByEmail((args as any)?.email), null, 2) }] };
- src/fluentcrm-mcp-server.ts:511-521 (registration)Tool registration in the ListToolsRequestSchema handler, defining the tool name, description, and input schema that requires an 'email' string parameter.{ 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:64-69 (helper)Core helper method in FluentCRMClient class that performs the API call to find a contact by email using GET /subscribers?search={email} and returns the first matching subscriber or null.async findContactByEmail(email: string) { const response = await this.apiClient.get('/subscribers', { params: { search: email }, }); return response.data.data?.[0] || null; }