get_my_profile
Retrieve LinkedIn profile details using OpenID Connect and standard OAuth scopes, enabling access to user data for integrations and analytics.
Instructions
Get my LinkedIn profile information using OpenID Connect - works with standard OAuth scopes
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Input Schema (JSON Schema)
{
"properties": {},
"required": [],
"type": "object"
}
Implementation Reference
- src/services/client.service.ts:209-211 (handler)Core handler function that executes the tool logic by making an authenticated GET request to the LinkedIn /me endpoint to retrieve the current user's profile.public async getMyProfile(): Promise<LinkedInProfile> { return this.makeRequest<LinkedInProfile>('get', '/me?projection=(id,firstName,lastName,headline,profilePicture)') }
- src/schemas/linkedin.schema.ts:13-13 (schema)Input schema for the get-my-profile tool, which is empty as no parameters are required.emptyParams: {},
- src/server.ts:144-157 (registration)MCP tool registration for 'get-my-profile', specifying name, description, schema, and wrapper handler that delegates to ClientService.getMyProfile() and formats the response.this.server.tool( 'get-my-profile', "Retrieve the current user's LinkedIn profile information", linkedinApiSchemas.emptyParams, async () => { this.logger.info('Retrieving Current User Profile') try { const profile = await this.clientService.getMyProfile() return this.createResourceResponse(profile) } catch (error) { this.logger.error('Current User Profile Retrieval Failed', error) throw error } }