set_nutrient_target
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: on your own initiative, to apply a recommendation, or to act on a lab result. meaning: 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. no unit given -> ask; never guess mcg vs IU or mg vs g. upper_limit omitted -> the reference upper limit applies. remove=true deletes the user's target so the reference intake applies again.
nutrient: a name/alias, or the id (1-44) 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
| Name | Required | Description | Default |
|---|---|---|---|
| unit | No | Unit the user stated, e.g. mg, mcg, IU, g. | |
| notes | No | Why the user set it, in their words. Kept when omitted. | |
| remove | No | true deletes the user's target for this nutrient. Default false. | |
| nutrient | Yes | Nutrient name or alias, e.g. "vitamin_d", "magnesium", "b12" -- or its dictionary id (1-44, e.g. "24" for vitamin_d). | |
| upper_limit | No | The user's own daily ceiling in unit, at least target_value. | |
| target_value | No | Daily target amount in unit. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes | Human-readable result text returned by the tool. |