mlb_sports_players
Get the complete roster of players for any sport and season, resolving names to player IDs. Use sportId=1 for MLB data.
Instructions
All players in a sport for a season — the full player catalogue (name → id resolution). sportId=1 for MLB.
Returns: {people:[{id, fullName, firstName, lastName, primaryNumber, birthDate, currentAge}]} (large)
Auth: none needed.
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": {
"sportId": "<sportId>",
"season": "<season>"
},
"name": "mlb_sports_players"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| season | Yes | Season year. | |
| hydrate | No | Embed related objects. | |
| sportId | Yes | Sport id (1 = MLB). Required — part of the URL path. |