Skip to main content
Glama
by felipfr

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

NameRequiredDescriptionDefault

No arguments

Input Schema (JSON Schema)

{ "properties": {}, "required": [], "type": "object" }

Implementation Reference

  • 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)') }
  • 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 } }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/felipfr/linkedin-mcpserver'

If you have feedback or need assistance with the MCP directory API, please join our Discord server