set_supplement_nutrients
Set the nutrient content of ONE configured dose of a medication or supplement, as printed on its label. Use when the user shares a Supplement Facts / Nutrition Facts panel, states specific nutrient amounts from a label, or corrects a previously stored value.
VALUES MUST COME FROM THE PRODUCT LABEL OR THE USER'S EXPLICIT STATEMENT. Never estimate or guess a nutrient amount. If the user hasn't given real label numbers, ask for the label instead of calling this.
Amounts are per the dose already configured on the row (dose_amount/dose_unit, e.g. "2 capsules"), not per individual unit and not a daily total. Daily totals are derived separately from frequency_type/times_per_period. A nutrient name or unit this tool doesn't recognize is skipped and reported back in the result rather than silently dropped.
SELECTOR: pass id if known, or name: resolved as an exact case-insensitive match, then a unique case-insensitive prefix match. Ambiguous or unmatched name errors listing candidate ids, without writing. Exactly one of id or name is required.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Supplement/medication ID. Alternative to name. | |
| name | No | Alternative to id: resolved as an exact match if one exists, else a unique prefix match, case-insensitive. | |
| replace | No | true (default) replaces all stored nutrients for this item; false merges these into the existing set, overwriting only the given nutrient keys. | |
| nutrients | Yes | The label's Supplement Facts per serving, for one configured dose. See the VALUES MUST COME FROM THE PRODUCT LABEL note above. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes | Human-readable result text returned by the tool. |