The New York Yankees acquired right-handed pitcher Brandon McCarthy and cash considerations from the Arizona Diamondbacks for left-hander Vidal Nuno on Sunday.

The Yankees also designated veteran outfielder Alfonso Soriano for assignment.

The Diamondbacks will pay half of the $4.1 million owed to McCarthy for the rest of the season and the Yankees will pay the $1 million in his assignment bonus, according to ESPN.

McCarthy is 3-10 with a 5.01 ERA in 18 starts this year.

The 30-year-old is 45-60 with a 4.21 ERA in 193 games (139 starts) over nine major league seasons with the Chicago White Sox (2005-06), Texas Rangers (2007-09), Oakland A's (2011-12) and Diamondbacks (2013-14).

McCarthy was struck in the head on a line drive hit by Erick Aybar of the Los Angeles Angels on Sept. 5, 2012 while pitching for the A's and needed emergency surgery to relieve pressure on his brain caused by internal bleeding. He had a seizure in June 2013 that doctors said was related to his head injury.

The Yankees made the move to acquire McCarthy after facing the reality that left-hander CC Sabathia may be done for the season with a right knee injury and right-hander Michael Pineda is at least a month away from returning to the majors. The bottom three starters -- David Phelps, Nuno and Chase Whitley -- have been inconsistent.

Nuno, 26, is 3-7 with a 4.78 ERA in 22 games (17 starts) over the last two seasons with the Yankees. He was signed as a minor league free agent in June 2011.

Soriano, 38, has a batting line of .221/.244/.367 with six home runs and 23 RBIs in 238 plate appearances this season. He has been in a platoon in the outfield with Ichiro Suzuki getting most of the starts in right.

The Yankees re-acquired Soriano from the Chicago Cubs in the second half of last season. He had a batting line of .256/.325/.525 with 17 home runs and 50 RBIs in 58 games with the Yankees after the trade. The Cubs are paying $13 million of his $18 million salary this year. The Yankees still owe him $5 million.

Soriano is in the final year of an eight-year, $138 million contract. He has said he may retire at the end of this season.

By clearing the roster spot, the club recalled right-hander Bruce Billings from Triple-A Scranton/Wilkes-Barre. Billings, 28, has a 5.31 ERA in 11 Triple-A starts this season. He will provide the Yankees with long-inning relief help.