Skip to main content
Glama

Marrow Health: Apple Health for your AI

Change daily targets

set_targets
DestructiveIdempotent

Change the user's daily targets in Marrow: calories, macros, water, steps, sleep, exercise minutes. Only the ones you pass change. Calorie and macro targets switch to custom (the app stops recomputing them). Read targets first, and say what you changed.

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
stepsNo
carbs_gNo
water_mlNo
protein_gNo
sleep_hoursNo
idempotency_keyNoOptional. The same key never logs twice. Use a new one to log an identical entry again on purpose.
exercise_minutesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and idempotentHint=true, yet the description adds genuinely non-obvious behavior: the update is partial (only passed fields change) and calorie/macro targets flip into custom mode so the app stops recomputing them. That side effect is the key risk an agent needs. It still doesn't say whether custom mode is reversible or what the call returns.

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?

Three tight sentences, all front-loaded with the resource and affected fields before the operational caveats. Nothing is filler. The 'Read targets first' precondition sits at the end rather than up front, which is a minor ordering weakness.

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 9-parameter destructive mutation with no output schema, the description covers the important ground: field list, partial-update semantics, an app-state side effect, and a read-before-write discipline. Gaps are secondary – reversibility of custom mode and response shape – and the absence of an output schema limits how much detail is needed there.

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 11% (just idempotency_key), so the description has to compensate by enumerating fields, and it does: macro names map to fat_g/carbs_g/protein_g, and water_ml/steps/sleep_hours/exercise_minutes are all named. It also clarifies optionality semantics ('only the ones you pass change'), which the bare schema does not. Unit conventions remain implicit in the parameter names.

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 and resource ('Change the user's daily targets') and enumerates exactly which targets are covered: calories, macros, water, steps, sleep, exercise minutes. The 'Read targets first' line implicitly distinguishes it from the read-side `targets` sibling, though it never names that tool outright as the read counterpart.

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 a clear workflow precondition ('Read targets first') and a post-action expectation ('say what you changed'), plus the partial-update rule ('Only the ones you pass change'). It stops short of explicit when-not-to-use guidance or naming the alternative tool for reading, but the operating context is unambiguous.

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