Skip to main content
Glama
Wellness Project MCP

Wellness Project MCP

set_nutrient_target

Idempotent

Set or remove your own daily target for a vitamin, mineral, or tracked nutrient, so nutrient views use your preference instead of the reference intake.

Instructions

Set or remove the user's OWN daily target for one vitamin, mineral or other tracked nutrient. Use ONLY when the user explicitly asks to set, change or remove their own target ("set my vitamin D target to 50 mcg"). Never call it on your own initiative, to apply a recommendation, or to act on a lab result. A user target is the user's personal preference, never a clinical prescription; do not present it as one. It replaces the reference intake for that nutrient in every nutrient view. Calories and macros are goals, not nutrient targets.

REQUIRED: target_value and unit unless remove is true. Ask for the unit if the user gave none; never guess mcg vs IU or mg vs g. An omitted upper_limit means the reference upper limit applies. remove=true deletes the user's target so the reference intake applies again.

nutrient accepts a name/alias, or the id (1-undefined) from get_nutrient_summary's nutrient id dictionary -- pass whichever a prior get_nutrient_summary/get_nutrient_history/get_nutrient_contributors compact reply already gave you.

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": {
      "nutrient": "<nutrient>"
    },
    "name": "set_nutrient_target"
  }
}

Input Schema

NameRequiredDescriptionDefault
unitNoUnit the user stated, e.g. mg, mcg, IU, g.
notesNoWhy the user set it, in their words. Kept when omitted.
removeNotrue deletes the user's target for this nutrient. Default false.
nutrientYesNutrient name or alias, e.g. "vitamin_d", "magnesium", "b12" -- or its dictionary id (1-undefined, e.g. "24" for vitamin_d).
upper_limitNoThe user's own daily ceiling in unit, at least target_value.
target_valueNoDaily target amount in unit.

Output Schema

NameRequiredDescriptionDefault
resultYesHuman-readable result text returned by the tool.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.3.0

TDQS

A4.8/5.0
Behavior5/5

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

Beyond the annotations (idempotent, non-destructive write), it discloses effects the annotations cannot: the target replaces the reference intake in every nutrient view, an omitted upper_limit falls back to the reference upper limit, remove=true restores the reference intake, and omitted notes are preserved. It also adds a framing constraint (personal preference, never a clinical prescription) that governs how the result should be presented.

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?

Front-loaded with purpose and the use-only constraint, then constraints, then parameter notes; every sentence carries information. Minor deductions for repetition of the nutrient id range in both prose and schema and the malformed artifact "(1-undefined)", which reads as an unfilled template placeholder and slightly muddies the id guidance.

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 six-parameter mutation tool with an output schema, the description covers trigger, prohibitions, fallback behavior, reference-intake interaction, and the unit-ambiguity prerequisite. Nothing an agent needs in order to call it correctly or explain the outcome is missing.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, but the description adds real meaning: it states the conditional requirement (target_value and unit required unless remove is true), the default semantics of an omitted upper_limit, and that remove=true deletes so the reference intake reapplies. It also ties the nutrient parameter to ids returned by get_nutrient_summary/get_nutrient_history/get_nutrient_contributors, which is not visible in the schema.

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?

The first sentence gives a specific verb+resource+scope: set or remove the user's OWN daily target for a single vitamin/mineral/nutrient. It explicitly excludes adjacent concepts ("Calories and macros are goals, not nutrient targets"), which separates it from create_goal and set_supplement_nutrients without needing 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?

Gives an explicit when-to-use trigger ("ONLY when the user explicitly asks to set, change or remove their own target") with a concrete example utterance, plus three named when-NOT cases: agent initiative, applying a recommendation, acting on a lab result. It also states the prerequisite that the user must supply a unit and that the agent must ask rather than guess.

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