whoop-get-user-body-measurements
Retrieve your body measurements including height, weight, and maximum heart rate data from your WHOOP fitness tracker account.
Instructions
Get body measurements (height, weight, max heart rate) for the authenticated user
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Input Schema (JSON Schema)
{
"properties": {},
"required": [],
"type": "object"
}
Implementation Reference
- src/whoop-api.ts:49-52 (handler)Core handler function that fetches body measurements from the Whoop API endpoint '/user/measurement/body'.async getUserBodyMeasurements(): Promise<WhoopBodyMeasurements> { const response = await this.client.get('/user/measurement/body'); return response.data; }
- src/mcp-server.ts:313-323 (handler)MCP server CallToolRequest handler that delegates to WhoopApiClient.getUserBodyMeasurements() and formats the JSON response.case 'whoop-get-user-body-measurements': { const result = await this.whoopClient.getUserBodyMeasurements(); return { content: [ { type: 'text', text: JSON.stringify(result, null, 2), }, ], }; }
- src/mcp-server.ts:43-51 (registration)Tool registration in ListToolsRequestHandler, defining name, description, and input schema (no parameters required).{ name: 'whoop-get-user-body-measurements', description: 'Get body measurements (height, weight, max heart rate) for the authenticated user', inputSchema: { type: 'object', properties: {}, required: [], }, },
- src/types.ts:9-13 (schema)TypeScript interface defining the structure of the body measurements response data.export interface WhoopBodyMeasurements { height_meter: number; weight_kilogram: number; max_heart_rate: number; }