After hitting in either the second or eighth spot in the batting order for most of his time in St. Louis, Herzog made Smith the number-two hitter full-time during the 1987 season. Over the course of the year, Smith accrued a .303 batting average, 43 stolen bases, 75 RBIs, 104 runs scored, and 40 doubles, good enough to earn him the Silver Slugger Award at shortstop. In addition to winning the Gold Glove Award at shortstop for the eighth consecutive time, Smith posted a career-high on-base percentage of .392. Smith was also the leading vote-getter in the 1987 All-Star Game. The Cardinals earned a postseason berth with 95 wins, and subsequently faced the San Francisco Giants in the 1987 National League Championship Series. Smith contributed a triple during the series, and the Cardinals won the contest in seven games.  The 1987 World Series matched the Cardinals against the American League champion Minnesota Twins. The home team won every game of the contest, as Minnesota won the series. In 28 at-bats during the Series, Smith scored three runs and had two RBIs. Smith finished second in MVP balloting to Andre Dawson, who had played on the last-place Chicago Cubs, largely because Smith and teammate Jack Clark split the first-place vote. Following the 1987 season, Smith was awarded the largest contract in the National League at $2,340,000.  While the team did not see the postseason for the remainder of the decade, Smith continued to rack up All-Star appearances and Gold Gloves. Combined with the attention he received from his contract, Smith continued to be a national figure. Known as a savvy dresser, he made the April 1988 cover of GQ magazine. Smith was witness to change within the Cardinal organization when owner Gussie Busch died in 1989 and Herzog quit as manager during the 1990 season.

Answer this question "what team did he play for in 87" by extracting the answer from the text above.
The Cardinals