Skip to main content
Glama

Change daily targets

set_targets
Destructive

Change the person's daily calorie and macro targets when they ask. from is the local date the change starts, usually today; earlier days keep theirs. Add through (inclusive) only to limit the change to certain days, such as through equal to from for one day. values needs all four of caloriesKcal, proteinG, carbsG and fatG; ask for any not given rather than inventing them, or pass values null to stop targets from that day. Nothing else can be saved, such as diet, allergies or an iron target: say so and use it only in this conversation. Confirm the change only after success.

Input Schema

NameRequiredDescriptionDefault
fromYesThe local date the change starts, usually today
valuesYesAll four daily targets, or null to stop targets from that day
throughNoThe last local date the change applies to; leave out to keep it from then on

Output Schema

NameRequiredDescriptionDefault
unitsYes
periodsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations declare destructiveHint=true and readOnlyHint=false, so the mutation profile is covered. The description adds real behavioral context beyond that: earlier days retain their targets, 'through' is inclusive, null stops targets from that day, and confirmation should only follow success. It does not mention permissions or reversibility, but the delivery semantics are unusually well disclosed.

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

Conciseness4/5

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

Front-loaded with the core action, then parameter guidance, then the negative-scope caveat and the confirmation rule. Dense but every sentence carries operational instruction; only the 'say so and use it only in this conversation' clause is slightly compressed.

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?

An output schema exists, so return values need not be described. For a three-parameter mutation tool, everything an agent needs to call it correctly — date scoping, required value set, stop semantics, unsupported fields, confirmation timing — is present.

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 100%, so the baseline is 3. The description nonetheless adds interpretive meaning the schema lacks: 'from' defaults conceptually to today with earlier days untouched, 'through' is inclusive and optional, and null values have stop semantics. This is above the schema-redundant baseline.

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 and resource ('Change the person's daily calorie and macro targets') and scopes it to the user's request context. It is clearly distinguishable from the read-side sibling get_targets.

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 when-to-use guidance: 'when they ask', how to use 'through' vs leaving it out, what to do when values are incomplete ('ask for any not given rather than inventing them'), and the null-to-stop case. It also names what the tool cannot do (diet, allergies, iron target) and routes that to conversation instead.

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