Lineup legality and optimization check
check_lineupAudit a fantasy lineup for a given week, identifying unfilled slots, bye players, injuries, IR violations, and bench upgrades to optimize your roster before kickoff.
Instructions
Audit a team's lineup for a week against the league's real slot requirements and player availability. Detects: unfilled starting slots that would score zero, starters on a bye, starters who are OUT or DOUBTFUL, questionable starters needing a kickoff check, players illegally occupying an IR slot (which blocks lineup submission in ESPN), injured bench players who could be stashed on an open IR slot to free a bench spot, and bench players outscoring a starter they are eligible to replace. Use this for "is my lineup set", "am I missing anything", and IR or bench optimization questions.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| week | Yes | Week to audit. Required, because rosters and byes are week-specific. | |
| year | No | Season year, e.g. 2026. Omit to use the server-configured default season. | |
| teamId | Yes | Fantasy team ID from get_teams. Resolve team names to IDs with get_teams first. | |
| leagueId | No | ESPN league ID. Omit to use the server-configured default league. |