get_user_profile
Retrieve your Garmin Connect social profile including name, location, profile image, activity preferences, and fitness level.
Instructions
Get user social profile: name, location, profile image, activity preferences, level
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/profile.tools.ts:17-22 (handler)Handler function that executes the get_user_profile tool logic by calling client.getUserProfile() and returning the result as JSON.
async () => { const data = await client.getUserProfile(); return { content: [{ type: 'text' as const, text: JSON.stringify(data, null, 2) }], }; }, - src/tools/profile.tools.ts:11-23 (registration)Registration of the get_user_profile tool via server.registerTool with description metadata.
export function registerProfileTools(server: McpServer, client: GarminClient): void { server.registerTool( 'get_user_profile', { description: 'Get user social profile: name, location, profile image, activity preferences, level', }, async () => { const data = await client.getUserProfile(); return { content: [{ type: 'text' as const, text: JSON.stringify(data, null, 2) }], }; }, ); - src/client/garmin.client.ts:452-454 (helper)Client method that calls the Garmin API endpoint for the user's social profile.
async getUserProfile(): Promise<unknown> { return this.request(USER_PROFILE_ENDPOINT); } - The Garmin API endpoint constant for the user profile service.
export const USER_PROFILE_ENDPOINT = '/userprofile-service/socialProfile';