get_connections
Extract your entire LinkedIn connections list to manage and analyze your professional network effectively using the MCP server's data integration capabilities.
Instructions
Retrieve your complete LinkedIn connections list
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/server.ts:178-192 (registration)Registers the 'get-connections' MCP tool, including name, description, emptyParams schema reference, and handler lambda that delegates to clientService.getConnections() and formats MCP response.this.server.tool( 'get-connections', 'Retrieve the current user connections', linkedinApiSchemas.emptyParams, async () => { this.logger.info('Retrieving User Connections') try { const connections = await this.clientService.getConnections() return this.createResourceResponse(connections) } catch (error) { this.logger.error('User Connections Retrieval Failed', error) throw error } } )
- src/services/client.service.ts:227-229 (handler)Core handler function that executes the tool logic by making an authenticated GET request to LinkedIn API /connections endpoint to fetch user's connections.public async getConnections(): Promise<ConnectionsResult> { return this.makeRequest<ConnectionsResult>('get', '/connections?start=0&count=100') }
- src/schemas/linkedin.schema.ts:10-13 (schema)emptyParams schema (empty object) used for the get-connections tool, indicating no input parameters are required./** * Empty parameters schema for endpoints without required parameters */ emptyParams: {},