Skip to main content
Glama

Set meal targets

set_meal_targets
Destructive

Set calorie and macro targets per meal from a date onward (default today), for the meals in the user's plan. Pass explicit values per meal, or use_suggested: true to split the current daily target by how much each meal usually carries; explicit values override suggested ones. Explicit values patch the targets in effect: meals not mentioned keep theirs, and null clears a value. Or scale_to_daily: true to keep the current meal proportions and re-fit them to the daily target in effect. Meal targets are independent of the daily target and need not add up to it.

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

Input Schema

NameRequiredDescriptionDefault
mealsNo
use_suggestedNoSplit the daily target by how much each meal usually carries
effective_fromNoCalendar date YYYY-MM-DD in the user's timezone
scale_to_dailyNoKeep the current meal proportions and re-fit them to the daily target in effect

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already flag a destructive, non-idempotent write, and the description goes beyond them by disclosing patch semantics (meals not mentioned keep theirs), that null clears a value, and that the effective date defaults to today. It does not cover return values or whether back-dated changes affect historical data, but the destructive surface is 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?

Four sentences, each carrying a distinct rule, with the primary action and default date front-loaded. It is dense but not padded; the mode descriptions could be slightly more scannable but nothing is wasted.

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?

For a 4-parameter, no-required-parameter mutation tool with no output schema, the description covers the modes, defaults, patch semantics, and the independence of meal vs. daily targets. An agent has enough to call it correctly in every documented mode.

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 75%, and the description adds meaning the schema cannot express: the default for effective_from, the interaction/precedence between explicit meals and use_suggested, the null-clears behavior, and the invariant that meal targets need not sum to the daily target. That is meaningful semantic enrichment rather than restatement.

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?

The description names a specific verb ('Set') and resource ('calorie and macro targets per meal'), plus the scope ('from a date onward, default today'). The closing line that meal targets are independent of the daily target implicitly separates this from the daily-target sibling, so an agent can tell the two apart without opening a schema.

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?

It clearly explains the three operating modes (explicit values, use_suggested, scale_to_daily) and the precedence rule that explicit values override suggested ones. It does not name the sibling to use when the agent actually wants to change the daily target, leaving that routing to inference.

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