The Yankees’ 40-man roster is at the limit.

To make room on the roster for highly regarded prospects, Monday the Yankees shipped Ronald Herrera to the Rangers for lefty Reiver Sanmartin and infielder Garrett Cooper and lefty Caleb Smith to the Marlins for minor league right-hander Michael King. The Yankees, according to The Post’s Joel Sherman, also received $250,000 in international pool money.

Gleyber Torres, Albert Abreu, Domingo Acevedo, Thairo Estrada, Billy McKinney and Jonathan Loaisiga were added to the 40-man roster so they wouldn’t be subject to the Rule 5 draft at the winter meetings next month.

There were years that finding spots on the 40-man wasn’t a problem because other teams didn’t regard the Yankees’ system that highly. Now, with many believing it’s the best in baseball, there could be some interesting talent from the Yankees’ system available in the Rule 5 draft. Right-handers Cale Coshow and J.P. Feyereisen, who were not added to the 40-man roster, have a “50-50’’ chance of being taken, according to several talent evaluators.

While Torres, the centerpiece of the 2016 trade that sent Aroldis Chapman to the Cubs, was limited to 55 games in two minor league stops this season following Tommy John surgery on his left (non-throwing) elbow, he is expected to be ready for the 2018 season and could surface in the big leagues next season. Abreu, 22, was one of two young pitchers the Yankees got from the Astros for catcher Brian McCann last November. He appeared in 14 games at three levels this summer.