Set the daily goals
set_targetsSet daily calorie and macro goals, adjust water glass size, or revert to automatic Fitatu-calculated targets. Changes apply from today; earlier days keep their goals.
Instructions
Change the user's daily goals from today on; earlier days keep theirs. energy_kcal sets a manual calorie goal. protein_pct, fat_pct and carbohydrate_pct set the macro split as whole percent of the energy, all three summing to 100; the grams follow from the energy. With energy_kcal alone the current split stays, or 20/30/50 when the account has none (say so); the percentages alone keep the current energy, as a manual goal. automatic true goes back to the goal Fitatu calculates from the user's profile, with no energy_kcal or percentages. water_glass_ml is the glass size water is counted in (get_water's glass_ml). Returns the goals now in effect as get_targets gives them, plus automatic, glass_ml and previous: the arguments that put back what this call changed, with no water_glass_ml when there was no glass size (that cannot be put back). data.ok says Fitatu's reply shows the change.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fat_pct | No | Fat's share of the energy goal in whole percent (not body fat). | |
| automatic | No | true: back to the goal Fitatu calculates. Only true, and not with energy_kcal or the percentages. | |
| energy_kcal | No | Daily calorie goal in kcal; makes the goal manual. Convert kJ first: 1 kcal = 4.184 kJ. | |
| protein_pct | No | Protein's share of the energy goal in whole percent; with fat_pct and carbohydrate_pct, summing to 100. | |
| water_glass_ml | No | Size of one glass in ml. | |
| carbohydrate_pct | No | Carbohydrate's share of the energy goal in whole percent. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| data | No | ||
| error | No | describe_error() of what went wrong; docs/AGENTS.md, Results and errors. |