whoop-get-recovery-for-cycle
Retrieve recovery metrics for a specific WHOOP cycle using its ID to analyze physiological data and track fitness progress.
Instructions
Get recovery data for a specific cycle
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cycleId | Yes | ID of the cycle to get recovery data for |
Implementation Reference
- src/whoop-api.ts:96-99 (handler)Core handler function that performs the HTTP GET request to the Whoop API to retrieve recovery data for the specified cycle ID.async getRecoveryForCycle(cycleId: number): Promise<WhoopRecovery[]> { const response = await this.client.get(`/cycle/${cycleId}/recovery`); return response.data; }
- src/mcp-server.ts:143-156 (registration)Tool registration in MCP server including name, description, and input schema validation.{ name: 'whoop-get-recovery-for-cycle', description: 'Get recovery data for a specific cycle', inputSchema: { type: 'object', properties: { cycleId: { type: 'number', description: 'ID of the cycle to get recovery data for', }, }, required: ['cycleId'], }, },
- src/mcp-server.ts:403-416 (handler)MCP tool request handler that validates arguments, delegates to WhoopApiClient, and formats response as MCP content.case 'whoop-get-recovery-for-cycle': { if (!args || typeof args.cycleId !== 'number') { throw new Error('cycleId is required and must be a number'); } const result = await this.whoopClient.getRecoveryForCycle(args.cycleId); return { content: [ { type: 'text', text: JSON.stringify(result, null, 2), }, ], }; }