fluentcrm_list_contacts
Retrieve and manage contact lists from FluentCRM marketing automation platform. Search contacts by email or name, and control pagination for large datasets.
Instructions
Pobiera listę wszystkich kontaktów z FluentCRM
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Numer strony (default: 1) | |
| per_page | No | Ilość rekordów na stronę (default: 10) | |
| search | No | Szukaj po emailu/imieniu |
Implementation Reference
- src/fluentcrm-mcp-server.ts:945-946 (handler)MCP server tool handler that executes the tool by calling FluentCRMClient.listContacts with input arguments and formats the response as MCP content.case 'fluentcrm_list_contacts': return { content: [{ type: 'text', text: JSON.stringify(await client.listContacts(args || {}), null, 2) }] };
- src/fluentcrm-mcp-server.ts:491-498 (schema)Input schema defining optional parameters for pagination (page, per_page) and search.inputSchema: { type: 'object', properties: { page: { type: 'number', description: 'Numer strony (default: 1)' }, per_page: { type: 'number', description: 'Ilość rekordów na stronę (default: 10)' }, search: { type: 'string', description: 'Szukaj po emailu/imieniu' }, }, },
- src/fluentcrm-mcp-server.ts:488-499 (registration)Tool registration in the MCP server's listTools response, including name, description, and input schema.{ name: 'fluentcrm_list_contacts', description: 'Pobiera listę wszystkich kontaktów z FluentCRM', inputSchema: { type: 'object', properties: { page: { type: 'number', description: 'Numer strony (default: 1)' }, per_page: { type: 'number', description: 'Ilość rekordów na stronę (default: 10)' }, search: { type: 'string', description: 'Szukaj po emailu/imieniu' }, }, }, },
- src/fluentcrm-mcp-server.ts:54-57 (helper)FluentCRMClient method implementing the core logic: GET request to /subscribers endpoint with query params and returns the data.async listContacts(params: any = {}) { const response = await this.apiClient.get('/subscribers', { params }); return response.data; }