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 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

NameRequiredDescriptionDefault
titleNoConcise title, inferred from the goal inputs.
weeksNoDuration in weeks when target_date is not supplied.
metricNoconsistency: What consistency behavior to track. body_comp: Body composition metric. nutrition: Legacy nutrition metric.
new_nameNoName for a new supplement when not using supplement_id.
goal_modeNomaintain = keep starting weight through the end date; change = gain/lose weight.
goal_typeYesGoal type to create.
new_brandNoBrand for a new supplement.
race_dateNoRace date, YYYY-MM-DD.
start_dateNoYYYY-MM-DD; default today.
start_valueNoStarting value when the goal begins.
target_dateNoYYYY-MM-DD deadline, when the user names one.
week_windowNoWeek the goal is measured over: rolling = the last 7 days; sunday/monday = a calendar week that resets on that day. Default rolling.
start_1rm_lbNoEstimated 1RM when the goal starts. lb, or kg via input_weight_unit.
target_hoursNoNightly sleep target in hours. Required when metric is sleep_duration.
target_valueNobody_comp: Target body composition value. nutrition: Legacy nutrition target value. Standard targets: the numeric target value.
exercise_nameNoExercise name.
new_dose_unitNoDose unit for a new supplement.
supplement_idNoExisting supplement ID. Use either supplement_id or the new-supplement fields.
target_1rm_lbNoTarget 1RM. lb, or kg via input_weight_unit.
start_value_lbNoStarting lean mass in body_comp. See WEIGHT INPUTS. lb, or kg via input_weight_unit.
new_dose_amountNoDose amount for a new supplement.
start_weight_lbNoStarting body weight. lb, or kg via input_weight_unit.
target_per_weekNoTarget occurrences per week.
target_time_secNoTarget finish time in seconds.
target_value_lbNoWeight goal target. See WEIGHT INPUTS. lb, or kg via input_weight_unit.
target_weight_lbNoTarget body weight. Required for goal_mode=change (gain/lose); leave blank to maintain starting weight. lb, or kg via input_weight_unit.
input_weight_unitNokg when the user gave kg for this object's _lb fields; omit for lb.
intervention_daysNoIntervention duration in days.
baseline_directionNopast = use the already logged previous 14 days; future = collect the next 14 days.
target_distance_miNoTarget race distance. mi, or km via input_distance_unit.
input_distance_unitNokm when the user gave km for this object's _mi fields; omit for mi.
acknowledged_warningsNoWarning keys the user explicitly acknowledged after a guarded create attempt. Omit otherwise.

Output Schema

