get_mlb_players
Retrieve MLB player data by specifying sport ID and optional season. Access comprehensive player statistics for baseball analytics.
Instructions
Get all players for a specific sport.
Args: sport_id (int): Sport ID (default: 1 for MLB). season (Optional[int]): Filter players by a specific season (year).
Returns: dict: All players for the specified sport.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
season | No | ||
sport_id | No |
Input Schema (JSON Schema)
{
"properties": {
"season": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"default": null,
"title": "Season"
},
"sport_id": {
"default": 1,
"title": "Sport Id",
"type": "integer"
}
},
"type": "object"
}