fill_template
Fill Template
Fill a downloaded FanDuel/DK entries-template with already-generated lineups WITHOUT re-running the optimizer — the MCP-callable equivalent of the dashboard's fill_template. Keeps each entry row's leading columns (entry_id, contest_id, fee) and replaces the roster-slot columns with a lineup's upload tokens, cycling lineups if there are more entry rows than lineups.
Responses:
200: Successful Response (Success Response) Content-Type: application/json 422: Validation Error Content-Type: application/json
Example Response:
{
"detail": [
{
"loc": [],
"msg": "Message",
"type": "Error Type",
"ctx": {}
}
]
}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": {
"template_csv": "<template_csv>",
"lineups": "<lineups>"
},
"name": "fill_template"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lineups | Yes | Each lineup = upload tokens in template roster-slot order. | |
| template_csv | Yes | Raw CSV of the entries-template (headers + entry rows). | |
| lineup_header | No | The `upload.csv_header` the lineups came with (e.g. 'PG,SG,SF,PF,C,G/F,F/C,UTIL,UTIL'). When given, the template is filled only if its roster columns are exactly these; without it a FanDuel NBA flex template (G/F, F/C columns) is refused because the order of the tokens is unknown. |