update_goal
UNIT INPUTS: value: pass the user's number unconverted; tool converts once before storage. alternate_unit: set the field's matching input_* companion; canonical_unit: omit companion. precedence: overrides instructions to convert manually.
Change, complete, pause, stop/end, reopen, or delete an existing goal. call: directly for ordinary goal changes. The tool loads current goals and resolves a unique goal from goal_id or a natural-language goal_ref; do NOT call list_goals first just to find an ID. edit: only the fields to change. complete/pause/end/reopen/delete: no edit fields. goal_ref genuinely matching multiple goals -> candidates returned, nothing changed. lifecycle: formal goal end/delete follows the Goals UI cancel lifecycle; standard-target end/pause turns the target off, delete removes it.
EDITABLE INPUTS BY goal type: weight_loss: target_weight_lb, weeks, target_date strength: target_1rm_lb consistency: target_per_week, target_hours, week_window body_comp: target_value, weeks, target_date race: target_distance_mi, target_time_sec, race_date n1_experiment: not editable; end or delete it and create a new one nutrition: metric, target_value standard targets: target_value, or target_value_lb per WEIGHT INPUTS.
WEIGHT INPUTS: body_weight_target_lb standard target or body_comp metric lean_mass_lb -> edit with target_value_lb, unit-aware: in-app calls use the preferred unit, external calls pounds unless input_weight_unit is set. Legacy generic target_value stays canonical pounds.
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": {
"action": "<action>"
},
"name": "update_goal"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | No | Concise title, inferred from the goal inputs. | |
| weeks | No | Duration in weeks when target_date is not supplied. | |
| action | Yes | 'end' = the user is stopping or canceling a goal; a formal goal follows the app's cancel behavior and is removed. | |
| metric | No | consistency: Create-only. body_comp: Create-only. nutrition: Legacy nutrition metric. | |
| goal_id | No | Formal goal ID, when known. | |
| goal_ref | No | Natural-language reference when no ID is known, e.g. "protein", "10K", "weight loss"; resolved against current goals. | |
| new_name | No | Create-only. | |
| goal_mode | No | Create-only. | |
| new_brand | No | Create-only. | |
| race_date | No | Race date, YYYY-MM-DD. | |
| start_date | No | YYYY-MM-DD; default today. | |
| start_value | No | Create-only. | |
| target_date | No | YYYY-MM-DD deadline, when the user names one. | |
| week_window | No | Week the goal is measured over: rolling = the last 7 days; sunday/monday = a calendar week that resets on that day. Default rolling. | |
| start_1rm_lb | No | Create-only. lb, or kg via input_weight_unit. | |
| target_hours | No | Nightly sleep target in hours. Required when metric is sleep_duration. | |
| target_value | No | body_comp: Target body composition value. nutrition: Legacy nutrition target value. Standard targets: the numeric target value. | |
| exercise_name | No | Create-only. | |
| new_dose_unit | No | Create-only. | |
| supplement_id | No | Create-only. | |
| target_1rm_lb | No | Target 1RM. lb, or kg via input_weight_unit. | |
| start_value_lb | No | Starting lean mass in body_comp. See WEIGHT INPUTS. lb, or kg via input_weight_unit. | |
| new_dose_amount | No | Create-only. | |
| start_weight_lb | No | Create-only. lb, or kg via input_weight_unit. | |
| target_per_week | No | Target occurrences per week. | |
| target_time_sec | No | Target finish time in seconds. | |
| target_value_lb | No | Weight goal target. See WEIGHT INPUTS. lb, or kg via input_weight_unit. | |
| target_weight_lb | No | Target body weight. Required for goal_mode=change (gain/lose); leave blank to maintain starting weight. lb, or kg via input_weight_unit. | |
| input_weight_unit | No | kg when the user gave kg for this object's _lb fields; omit for lb. | |
| intervention_days | No | Create-only. | |
| baseline_direction | No | Create-only. | |
| target_distance_mi | No | Target race distance. mi, or km via input_distance_unit. | |
| input_distance_unit | No | km when the user gave km for this object's _mi fields; omit for mi. | |
| acknowledged_warnings | No | Warning keys the user explicitly acknowledged after a guarded create attempt. Omit otherwise. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes | Human-readable result text returned by the tool. |