Cueto agreed to a contract with the Giants on Monday, Buster Olney of ESPN reports.

Cueto's contract is expected to net him $130 million over a six-year frame, though he will have the option to opt out after two years, and the club has an option for a seventh season. The deal is still pending a physical before becoming official, but Cueto appears to be returning to the National League as he heads to San Francisco. The 29-year-old was hit or miss in his half season with the Royals, posting a 4.76 ERA with Kansas City in the regular season, but he was able to work to a sub-3.00 ERA in his last four and a half seasons with the Reds. He'll join fellow offseason acquisition Jeff Samardzija as supporting pieces behind Madison Bumgarner in the Giants' rotation.