PORT ST. LUCIE, Fla. — With Jenrry Mejia bearing down on him, Daisuke Matsuzaka needed a strong start on Tuesday to quiet his skeptics and lock down a rotation spot.

Something like this should suffice. Matsuzaka blanked the reigning National League-champion Cardinals into the seventh, leading the Mets to a 5-3 win at Tradition Field.

“I went up there knowing this would be my last chance to show what I can do,” Matsuzaka said through an interpreter. “I think I’ve done pretty much everything I can and showed what I can do out there. The decision is up to them now, and we’ll see what happens.”

Cardinals starter Shelby Miller worked five innings, striking out four, walking three and allowing three hits.

A day after Mejia lowered his Grapefruit League ERA to 2.89 with five strong innings, Matsuzaka was just as impressive; he scattered three hits and three walks over six-plus innings, leaving after hitting the first batter in the seventh, who later scored. The outing lowered his spring ERA to 3.86, with 17 strikeouts in 18 2/3 innings.

Per terms of Matsuzaka’s contract, the Mets must inform him by Tuesday whether he has made the Opening Day roster.

The Mets did all their damage against Miller in the third. After Ruben Tejada and Eric Young, Jr. sparked the rally with a leadoff walk and a bunt single, Daniel Murphy’s double plated both of them.David Wright then moved Murphy to third base with a groundout, and Curtis Granderson scored him with a sacrifice fly.

Playing in his second consecutive game after missing a week with right calf soreness, Murphy finished 2-for-3. The Mets fielded a lineup resembling the one they will use on Opening Day, albeit with Lucas Duda playing first base instead of Ike Davis. The Mets also batted their pitcher eighth for the second time this spring.

The Mets were cruising to victory until Vic Black relieved Matsuzaka with no outs and a man on first in the seventh. Black faced three batters and did not retire any of them, plunking one, throwing a wild pitch and allowing three runs (one inherited). So successful down the stretch last summer, Black now sports a 6.75 spring ERA with more walks (nine) than innings pitched (eight).

“I like to think back to my two previous springs, and they were bumpy and rocky,” Black said. “There’s just something about games in-season that get me to click. I’m not relying on that, because they still need to see that I can go out and compete and perform. But right now, I’ll just get another outing and go from there.”

Insurance runs came for the Mets on Travis d’Arnaud’s RBI single in the sixth and Omar Quintanilla’s run-scoring knock in the seventh.

Up next: The Cardinals will serve as the visiting team for Tuesday’s game at Roger Dean Stadium against the Marlins at 12:05 p.m. CT, live on MLB.TV . St. Louis will face off against Marlins ace Jose Fernandez as it sends Lance Lynn to the mound for his final spring tuneup. The right-hander has a 6.35 ERA in four Grapefruit League games, including three starts, after giving up three runs in four innings against the Marlins last Thursday.

Anthony DiComo is a reporter for MLB.com. Follow him on Twitter @AnthonyDicomo. This story was not subject to the approval of Major League Baseball or its clubs.