Skip to main content
Glama

set_targets

Define daily nutrition targets from a chosen date, keep unspecified values unchanged, and return the saved targets plus today's totals.

Instructions

Set daily targets starting on a local date (default today). Omitted fields keep their current values; earlier days keep their old targets. Returns the stored targets row and today's totals.

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
kcalNo
fat_gNo
carbs_gNo
fiber_gNoOmit if unknown
iron_mgNomg; omit if unknown
protein_gNo
sodium_mgNomg; omit if unknown
calcium_mgNomg; omit if unknown
water_fl_ozNo
magnesium_mgNomg; omit if unknown
potassium_mgNomg; omit if unknown
vitamin_d_mcgNomcg
effective_fromNoLocal date YYYY-MM-DD. Omit for today.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations at all, the description carries the full burden and does meaningful work: it discloses that this is a partial-update mutation ('Omitted fields keep their current values'), that the change is forward-scoped rather than retroactive ('earlier days keep their old targets'), and what is returned. It omits things like idempotency, overwrite behavior for an already-existing target on the same date, and any auth requirements.

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 short sentences, each earning its place: scope first, mutation semantics second, return value last. No filler and the most decision-relevant constraint is front-loaded.

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 13-parameter mutation tool with no annotations, the description covers the essentials an agent needs: date scoping, partial-update semantics, and the effect on past dates. An output schema exists, so the return-value sentence is a bonus rather than a necessity. Minor gaps remain around same-date overwrite and the stricter exclusiveMinimum on kcal, but nothing critical is missing.

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 62%, so the schema already documents several micronutrient units and the 'omit if unknown' convention. The description adds the key semantic the schema cannot convey: null/omitted fields are not cleared but retain current values, and effective_from defaults to today (local date). That resolves the biggest ambiguity in a 13-parameter, all-optional schema.

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?

The description opens with a specific verb and resource ('Set daily targets') plus a scoping rule ('starting on a local date'), which is enough to distinguish it from siblings like log_meal, log_water, or delete_entry, which all operate on entries rather than target rows. It stops short of naming any sibling explicitly, so it is clear but not maximally differentiating.

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?

Usage is implied rather than stated: an agent can infer this is the tool for establishing or changing targets, and the 'default today' plus 'earlier days keep their old targets' lines tell it how the date scoping behaves. There is no explicit when-to-use/when-not-to-use guidance or statement of prerequisites (e.g. whether targets must already exist).

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