whoop-get-user-profile
Retrieve authenticated user profile details including name and email from WHOOP fitness data.
Instructions
Get basic user profile information (name, email) for the authenticated user
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/mcp-server.ts:34-42 (registration)Registration of the 'whoop-get-user-profile' tool including its description and input schema (empty object) in the ListToolsRequestSchema handler.{ name: 'whoop-get-user-profile', description: 'Get basic user profile information (name, email) for the authenticated user', inputSchema: { type: 'object', properties: {}, required: [], }, },
- src/mcp-server.ts:301-311 (handler)MCP tool handler for 'whoop-get-user-profile': calls WhoopApiClient.getUserProfile() and returns the JSON-stringified result as text content.case 'whoop-get-user-profile': { const result = await this.whoopClient.getUserProfile(); return { content: [ { type: 'text', text: JSON.stringify(result, null, 2), }, ], }; }
- src/whoop-api.ts:44-47 (helper)Core implementation of the user profile retrieval: makes authenticated GET request to Whoop API endpoint '/user/profile/basic'.async getUserProfile(): Promise<WhoopUserProfile> { const response = await this.client.get('/user/profile/basic'); return response.data; }