Skip to main content
Glama
io.github.rwestergren/cronometer-api-mcp

io.github.rwestergren/cronometer-api-mcp

by rwestergren

set_macro_split

Idempotent

Set the protein, carb, and fat energy split in percentages that total 100; this updates real targets and requires Macro Ratios mode.

Instructions

Set how the energy target is split between protein, carbs and fat.

This changes the user's real targets: confirm the numbers with the user first, and read the current split with get_macro_targets so it can be put back. Values are percent of energy and must add up to 100. Requires Macro Ratios mode; fixed-target and keto modes are rejected. Failed writes attempt restoration and report the resulting state, which may remain partially changed or unknown if recovery fails.

Args: protein: Protein share in percent (e.g. 30). carbs: Carbohydrate share in percent (e.g. 40). fat: Fat share in percent (e.g. 30).

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "protein": "<protein>",
      "carbs": "<carbs>",
      "fat": "<fat>"
    },
    "name": "set_macro_split"
  }
}

Input Schema

NameRequiredDescriptionDefault
fatYes
carbsYes
proteinYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.2.7

TDQS

A4.4/5.0
Behavior3/5

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

Annotations already declare this is a non-read-only, idempotent write with destructiveHint=false, and the description goes further by disclosing real-target impact, the required confirmation step, and that failed writes attempt restoration and may leave state partially changed or unknown. The one tension is that destructiveHint=false understates the 'may remain partially changed' failure mode, though this is a nuance rather than a direct contradiction. The disclosure of partial-write risk is genuinely valuable context.

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?

The high-risk information is front-loaded (real targets change, confirm first, back up via get_macro_targets), followed by the validation constraint, the mode gate, and the failure behavior, then a compact Args block. Every sentence adds something an agent needs; no filler.

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 three-required-parameter mutation with an output schema present, the definition covers preconditions, validation rules, mode gating, and failure semantics. Return-value detail is rightly omitted since the output schema handles it.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0% — the three properties carry only title-level names — so the description must carry the load, and it does: each parameter is defined as a percent share of energy with an example value, plus a cross-parameter invariant that the values must sum to 100. Nothing about the inputs is left ambiguous.

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 names a specific verb and resource ('Set how the energy target is split between protein, carbs and fat') and makes clear it operates on ratios rather than absolute targets. It does not explicitly contrast itself with the sibling set_macro_targets, so the agent must infer that distinction from the mode requirement.

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?

It gives a concrete prerequisite procedure: confirm numbers with the user first and call get_macro_targets to capture the current split for rollback. It also states an explicit exclusion — the tool only works in Macro Ratios mode, and fixed-target and keto modes are rejected — which tells the agent exactly when not to use it.

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