get_team_roster
Retrieve a specific team's full roster in an ESPN Fantasy Basketball league, including all players and positions. Supports filters for team, league, season year, and scoring period.
Instructions
Get roster for a specific team in an ESPN Fantasy Basketball league.
Args:
team_id: Team ID to get roster for (optional, uses ESPN_TEAM_ID env var)
league_id: ESPN Fantasy Basketball league ID (optional, uses ESPN_LEAGUE_ID env var)
year: Season year (e.g., 2025) (optional, uses ESPN_YEAR env var or defaults to 2025)
scoring_period: Specific scoring period (optional)
espn_s2: ESPN authentication cookie for private leagues (optional, uses ESPN_S2 env var)
swid: ESPN SWID cookie for private leagues (optional, uses ESPN_SWID env var)
Returns:
Dictionary with team roster including all players and their positions
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_team_roster"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| swid | No | ||
| year | No | ||
| espn_s2 | No | ||
| team_id | No | ||
| league_id | No | ||
| scoring_period | No |