set_supplement_nutrients
Set the nutrient content of ONE configured dose of a medication or supplement, as printed on its label. use: 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. No real label numbers yet -> 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 the tool does not recognize is skipped and reported back in the result, never silently dropped.
SELECTOR: exactly one; id if known, else name (exact case-insensitive match, then a unique case-insensitive prefix match). Ambiguous or unmatched name -> error listing candidate ids, nothing written.
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": {
"nutrients": "<nutrients>"
},
"name": "set_supplement_nutrients"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Supplement/medication ID. | |
| name | No | Item name: 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, 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. |