update_goals
Change the user's goal and daily targets — the same settings as the app's Goals screen. Send ONLY the fields to change. Each target takes a number (a custom target) or "auto" (computed from their body, activity and goal). The server keeps calories and macros consistent (protein×4 + carbs×4 + fat×9 ≈ calories), so the targets it returns can differ slightly from what you sent — report the returned ones. Current weight is not here: log a weigh-in with log_weight. Needs the user's "Change goals & settings" switch for this connection (whatevr app → Settings → Connections); if it's off you'll get a message saying so — relay it. The user is notified of every change.
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": "update_goals"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| goal | No | ||
| fat_target_g | No | 10–250, or "auto". | |
| activity_level | No | ||
| calorie_target | No | 1000–5000, or "auto". | |
| carbs_target_g | No | 20–600, or "auto". | |
| goal_weight_lb | No | ||
| fiber_minimum_g | No | ||
| sugar_maximum_g | No | ||
| protein_target_g | No | 20–400, or "auto". | |
| rate_lb_per_week | No | Pace for lose/gain (ignored for maintain). | |
| sodium_maximum_mg | No | ||
| water_goal_glasses | No |