get_user_leagues
List all Sleeper leagues for a user's sport and season, returning league IDs and metadata to enable standings, matchup, roster, and transaction analysis. Requires a numeric user ID from get_user.
Instructions
List all Sleeper leagues belonging to a user for a sport and season.
Returns league metadata including league_id, draft_id, settings, scoring, roster positions, status, and previous-league linkage. Resolve a username with get_user first. Use this to discover league IDs before standings, matchup, roster, transaction, or playoff analysis.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sport | No | Sport slug used by Sleeper; currently use 'nfl'. | nfl |
| season | No | Four-digit league season, such as '2026'. | 2026 |
| user_id | Yes | Numeric Sleeper user_id obtained from get_user, not a username. |