get_mlb_roster
Retrieve MLB team rosters by team name or ID, with options to filter by date, season, roster type, and specific data fields.
Instructions
Get team roster for a specific team (ID or name), with optional filters.
Args: team (str): Team ID or team name as a string. Can be numeric string, full name, abbreviation, or location. date (Optional[str]): Date in 'YYYY-MM-DD' format. If not provided, defaults to today. rosterType (Optional[str]): Filter by roster type (e.g., 40Man, fullSeason, etc.). season (Optional[str]): Filter by single season (year). hydrate (Optional[str]): Additional data to hydrate in the response. fields (Optional[str]): Comma-separated list of fields to include.
Returns: dict: Team roster information.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"team": "<team>"
},
"name": "get_mlb_roster"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| team | Yes | ||
| date | No | ||
| rosterType | No | ||
| season | No | ||
| hydrate | No | ||
| fields | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||