set_macro_targets
Update daily macro targets in grams, weekly weight goal, and sodium limits in Cronometer; only passed values change, so confirm and read current targets first.
Instructions
Set the daily macro targets in grams, the weekly weight goal and/or sodium.
Confirm the new values with the user first, and read the current ones with get_macro_targets so they can be put back. Only the arguments you pass change.
Gram targets require Fixed Targets mode in Cronometer's Macro & Energy Targets settings.
The calorie target cannot be set directly: Cronometer computes it from BMR, activity level and the weight goal. Move it with weight_goal_per_week (in the account's weight unit per week, negative to lose; each 1 lb/week is about 500 kcal/day). Check the result with get_food_log's energy_summary.total_target_kcal.
Args: protein_g: Daily protein target in grams. fat_g: Daily fat target in grams. net_carbs_g: Daily net-carb target in grams. weight_goal_per_week: Weight change per week, -2 to 2 (e.g. -1.5). sodium_mg_min: Daily sodium target (lower bound) in mg. sodium_mg_max: Daily sodium upper limit in mg.
Gram targets are written to both places the app keeps them (profile prefs and the per-nutrient target rows), so the diary summary and the target bars agree.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "set_macro_targets"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fat_g | No | ||
| protein_g | No | ||
| net_carbs_g | No | ||
| sodium_mg_max | No | ||
| sodium_mg_min | No | ||
| weight_goal_per_week | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |