Skip to main content
Glama

Set targets

set_targets
Destructive

Set daily calorie and macro targets from a date onward (default today). Earlier days keep their old targets. Pass explicit values, or use_suggested: true to take the goal-based suggestion (suggested_targets in the profile); explicit values override suggested ones.

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_targets"
  }
}

Input Schema

NameRequiredDescriptionDefault
fat_gNo
notesNoWhy they changed, e.g. 'switched to lean bulk'
carbs_gNo
fibre_gNo
caloriesNo
protein_gNo
use_suggestedNoFill every field not passed from the goal-based suggestion. If calories is also passed, macros are split from that calorie figure
effective_fromNoFirst day the targets apply. Default: today

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true and idempotentHint=false; the description adds the crucial non-obvious behavior that changes are forward-only ('earlier days keep their old targets'), the today default, and how use_suggested interacts with explicit fields. It does not clarify what is destroyed when targets already exist for future days, which is the main remaining ambiguity behind the destructive hint.

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 tight sentences, front-loaded with the action and scope, then the retroactivity caveat, then the parameter-mode rule. Every sentence carries information not present elsewhere.

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

Completeness3/5

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

For a destructive, non-idempotent mutation with 8 optional parameters and no output schema, the description covers the primary flows but leaves gaps: whether omitting a macro without use_suggested preserves or clears the existing value, and what the tool returns on success.

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 coverage is only 38% across 8 parameters, and the description compensates for the two hardest ones (effective_from default, use_suggested override/split behavior). It says nothing about notes, fibre_g, or what happens when only some of the calorie/macro fields are supplied without use_suggested, leaving a partial-update question unresolved.

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 (set) and resource (daily calorie and macro targets) plus the temporal scope ('from a date onward'). The word 'daily' distinguishes it from the per-meal sibling set_meal_targets without needing to name it.

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?

Gives clear selection guidance between two modes: pass explicit values, or set use_suggested: true, and states the precedence rule when both are present. It stops short of routing to alternatives such as get_targets for reading existing targets or set_meal_targets for per-meal goals.

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