The differential distribution of original rock stress and stress concentration caused by the variation in coal seam depth in karst topography are critical factors influencing the selection of roof-cutting parameters. Based on this, this study explores a method to determine reasonable roof-cutting parameters by incorporating the characteristics of coal seam depth variation in karst mountainous areas. A mechanical model of the cantilever beam structure for roof cutting in gob-side entry retention (GSER) is constructed, and the critical values and reasonable ranges of roof-cutting height and angle under different burial depths are derived. Furthermore, the displacement and stress evolution characteristics of surrounding rocks in gob-side entry retention under different coal seam burial depths, roof-cutting heights, and roof-cutting angles within the reasonable range of roof-cutting parameters are analyzed. The results show that there is a positive correlation between roof-cutting height and tensile stress in the uncut portion of the main roof, while roof-cutting angle and coal seam depth are negatively correlated with tensile stress. From the perspective of impact, roof-cutting height has a greater impact than roof-cutting angle, followed by coal seam depth. As for the distribution characteristics of the reasonable roof-cutting parameter range, the fan-shaped area of reasonable roof-cutting parameters gradually decreases with increasing coal seam depth. Taking the geological conditions of Anshun Coal Mine as an example, when the burial depth increases from 350 m to 550 m, adjusting the roof-cutting height to 6 m, 7 m, and 8 m, respectively, and setting the roof-cutting angle at 10° can effectively achieve the stability of the surrounding rock in the GSER. The research findings can provide a scientific basis and engineering references for selecting roof-cutting parameters in mines with similar geological conditions.