The Pirates traded shortstop John McDonald to the Cleveland Indians today for a player to be named later or cash, the team announced.

McDonald, 38, was on the 15-day disabled list since May 15 because of back and elbow pain. He had two hits in 35 plate appearances for the Pirates this season. He was on a rehab assignment with Class AAA Indianapolis. The Pirates recalled him from the rehab assignment and activated him from the DL prior to the trade.

The Pirates acquired McDonald from the Arizona Diamondbacks March 20 to add depth at shortstop after Chase d'Arnaud had thumb surgery.

The move cleared a spot on the 40-man roster for Gerrit Cole, whom the Pirates plan to call up Tuesday.

The Indians drafted McDonald in the 12th round in 1996, and he debuted with them in '99.