Mark J. Rebilas-USA TODAY Sports

The New York Mets acquired outfielder/first baseman Darin Ruf from the San Francisco Giants on Tuesday for third baseman J.D. Davis and prospects.

In addition to Davis, the Giants also will receive left-hander Thomas Szapucki, along with Class-A left-hander Nick Zwack and right-hander Carson Seymour.

Ruf, 36, has 11 home runs with 38 RBIs in 90 games this season, batting .216 with a .701 OPS. He returns to the National League East after playing his first five seasons with the Philadelphia Phillies. He has played 36 games at first base and 30 in the outfield this season.

Davis, 29, is batting .238 with four home runs and 21 RBIs this season and is a .266 hitter with 42 home runs and 132 RBIs in 401 games over six seasons with the Houston Astros and Mets. Davis gives the Giants coverage at third base while Evan Longoria is on the injured list with a right hamstring strain.

Szapucki, 26, has pitched in two games for the Mets over the past two seasons.

More must-reads:

TODAY'S BEST
Roger Goodell speaks honestly about 18-game NFL season plan
Orioles make big decision with struggling top prospect
ESPN analysts disagree over Falcons drafting Michael Penix Jr.
Former Knicks guard calls out Joel Embiid for questionable play
LeBron James as Lakers struggle: 'We're supposed to have anxiety'
Bills GM doesn't regret trading back with Chiefs in first round of NFL Draft
Caleb Williams embracing lofty, historic goals with Bears
Yet another starting pitcher goes down with elbow discomfort
A look at how the first round of the NFL Draft went for the NFC North
Will Patriots start Drake Maye over Jacoby Brissett?
Former Giants OL Korey Cunningham dies at 28
After draft disappointment, Knicks' Josh Hart has found his NBA home
Magic end 13-year drought as Paolo Banchero makes history
Joel Embiid makes incredible NBA playoffs history
Falcons make awful draft decision with No. 8 overall pick
Joel Embiid's career high keeps 76ers alive in series vs. Knicks
Bears select Caleb Williams with No. 1 pick in 2024 NFL Draft
Shohei Ohtani says what he's 'grateful' for following interpreter gambling scandal
Eagles lock in another star wide receiver with record contract extension
Panthers win again to push Lightning to playoff brink