Skip to main content
Glama

Set daily goals and targets

set_goals
DestructiveIdempotent

Set daily goals by field name, in the field's own unit: the nutrition targets (calories, protein, carbs, fat, fiber), any other number field's daily goal, and the target weight (the weight field). null puts a nutrition target back to Kove's estimate and removes any other goal; 0 means no target. Confirm with the person first.

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": {
      "idempotency_key": "<idempotency_key>",
      "goals": "<goals>"
    },
    "name": "set_goals"
  }
}

Input Schema

NameRequiredDescriptionDefault
goalsYes
idempotency_keyYesA new random string per write (8-128 of A-Z a-z 0-9 - _ . :); send the same one to retry, never a new one.

Output Schema

NameRequiredDescriptionDefault
dateYes
writtenYes
replayedNo
write_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true and idempotentHint=true, so the bar is lower, and the description still adds real substance: null reverts a nutrition target to Kove's estimate while removing any other goal, 0 means no target. That tells the agent exactly what data is destroyed or restored, plus the human-confirmation requirement.

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?

Dense but tightly organized: the general rule (per-field, own unit) leads, the specific cases follow, then the null/0 semantics, ending with the confirmation instruction. No filler sentences and nothing repeated from the schema.

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?

With annotations covering safety/idempotency and an output schema covering returns, the description carries the remaining weight well – units, allowed field types, null/0 behavior, and confirmation. The per-call max of 10 goals and the idempotency retry rule live only in the schema, which is acceptable.

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 only 50% (the nested goal value has no description), and the description compensates well: values are in the field's own unit, null vs 0 have distinct, non-obvious meanings, and "target weight" is a special allowed field name. It doesn't restate the idempotency_key rule, but the schema already documents that.

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?

States a specific verb plus resource (set daily goals), and enumerates the scope: nutrition targets (calories, protein, carbs, fat, fiber), any number field's daily goal, and target weight. An agent can tell this apart from value-logging or field-editing siblings. It stops short of naming an explicit alternative for goal editing.

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

Usage Guidelines3/5

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

"Confirm with the person first" gives a clear procedural precondition, and the null/0 semantics implicitly define the reset vs clear use cases. However, there is no explicit when-not guidance or named alternative (e.g. set_values vs set_goals) for an agent choosing between them.

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.