Skip to main content
Glama

Set nutrition goals

set_nutrition_goals
DestructiveIdempotent

Update any of the user's daily targets. Only the fields given change. mode 'dynamic' adds each day's watch active kcal to the calorie target; active_share (10 to 100, default 100) adds only that percent of it, e.g. 50 for half. Confirm new numbers with the user before changing them.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "set_nutrition_goals"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNo
fat_gNo
carbs_gNo
fiber_gNo
caloriesNo
water_mlNo
protein_gNo
active_shareNoDynamic mode: percent of the watch's active kcal added to the target (100 = all)
target_weight_kgNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

With annotations already flagging destructiveHint=true and idempotentHint=true, the description adds real behavioral context: it is a patch operation where untouched targets are preserved, and dynamic mode compounds the calorie target with watch active kcal. It does not explain how to clear an existing target (e.g. setting target_weight_kg to null), which matters for a destructive write.

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?

Three dense sentences with zero filler; the mutation semantics come first, the mode rules second, and the safety instruction last. The "e.g. 50 for half" example earns its place by making the percent scale concrete.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a nine-parameter destructive mutation with no output schema, the definition covers the risky parts: partial updates, dynamic-mode math, and user confirmation. The main remaining gap is how values are removed or reset, which an agent handling nullable target_weight_kg would need to know.

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

Parameters3/5

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

Schema description coverage is only 11%, so the description carries most of the burden and it does explain the two subtlest parameters, mode 'dynamic' and active_share (range, default, worked example). However, target_weight_kg's nullable type and the 'fixed' mode are never explained, and seven of nine parameters rely purely on self-describing names and schema bounds.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

"Update any of the user's daily targets" gives a specific verb plus resource and is clearly distinct from the read-only get_nutrition_goals sibling. It stops short of naming alternatives, but the mutation framing is unambiguous.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Partial-update semantics are spelled out ("Only the fields given change"), and the confirmation requirement ("Confirm new numbers with the user before changing them") tells the agent how to behave before mutating. No explicit when-not or sibling routing guidance is provided.

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.

Resources