mlb_team_roster
Retrieve a major league baseball team's roster with player positions, jersey numbers, and status. Select roster type: active, 40-man, full-season, or depth chart.
Instructions
A team's roster — players with position and jersey number. rosterType selects active / 40-man / full-season / depth chart.
Returns: {roster:[{person:{id, fullName}, jerseyNumber, position:{abbreviation, name}, status}], teamId, rosterType}
Auth: none needed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | Roster as of a date (YYYY-MM-DD). | |
| season | No | Season year. | |
| teamId | Yes | Team id (from mlb_teams). Required — part of the URL path. | |
| hydrate | No | Embed related objects (e.g. 'person(stats(type=season))'). | |
| rosterType | No | active | 40Man | fullSeason | fullRoster | depthChart | gameday. | active |