Set daily targets
trainrec_set_targetsSets the daily calorie and macro targets, and optionally a target for any other nutrient (the keys in overview.foodNutrients): a ceiling for the ones to limit, such as sodiumMg, cholesterolMg, sugarG, saturatedFatG or caffeineMg, and an amount to reach for the rest, such as potassiumMg, fiberG or calciumMg. nutrients left out keeps the ones already set; {} clears them.
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": {
"kcal": "<kcal>",
"proteinG": "<proteinG>",
"carbsG": "<carbsG>",
"fatG": "<fatG>"
},
"name": "trainrec_set_targets"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fatG | Yes | ||
| kcal | Yes | ||
| carbsG | Yes | ||
| proteinG | Yes | ||
| nutrients | No |