Skip to main content
Glama

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 new Wellness Project goal or standard target. Call this directly when the user wants to establish a goal; there is no schema-discovery or list_goals prerequisite. Available goal types and inputs come from the canonical Goals definitions.

This tool loads the user's current goals itself before writing, so do not call list_goals first: it reports what a standard target changed from, and refuses to stack a second goal on top of one that already covers the same thing, naming that goal's ID to use with update_goal. Infer the goal_type and canonical inputs from the request. Formal goal fields are described on the generated inputs.

WEIGHT INPUTS: For body_weight_target_lb, use target_value_lb. For body_comp metric lean_mass_lb, use start_value_lb and target_value_lb. These aliases are unit-aware; in-app calls use the preferred unit, while external calls use pounds unless input_weight_unit is set. Legacy generic fields for these weight goals remain canonical pounds. Other standard targets use target_value; body-fat values remain percentages.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
titleNoConcise title, inferred from the goal inputs.
weeksNoFor weight_loss. Duration in weeks when target_date is not supplied. For body_comp. Duration in weeks when target_date is not supplied.
metricNoFor consistency. What consistency behavior to track. Required on create. Set at create, not editable later. For body_comp. Body composition metric. Required on create. Set at create, not editable later. For nutrition. Legacy nutrition metric.
new_nameNoFor n1_experiment. Name for a new supplement when not using supplement_id.
goal_typeYesGoal type to create.
new_brandNoFor n1_experiment. Optional brand for a new supplement.
race_dateNoFor race. Race date in YYYY-MM-DD format. Required on create.
start_dateNoYYYY-MM-DD. Default: today.
start_valueNoFor body_comp. Starting value when the goal begins. Required on create. Set at create, not editable later.
target_dateNoFor weight_loss. Target date in YYYY-MM-DD format. Use this when the user names a deadline. For body_comp. Target date in YYYY-MM-DD format. Use this when the user names a deadline.
week_windowNoFor consistency. How the week this goal is measured against is bounded: rolling = the last 7 days, sunday/monday = a calendar week that resets on that day. Default: rolling.
start_1rm_lbNoFor strength. Estimated 1RM when the goal starts. Required on create. Set at create, not editable later. In lb, or kg with input_weight_unit set. See UNIT INPUTS.
target_hoursNoFor consistency. Nightly sleep target in hours. Required when metric is sleep_duration.
target_valueNoFor body_comp. Target body composition value. Required on create. For nutrition. Legacy nutrition target value. For standard targets, this is the numeric target value.
exercise_nameNoFor strength. Exercise name. Required on create. Set at create, not editable later.
new_dose_unitNoFor n1_experiment. Dose unit for a new supplement.
supplement_idNoFor n1_experiment. Existing supplement ID. Use either supplement_id or the new-supplement fields.
target_1rm_lbNoFor strength. Target 1RM. Required on create. In lb, or kg with input_weight_unit set. See UNIT INPUTS.
start_value_lbNoStarting lean mass in body_comp. See WEIGHT INPUTS above. In lb, or kg with input_weight_unit set. See UNIT INPUTS.
new_dose_amountNoFor n1_experiment. Dose amount for a new supplement.
start_weight_lbNoFor weight_loss. Starting body weight. Required on create. Set at create, not editable later. In lb, or kg with input_weight_unit set. See UNIT INPUTS.
target_per_weekNoFor consistency. Target occurrences per week. Required on create.
target_time_secNoFor race. Target finish time in seconds. Required on create.
target_value_lbNoWeight goal target. See WEIGHT INPUTS above. In lb, or kg with input_weight_unit set. See UNIT INPUTS.
target_weight_lbNoFor weight_loss. Target body weight. Required on create. In lb, or kg with input_weight_unit set. See UNIT INPUTS.
input_weight_unitNoSet to kg when the user gave kg for the _lb fields in this object. Omit when they are already lb.
intervention_daysNoFor n1_experiment. Intervention duration in days.
baseline_directionNoFor n1_experiment. Use already logged previous 14 days or collect the next 14 days.
target_distance_miNoFor race. Target race distance. Required on create. In mi, or km with input_distance_unit set. See UNIT INPUTS.
input_distance_unitNoSet to km when the user gave km for the _mi fields in this object. Omit when they are already mi.
acknowledged_warningsNoWarning keys the user explicitly acknowledged after a guarded create attempt. Omit otherwise.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYesHuman-readable result text returned by the tool.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / start_value_lb
      Added value: +{
      +  "description": "Starting lean mass in body_comp. See WEIGHT INPUTS above. In lb, or kg with input_weight_unit set. See UNIT INPUTS.",
      +  "type": "number"
      +}
    • addedInput schema / properties / target_value_lb
      Added value: +{
      +  "description": "Weight goal target. See WEIGHT INPUTS above. In lb, or kg with input_weight_unit set. See UNIT INPUTS.",
      +  "type": "number"
      +}
  2. Changed1 schema field changed
    • changedInput schema / properties / goal_type / enum
      Previous value: -[
      -  "weight_loss",
      -  "strength",
      -  "consistency",
      -  "body_comp",
      -  "race",
      -  "n1_experiment",
      -  "daily_calories",
      -  "daily_protein_g",
      -  "daily_fat_g",
      -  "daily_carbs_g",
      -  "weekly_workouts",
      -  "daily_steps",
      -  "daily_cycling_distance_mi",
      -  "weekly_azm_target",
      -  "sleep_hours_target",
      -  "body_weight_target_lb",
      -  "body_fat_pct_target"
      -]New value: +[
      +  "weight_loss",
      +  "strength",
      +  "consistency",
      +  "body_comp",
      +  "race",
      +  "n1_experiment",
      +  "daily_calories",
      +  "daily_protein_g",
      +  "daily_fat_g",
      +  "daily_carbs_g",
      +  "weekly_workouts",
      +  "daily_steps",
      +  "daily_cycling_distance_mi",
      +  "daily_running_distance_mi",
      +  "weekly_azm_target",
      +  "sleep_hours_target",
      +  "body_weight_target_lb",
      +  "body_fat_pct_target"
      +]
  3. Changed1 schema field changed
    • changedInput schema / properties / goal_type / enum
      Previous value: -[
      -  "weight_loss",
      -  "strength",
      -  "consistency",
      -  "body_comp",
      -  "race",
      -  "n1_experiment",
      -  "daily_calories",
      -  "daily_protein_g",
      -  "daily_fat_g",
      -  "daily_carbs_g",
      -  "weekly_workouts",
      -  "daily_steps",
      -  "weekly_azm_target",
      -  "sleep_hours_target",
      -  "body_weight_target_lb",
      -  "body_fat_pct_target"
      -]New value: +[
      +  "weight_loss",
      +  "strength",
      +  "consistency",
      +  "body_comp",
      +  "race",
      +  "n1_experiment",
      +  "daily_calories",
      +  "daily_protein_g",
      +  "daily_fat_g",
      +  "daily_carbs_g",
      +  "weekly_workouts",
      +  "daily_steps",
      +  "daily_cycling_distance_mi",
      +  "weekly_azm_target",
      +  "sleep_hours_target",
      +  "body_weight_target_lb",
      +  "body_fat_pct_target"
      +]
  4. Added

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.