whoop-get-user-profile
Retrieve basic user profile information including name and email for the authenticated WHOOP account holder to access personal identification details.
Instructions
Get basic user profile information (name, email) for the authenticated user
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Input Schema (JSON Schema)
{
"properties": {},
"required": [],
"type": "object"
}
Implementation Reference
- src/mcp-server.ts:301-311 (handler)MCP tool handler that calls the WhoopApiClient to get user profile and returns JSON-formatted result as tool 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)Helper method in WhoopApiClient that performs the actual API call to fetch the user's basic profile information.async getUserProfile(): Promise<WhoopUserProfile> { const response = await this.client.get('/user/profile/basic'); return response.data; }
- src/mcp-server.ts:34-42 (registration)Registration of the tool in the list returned by ListToolsRequestSchema, including name, description, and empty input schema.{ name: 'whoop-get-user-profile', description: 'Get basic user profile information (name, email) for the authenticated user', inputSchema: { type: 'object', properties: {}, required: [], }, },
- src/types.ts:2-7 (schema)Type definition for the user profile response data structure used by the tool.export interface WhoopUserProfile { user_id: number; email: string; first_name: string; last_name: string; }