naftiko: 1.0.0-alpha2 info: label: WHOOP API — Sleep description: WHOOP Sleep activities. List sleeps and get a specific sleep by UUID. tags: - WHOOP - Sleep created: '2026-05-25' modified: '2026-05-25' binds: - namespace: env keys: WHOOP_ACCESS_TOKEN: WHOOP_ACCESS_TOKEN capability: consumes: - type: http namespace: whoop-sleep baseUri: https://api.prod.whoop.com/developer description: WHOOP Sleep business capability — primary sleeps and naps with stage-by-stage analytics. resources: - name: v2-activity-sleep path: /v2/activity/sleep operations: - name: listsleeps method: GET description: List WHOOP Sleep activities for the authorized member. outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: limit in: query type: integer - name: start in: query type: string - name: end in: query type: string - name: nextToken in: query type: string - name: v2-activity-sleep-by-id path: /v2/activity/sleep/{sleepId} operations: - name: getsleep method: GET description: Get a specific Sleep activity by UUID. outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: sleepId in: path type: string required: true authentication: type: bearer value: '{{env.WHOOP_ACCESS_TOKEN}}' placement: header exposes: - type: rest namespace: whoop-sleep-rest port: 8080 description: REST adapter for WHOOP Sleep. resources: - path: /v1/v2/activity/sleep name: v2-activity-sleep operations: - method: GET name: listsleeps call: whoop-sleep.listsleeps outputParameters: - type: object mapping: $. - type: mcp namespace: whoop-sleep-mcp port: 9090 transport: http description: MCP adapter for WHOOP Sleep. tools: - name: whoop-list-sleeps description: List WHOOP Sleep activities. hints: readOnly: true destructive: false idempotent: true call: whoop-sleep.listsleeps outputParameters: - type: object mapping: $. - name: whoop-get-sleep description: Get a Sleep activity by UUID. hints: readOnly: true destructive: false idempotent: true call: whoop-sleep.getsleep with: sleepId: tools.sleepId outputParameters: - type: object mapping: $.