Skip to main content
Glama

whoop-get-cycle-by-id

Retrieve detailed fitness and health cycle data from WHOOP by specifying a cycle ID to access recovery metrics, sleep analysis, and workout information.

Instructions

Get the cycle for the specified ID

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cycleIdYesID of the cycle to retrieve

Implementation Reference

  • Registration of the MCP tool 'whoop-get-cycle-by-id' including its description and input schema definition.
    name: 'whoop-get-cycle-by-id', description: 'Get the cycle for the specified ID', inputSchema: { type: 'object', properties: { cycleId: { type: 'number', description: 'ID of the cycle to retrieve', }, }, required: ['cycleId'], }, },
  • MCP CallToolRequest handler case for 'whoop-get-cycle-by-id' that performs input validation and calls the WhoopApiClient to execute the tool logic.
    case 'whoop-get-cycle-by-id': { if (!args || typeof args.cycleId !== 'number') { throw new Error('cycleId is required and must be a number'); } const result = await this.whoopClient.getCycleById(args.cycleId); return { content: [ { type: 'text', text: JSON.stringify(result, null, 2), }, ], }; }
  • Core helper function in WhoopApiClient that makes the HTTP GET request to the Whoop API endpoint `/cycle/{cycleId}` to fetch the cycle data.
    async getCycleById(cycleId: number): Promise<WhoopCycle> { const response = await this.client.get(`/cycle/${cycleId}`); return response.data; }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/nissand/whoop-mcp-server-claude'

If you have feedback or need assistance with the MCP directory API, please join our Discord server