Get Rosters
get_rostersFetch all rosters in a Sleeper league, with player IDs annotated by player names. Use it to view team compositions and identify players quickly.
Instructions
Get all rosters in a league. Player IDs are annotated with player names (which may not load if the player cache is warm).
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": {
"league_id": "<league_id>"
},
"name": "get_rosters"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| league_id | Yes | The Sleeper league ID. |