Skip to main content
Glama

update_goal

Destructive

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

NameRequiredDescriptionDefault
titleNoConcise title, inferred from the goal inputs.
weeksNoDuration in weeks when target_date is not supplied.
actionYes'end' = the user is stopping or canceling a goal; a formal goal follows the app's cancel behavior and is removed.
metricNoconsistency: Create-only. body_comp: Create-only. nutrition: Legacy nutrition metric.
goal_idNoFormal goal ID, when known.
goal_refNoNatural-language reference when no ID is known, e.g. "protein", "10K", "weight loss"; resolved against current goals.
new_nameNoCreate-only.
goal_modeNoCreate-only.
new_brandNoCreate-only.
race_dateNoRace date, YYYY-MM-DD.
start_dateNoYYYY-MM-DD; default today.
start_valueNoCreate-only.
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_lbNoCreate-only. 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_nameNoCreate-only.
new_dose_unitNoCreate-only.
supplement_idNoCreate-only.
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_amountNoCreate-only.
start_weight_lbNoCreate-only. 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_daysNoCreate-only.
baseline_directionNoCreate-only.
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. Changed31 schema fields changed
    • changedInput schema / properties / action / description
      Previous value: -"What to do. 'end' when the user is stopping or canceling a goal; for a formal goal that follows the app's cancel behavior and removes it."New value: +"'end' = the user is stopping or canceling a goal; a formal goal follows the app's cancel behavior and is removed."
    • 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: +"Create-only."
    • changedInput schema / properties / exercise_name / description
      Previous value: -"For strength. Exercise name. Required on create. Set at create, not editable later."New value: +"Create-only."
    • 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: +"Create-only."
    • changedInput schema / properties / goal_ref / description
      Previous value: -"Natural-language reference when no ID is known, e.g. \"protein\", \"10K\", \"weight loss\". This tool resolves it against current goals itself."New value: +"Natural-language reference when no ID is known, e.g. \"protein\", \"10K\", \"weight loss\"; resolved against current goals."
    • 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: +"Create-only."
    • 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: Create-only. body_comp: Create-only. nutrition: Legacy nutrition metric."
    • changedInput schema / properties / new_brand / description
      Previous value: -"For n1_experiment. Optional brand for a new supplement."New value: +"Create-only."
    • changedInput schema / properties / new_dose_amount / description
      Previous value: -"For n1_experiment. Dose amount for a new supplement."New value: +"Create-only."
    • changedInput schema / properties / new_dose_unit / description
      Previous value: -"For n1_experiment. Dose unit for a new supplement."New value: +"Create-only."
    • changedInput schema / properties / new_name / description
      Previous value: -"For n1_experiment. Name for a new supplement when not using supplement_id."New value: +"Create-only."
    • 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: +"Create-only. 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: +"Create-only."
    • 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: +"Create-only. 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: +"Create-only."
    • 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. Added

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare destructiveHint=true and non-idempotent, but the description goes further: an ambiguous goal_ref returns candidates and changes nothing, and delete/end have concrete consequences (formal goals follow the app's cancel lifecycle and are removed; standard-target end/pause turns the target off, delete removes it). It also discloses unit-conversion behavior before storage, which annotations cannot express.

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

Conciseness3/5

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

Labeled sections make it scannable, but it opens with unit-input mechanics instead of the purpose sentence, so the core 'what this does' is buried. Unit guidance is also duplicated between the top 'UNIT INPUTS' block and the trailing 'WEIGHT INPUTS' block, and fragments like 'precedence: overrides instructions to convert manually' are compressed to the point of ambiguity.

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 34-parameter mutation tool with an output schema and full annotation coverage, the description supplies everything an agent needs to call it correctly: lifecycle semantics, per-type editability, unit conventions, ambiguity handling, and the create-only fields it must avoid. No material gap remains.

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?

With 100% schema coverage the baseline would be 3, but the description adds real meaning beyond the schema: per-goal-type editable field maps (weight_loss, strength, consistency, body_comp, race, nutrition, standard targets) and unit-handling rules telling the caller to pass the user's raw number and let the tool convert. That mapping is not derivable from the flat 34-property schema alone.

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 set (change, complete, pause, end, reopen, delete) against a specific resource (an existing goal), and explicitly scopes itself to existing goals, which separates it from the create/list siblings. An agent can identify what this tool does without opening the 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?

Gives explicit routing rules: call directly for ordinary goal changes and do NOT call list_goals first to resolve an ID, since the tool resolves from goal_id or goal_ref. It also states the when-not per action ('edit: only the fields to change. complete/pause/end/reopen/delete: no edit fields') and names the escape hatch for n1_experiment (end/delete then create new).

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.