NameRequiredDescriptionDefault
resultYesHuman-readable result text returned by the tool.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed29 schema fields changed
    • changedInput schema / properties / baseline_direction / description
      Previous value: -"For n1_experiment. Use already logged previous 14 days or collect the next 14 days."New value: +"past = use the already logged previous 14 days; future = collect the next 14 days."
    • changedInput schema / properties / exercise_name / description
      Previous value: -"For strength. Exercise name. Required on create. Set at create, not editable later."New value: +"Exercise name."
    • changedInput schema / properties / goal_mode / description
      Previous value: -"For weight_loss. Use maintain to keep starting weight through the end date, or change to gain/lose weight. Set when the goal is created. Set at create, not editable later."New value: +"maintain = keep starting weight through the end date; change = gain/lose weight."
    • changedInput schema / properties / input_distance_unit / description
      Previous value: -"Set to km when the user gave km for the _mi fields in this object. Omit when they are already mi."New value: +"km when the user gave km for this object's _mi fields; omit for mi."
    • changedInput schema / properties / input_weight_unit / description
      Previous value: -"Set to kg when the user gave kg for the _lb fields in this object. Omit when they are already lb."New value: +"kg when the user gave kg for this object's _lb fields; omit for lb."
    • changedInput schema / properties / intervention_days / description
      Previous value: -"For n1_experiment. Intervention duration in days."New value: +"Intervention duration in days."
    • changedInput schema / properties / metric / description
      Previous value: -"For 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 value: +"consistency: What consistency behavior to track. body_comp: Body composition metric. nutrition: Legacy nutrition metric."
    • changedInput schema / properties / new_brand / description
      Previous value: -"For n1_experiment. Optional brand for a new supplement."New value: +"Brand for a new supplement."
    • changedInput schema / properties / new_dose_amount / description
      Previous value: -"For n1_experiment. Dose amount for a new supplement."New value: +"Dose amount for a new supplement."
    • changedInput schema / properties / new_dose_unit / description
      Previous value: -"For n1_experiment. Dose unit for a new supplement."New value: +"Dose unit for a new supplement."
    • changedInput schema / properties / new_name / description
      Previous value: -"For n1_experiment. Name for a new supplement when not using supplement_id."New value: +"Name for a new supplement when not using supplement_id."
    • changedInput schema / properties / race_date / description
      Previous value: -"For race. Race date in YYYY-MM-DD format. Required on create."New value: +"Race date, YYYY-MM-DD."
    • changedInput schema / properties / start_1rm_lb / description
      Previous value: -"For 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."New value: +"Estimated 1RM when the goal starts. lb, or kg via input_weight_unit."
    • changedInput schema / properties / start_date / description
      Previous value: -"YYYY-MM-DD. Default: today."New value: +"YYYY-MM-DD; default today."
    • changedInput schema / properties / start_value / description
      Previous value: -"For body_comp. Starting value when the goal begins. Required on create. Set at create, not editable later."New value: +"Starting value when the goal begins."
    • changedInput schema / properties / start_value_lb / description
      Previous value: -"Starting lean mass in body_comp. See WEIGHT INPUTS above. In lb, or kg with input_weight_unit set. See UNIT INPUTS."New value: +"Starting lean mass in body_comp. See WEIGHT INPUTS. lb, or kg via input_weight_unit."
    • changedInput schema / properties / start_weight_lb / description
      Previous value: -"For 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."New value: +"Starting body weight. lb, or kg via input_weight_unit."
    • changedInput schema / properties / supplement_id / description
      Previous value: -"For n1_experiment. Existing supplement ID. Use either supplement_id or the new-supplement fields."New value: +"Existing supplement ID. Use either supplement_id or the new-supplement fields."
    • changedInput schema / properties / target_1rm_lb / description
      Previous value: -"For strength. Target 1RM. Required on create. In lb, or kg with input_weight_unit set. See UNIT INPUTS."New value: +"Target 1RM. lb, or kg via input_weight_unit."
    • changedInput schema / properties / target_date / description
      Previous value: -"For 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."New value: +"YYYY-MM-DD deadline, when the user names one."
    • changedInput schema / properties / target_distance_mi / description
      Previous value: -"For race. Target race distance. Required on create. In mi, or km with input_distance_unit set. See UNIT INPUTS."New value: +"Target race distance. mi, or km via input_distance_unit."
    • changedInput schema / properties / target_hours / description
      Previous value: -"For consistency. Nightly sleep target in hours. Required when metric is sleep_duration."New value: +"Nightly sleep target in hours. Required when metric is sleep_duration."
    • changedInput schema / properties / target_per_week / description
      Previous value: -"For consistency. Target occurrences per week. Required on create."New value: +"Target occurrences per week."
    • changedInput schema / properties / target_time_sec / description
      Previous value: -"For race. Target finish time in seconds. Required on create."New value: +"Target finish time in seconds."
    • changedInput schema / properties / target_value / description
      Previous value: -"For body_comp. Target body composition value. Required on create. For nutrition. Legacy nutrition target value. For standard targets, this is the numeric target value."New value: +"body_comp: Target body composition value. nutrition: Legacy nutrition target value. Standard targets: the numeric target value."
    • changedInput schema / properties / target_value_lb / description
      Previous value: -"Weight goal target. See WEIGHT INPUTS above. In lb, or kg with input_weight_unit set. See UNIT INPUTS."New value: +"Weight goal target. See WEIGHT INPUTS. lb, or kg via input_weight_unit."
    • changedInput schema / properties / target_weight_lb / description
      Previous value: -"For weight_loss. Required for change mode; leave blank to maintain starting weight. In lb, or kg with input_weight_unit set. See UNIT INPUTS."New value: +"Target body weight. Required for goal_mode=change (gain/lose); leave blank to maintain starting weight. lb, or kg via input_weight_unit."
    • changedInput schema / properties / week_window / description
      Previous value: -"For 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."New value: +"Week the goal is measured over: rolling = the last 7 days; sunday/monday = a calendar week that resets on that day. Default rolling."
    • changedInput schema / properties / weeks / description
      Previous value: -"For weight_loss. Duration in weeks when target_date is not supplied. For body_comp. Duration in weeks when target_date is not supplied."New value: +"Duration in weeks when target_date is not supplied."
  2. Changed2 schema fields changed
    • addedInput schema / properties / goal_mode
      Added value: +{
      +  "description": "For weight_loss. Use maintain to keep starting weight through the end date, or change to gain/lose weight. Set when the goal is created. Set at create, not editable later.",
      +  "enum": [
      +    "change",
      +    "maintain"
      +  ],
      +  "type": "string"
      +}
    • changedInput schema / properties / target_weight_lb / description
      Previous value: -"For weight_loss. Target body weight. Required on create. In lb, or kg with input_weight_unit set. See UNIT INPUTS."New value: +"For weight_loss. Required for change mode; leave blank to maintain starting weight. In lb, or kg with input_weight_unit set. See UNIT INPUTS."
  3. 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"
      +}
  4. 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"
      +]
  5. 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"
      +]
  6. Added

TDQS

A4.9/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations only declare it is a non-destructive, non-idempotent write; the description adds substantial behavior beyond that: it loads current goals itself, reports what a standard target changed from, refuses to stack a duplicate goal, and surfaces acknowledged_warnings after a guarded create attempt. The unit-conversion contract (convert once before storage, precedence over manual conversion) is also disclosed, which no annotation covers.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Dense but well-sectioned with labeled blocks and a per-goal_type table, and nearly every line carries operational meaning. The one structural weakness is that UNIT INPUTS is front-loaded ahead of the actual purpose statement, so the most important sentence is not first.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 32-parameter create tool with an output schema and annotations already present, this covers the remaining gaps: which inputs each goal_type requires, which are immutable after creation, unit handling, and the duplicate-goal refusal path. An agent has enough to construct a valid call without trial and error.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so a 3 would be the floor, but the description goes well past the schema by mapping required inputs per goal_type and marking fields with ^ as set-at-create and not editable later. It also explains the _lb/_mi companion-field pattern and the input_weight_unit/input_distance_unit escape hatch, which the schema only hints at field by field.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource: "Create a Wellness Project goal or standard target." It also distinguishes the create path from update_goal by explaining that a duplicate attempt returns the existing goal's ID for update_goal, so an agent can tell the two apart without opening either schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicit invocation guidance: "call: directly when the user wants to establish a goal; no schema discovery, no list_goals first," which pre-empts the most likely wrong sibling call. It also names the alternative path (update_goal) and the exact condition that selects it, plus an instruction to infer goal_type and inputs rather than interrogate the user.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.