Skip to main content
Glama

manage_supplement

Destructive

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

NameRequiredDescriptionDefault
idNoItem ID. See SELECTOR.
formNoPhysical form: pill, capsule, tablet, softgel, powder, liquid, gummy, other.
nameNoName, e.g. 'Magnesium Glycinate' or 'Metformin'. On update, sets a new name.
brandNoBrand name.
notesNoFree-text notes.
actionYesSee INFER.
categoryNoSee INFER; default 'supplement'.
end_dateNoYYYY-MM-DD; default today for 'end'. Null = currently active.
dose_unitNoUnit for dose_amount: pills, capsules, tablets, softgels, g, mg, ml, IU, mcg, tbsp, scoop.
start_dateNoYYYY-MM-DD; default today on add.
unit_labelNoLabel for dose_per_unit, e.g. 'mg', 'IU'.
dose_amountNoNumeric dose quantity, e.g. 2 for '2 pills'.
period_unitNoThe period for times_per_period.
time_of_dayNoWhen during the day: ['morning'], ['morning','evening'], ['night'], etc.
dose_per_unitNoAmount per individual unit, e.g. 240 for '240mg per pill'.
frequency_typeNoFrequency category; default 'daily'.
supplement_nameNoName substring, case-insensitive (e.g. "magnesium"). See SELECTOR.
times_per_periodNoTimes per period, e.g. 2 for twice per week; default 1.

Output Schema

NameRequiredDescriptionDefault
resultYesHuman-readable result text returned by the tool.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed18 schema fields changed
    • changedInput schema / properties / action / description
      Previous value: -"What to do. Required."New value: +"See INFER."
    • changedInput schema / properties / brand / description
      Previous value: -"Brand name. Optional."New value: +"Brand name."
    • changedInput schema / properties / category / description
      Previous value: -"Category: 'medication' for drugs/pharmaceuticals, 'supplement' for vitamins/minerals/herbs. Default: 'supplement'."New value: +"See INFER; default 'supplement'."
    • changedInput schema / properties / dose_amount / description
      Previous value: -"Numeric dose quantity (e.g. 2 for '2 pills'). Required for add."New value: +"Numeric dose quantity, e.g. 2 for '2 pills'."
    • changedInput schema / properties / dose_per_unit / description
      Previous value: -"Amount per individual unit (e.g. 240 for '240mg per pill'). Optional."New value: +"Amount per individual unit, e.g. 240 for '240mg per pill'."
    • changedInput schema / properties / dose_unit / description
      Previous value: -"Unit for dose_amount: pills, capsules, tablets, softgels, g, mg, ml, IU, mcg, tbsp, scoop. Required for add."New value: +"Unit for dose_amount: pills, capsules, tablets, softgels, g, mg, ml, IU, mcg, tbsp, scoop."
    • changedInput schema / properties / end_date / description
      Previous value: -"End date (YYYY-MM-DD). Set for 'end' action — default to today. Null means currently active."New value: +"YYYY-MM-DD; default today for 'end'. Null = currently active."
    • changedInput schema / properties / form / description
      Previous value: -"Physical form: pill, capsule, tablet, softgel, powder, liquid, gummy, other. Optional."New value: +"Physical form: pill, capsule, tablet, softgel, powder, liquid, gummy, other."
    • changedInput schema / properties / frequency_type / description
      Previous value: -"Frequency category. Optional — default 'daily'."New value: +"Frequency category; default 'daily'."
    • changedInput schema / properties / id / description
      Previous value: -"ID. Required for update, end, delete unless supplement_name is given."New value: +"Item ID. See SELECTOR."
    • changedInput schema / properties / name / description
      Previous value: -"Name (e.g. 'Magnesium Glycinate' or 'Metformin'). Required for add; on update, sets a new name."New value: +"Name, e.g. 'Magnesium Glycinate' or 'Metformin'. On update, sets a new name."
    • changedInput schema / properties / notes / description
      Previous value: -"Free-text notes. Optional."New value: +"Free-text notes."
    • changedInput schema / properties / period_unit / description
      Previous value: -"The period for times_per_period. Optional."New value: +"The period for times_per_period."
    • changedInput schema / properties / start_date / description
      Previous value: -"Start date (YYYY-MM-DD). Required for add — default to today."New value: +"YYYY-MM-DD; default today on add."
    • changedInput schema / properties / supplement_name / description
      Previous value: -"Alternative to id for update/end/delete: name substring, case-insensitive (e.g. \"magnesium\")."New value: +"Name substring, case-insensitive (e.g. \"magnesium\"). See SELECTOR."
    • changedInput schema / properties / time_of_day / description
      Previous value: -"When during the day: ['morning'], ['morning','evening'], ['night'], etc. Optional."New value: +"When during the day: ['morning'], ['morning','evening'], ['night'], etc."
    • changedInput schema / properties / times_per_period / description
      Previous value: -"How many times per period (e.g. 2 for twice per week). Optional — default 1."New value: +"Times per period, e.g. 2 for twice per week; default 1."
    • changedInput schema / properties / unit_label / description
      Previous value: -"Label for dose_per_unit (e.g. 'mg', 'IU'). Optional."New value: +"Label for dose_per_unit, e.g. 'mg', 'IU'."
  2. Changed3 schema fields changed
    • changedInput schema / properties / id / description
      Previous value: -"ID from list_supplements. Required for update, end, delete."New value: +"ID. Required for update, end, delete unless supplement_name is given."
    • changedInput schema / properties / name / description
      Previous value: -"Name (e.g. 'Magnesium Glycinate' or 'Metformin'). Required for add."New value: +"Name (e.g. 'Magnesium Glycinate' or 'Metformin'). Required for add; on update, sets a new name."
    • addedInput schema / properties / supplement_name
      Added value: +{
      +  "description": "Alternative to id for update/end/delete: name substring, case-insensitive (e.g. \"magnesium\").",
      +  "type": "string"
      +}
  3. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, and the description adds genuinely new nuance: delete removes the record while end only sets end_date, plus the selector behavior and the multi-match error with candidate IDs. It does not spell out permission requirements or whether a delete is recoverable, which is a minor remaining gap for a destructive tool.

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 use triggers, then a tight INFER/ASK/SELECTOR block in a scannable structure. Dense but every block carries decision-relevant information; a few lines could be trimmed but nothing is padding.

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 an 18-parameter mutation tool with an output schema, the description covers the risky parts an agent needs: which action to pick, what to infer, when to ask, how to select the target, and how ambiguity errors surface. Return values are covered by the output schema, so no further detail is required.

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 semantic value on top: the SELECTOR rule (exactly one of id/supplement_name, case-insensitive substring), defaults for category, start_date, end_date, and the required add fields. It leaves less obvious params like unit_label or dose_per_unit to the schema, which is acceptable at this coverage.

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?

Opens with a specific verb set and resource ('Add, update, end, or delete a medication or supplement') and enumerates the four action modes, so an agent can immediately distinguish it from log_supplement_taken and set_supplement_nutrients.

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 explicit trigger conditions ('the user describes their stack, adds an item, changes a dose...'), states exactly what to infer versus what to ask, and resolves the tricky end-vs-delete alternative with a rule. The one clarifying question is also scoped to a precise ambiguity.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.