create_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.
Create a Wellness Project goal or standard target. call: directly when the user wants to establish a goal; no schema discovery, no list_goals first. behavior: loads current goals itself; reports what a standard target changed from; refuses to stack a second goal on one already covering the same thing and names that goal's ID for update_goal. infer: goal_type and inputs from the request.
INPUTS BY goal_type (* = required, ^ = set at create, not editable later): weight_loss: goal_mode^, start_weight_lb*^, target_weight_lb, weeks, target_date strength: exercise_name*^, start_1rm_lb*^, target_1rm_lb* consistency: metric*^, target_per_week*, target_hours, week_window body_comp: metric*^, start_value*^, target_value*, weeks, target_date race: target_distance_mi*, target_time_sec*, race_date* n1_experiment: supplement_id, new_name, new_brand, new_dose_amount, new_dose_unit, baseline_direction, intervention_days standard targets (every other goal_type): target_value, or target_value_lb per WEIGHT INPUTS.
WEIGHT INPUTS: body_weight_target_lb -> target_value_lb. body_comp metric lean_mass_lb -> start_value_lb + target_value_lb. Both are unit-aware: in-app calls use the preferred unit, external calls pounds unless input_weight_unit is set. Legacy generic fields for these weight goals stay canonical pounds. Other standard targets use target_value; body-fat values stay percentages.
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": {
"goal_type": "<goal_type>"
},
"name": "create_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. | |
| metric | No | consistency: What consistency behavior to track. body_comp: Body composition metric. nutrition: Legacy nutrition metric. | |
| new_name | No | Name for a new supplement when not using supplement_id. | |
| goal_mode | No | maintain = keep starting weight through the end date; change = gain/lose weight. | |
| goal_type | Yes | Goal type to create. | |
| new_brand | No | Brand for a new supplement. | |
| race_date | No | Race date, YYYY-MM-DD. | |
| start_date | No | YYYY-MM-DD; default today. | |
| start_value | No | Starting value when the goal begins. | |
| 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 | Estimated 1RM when the goal starts. 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 | Exercise name. | |
| new_dose_unit | No | Dose unit for a new supplement. | |
| supplement_id | No | Existing supplement ID. Use either supplement_id or the new-supplement fields. | |
| 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 | Dose amount for a new supplement. | |
| start_weight_lb | No | Starting body weight. 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 | Intervention duration in days. | |
| baseline_direction | No | past = use the already logged previous 14 days; future = collect the next 14 days. | |
| 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. |