optimize_lineup
Generate optimal DFS lineups using linear programming for NBA, NFL, MLB, or NHL. Apply cash game, tournament, or balanced strategies with player constraints and stacking preferences to maximize projected points within salary caps.
Instructions
Generate optimal DFS lineups using linear programming. Supports cash game and tournament strategies, stacking preferences, and player constraints. Returns multiple lineup variations with risk scores.
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": {
"sport": "<sport>",
"projections": "<projections>",
"salaryCap": "<salaryCap>"
},
"name": "optimize_lineup"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sport | Yes | Sport for lineup optimization | |
| projections | Yes | Player projections from get_player_projections | |
| salaryCap | Yes | Total salary cap (e.g., 50000 for DraftKings) | |
| lineupCount | No | Number of lineups to generate (1-150) | |
| strategy | No | Optimization strategy: cash (low risk), tournament (high upside), balanced | balanced |
| constraints | No |