The Mets have agreed to a minor league deal with free-agent infielder Eduardo Nunez, according to Jesse Sanchez of MLB.com. It includes a non-roster invite to Major League Spring Training.

Nunez, 32, is coming off a dreadful year that ended in July with his release from the Red Sox, with whom he had played since mid-2017. Nunez played in just 60 games for the Sox last year, and yet he accumulated -1.5 WAR thanks largely to an unsightly .228/.243/.305 batting line.

Those numbers are hard to swallow, but Nunez really isn’t that far from removed from a couple of seasons in 2016 and 2017 in which he provided above-average offensive output to go with his signature aggressive baserunning. Splitting the 2017 season between San Francisco and Boston, he posted an .801 OPS to go with 24 stolen bases. He’s never received high marks as a defender, but he’s at least capable of playing second and third base.

He will join an already crowded Mets infield mix with a chance to compete for a roster spot in the spring. The starting infield looks pretty well solidified, but Nunez may have a shot at supplanting Luis Guillorme, who’s a more polished shortstop but also has a patchy offensive track record, for bench at-bats.