botindex_dfs_optimizer
Optimize DFS lineups by adjusting for player correlations within salary cap constraints to improve lineup performance.
Instructions
Correlation-adjusted DFS lineup optimizer. Returns optimized lineups accounting for player correlations. $0.10
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| budget | No | Salary cap budget | |
| sport | No | Target sport |
Implementation Reference
- src/index.ts:213-229 (handler)The tool 'botindex_dfs_optimizer' is dynamically registered at runtime by fetching a catalog of tools from a remote endpoint. This block is the handler that executes these dynamically registered tools, including 'botindex_dfs_optimizer'.
server.tool( tool.name, tool.description, zodSchema, async (args: Record<string, any>) => { const params: Record<string, string> = {}; if (tool.params) { for (const p of tool.params) { if (args[p.name] !== undefined) { params[p.name] = String(args[p.name]); } } } const data = await fetchBotindex(tool.path, params); return { content: [{ type: 'text', text: toToolText(data) }] }; }, );