Skip to main content
Glama

set_nutrient_target

Idempotent

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

NameRequiredDescriptionDefault
unitNoUnit the user stated, e.g. mg, mcg, IU, g.
notesNoWhy the user set it, in their words. Kept when omitted.
removeNotrue deletes the user's target for this nutrient. Default false.
nutrientYesNutrient name or alias, e.g. "vitamin_d", "magnesium", "b12" -- or its dictionary id (1-44, e.g. "24" for vitamin_d).
upper_limitNoThe user's own daily ceiling in unit, at least target_value.
target_valueNoDaily target amount in unit.

Output Schema

NameRequiredDescriptionDefault
resultYesHuman-readable result text returned by the tool.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A5/5.0
Behavior5/5

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

Beyond the annotations (readOnlyHint=false, idempotentHint=true, destructiveHint=false), it discloses the side effect that a target 'replaces the reference intake ... in every nutrient view,' that remove=true restores the reference intake, and that the value is a personal preference never to be presented as a clinical prescription.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the core action, then labeled blocks (use / never / meaning / REQUIRED / nutrient) that keep each rule scannable. No sentence is filler; even the calories-vs-goals aside functions as disambiguation.

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?

Covers everything an agent needs for a 6-parameter mutation tool with an output schema: conditional requiredness, unit-asking policy, default upper-limit behavior, removal semantics, and accepted identifier formats. The return shape is left to the output schema, which is appropriate.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline would be 3, but the description adds meaning the schema lacks: unit must be asked for and never guessed between mcg/IU/mg/g, an omitted upper_limit inherits the reference upper limit, notes are retained when omitted, and nutrient accepts a dictionary id 1-44 sourced from prior get_nutrient_summary replies.

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?

States a specific verb pair and resource: 'Set or remove the user's OWN daily target for one vitamin, mineral or other tracked nutrient.' It also draws the boundary against the sibling create_goal by noting 'Calories and macros are goals, not nutrient targets,' and against set_supplement_nutrients via 'OWN ... target.'

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?

Explicit use/never sections: 'ONLY when the user explicitly asks to set, change or remove their own target' plus three named exclusions ('on your own initiative, to apply a recommendation, or to act on a lab result'). This is the strongest form of when/when-not guidance.

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.