manage_supplement
Add, update, end, or delete a medication or supplement. use: the user describes their stack, adds an item, changes a dose or schedule, says they stopped taking something, or wants an entry removed.
INFER, do not ask:
action: add = a new item; update = change a field; end = they stopped/finished a course; delete = only to remove the record entirely
category: medication = prescription/OTC drugs and pharmaceuticals; supplement = vitamins/minerals/herbs/other dietary supplements; default supplement when unclear
start_date: today for new entries. end_date (for end): today unless the user says otherwise
ASK only if name is missing for a new entry, or end (set end_date) vs delete (remove record) intent is ambiguous. add needs: name, dose_amount, dose_unit.
SELECTOR for update/end/delete: exactly one; id if known, else supplement_name (case-insensitive substring, e.g. "magnesium"). supplement_name matching more than one item -> error with candidate IDs to retry with.
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": "manage_supplement"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Item ID. See SELECTOR. | |
| form | No | Physical form: pill, capsule, tablet, softgel, powder, liquid, gummy, other. | |
| name | No | Name, e.g. 'Magnesium Glycinate' or 'Metformin'. On update, sets a new name. | |
| brand | No | Brand name. | |
| notes | No | Free-text notes. | |
| action | Yes | See INFER. | |
| category | No | See INFER; default 'supplement'. | |
| end_date | No | YYYY-MM-DD; default today for 'end'. Null = currently active. | |
| dose_unit | No | Unit for dose_amount: pills, capsules, tablets, softgels, g, mg, ml, IU, mcg, tbsp, scoop. | |
| start_date | No | YYYY-MM-DD; default today on add. | |
| unit_label | No | Label for dose_per_unit, e.g. 'mg', 'IU'. | |
| dose_amount | No | Numeric dose quantity, e.g. 2 for '2 pills'. | |
| period_unit | No | The period for times_per_period. | |
| time_of_day | No | When during the day: ['morning'], ['morning','evening'], ['night'], etc. | |
| dose_per_unit | No | Amount per individual unit, e.g. 240 for '240mg per pill'. | |
| frequency_type | No | Frequency category; default 'daily'. | |
| supplement_name | No | Name substring, case-insensitive (e.g. "magnesium"). See SELECTOR. | |
| times_per_period | No | Times per period, e.g. 2 for twice per week; default 1. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes | Human-readable result text returned by the tool. |