Skip to main content
Glama

whoop-get-cycle-by-id

Retrieve specific WHOOP cycle data using its unique identifier to access detailed fitness metrics, recovery analysis, and physiological performance 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 'whoop-get-cycle-by-id' tool, including name, description, and input schema.
    { 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 tool handler for 'whoop-get-cycle-by-id': validates cycleId input and delegates to WhoopApiClient.getCycleById, returns JSON stringified result.
    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 implementation fetching the cycle data by ID from the Whoop API endpoint /cycle/{cycleId} using axios.
    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