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

io.github.rwestergren/cronometer-api-mcp

by rwestergren

add_exercise

Log an exercise to Cronometer by supplying activity ID, duration, and calories so workouts appear in the diary and calorie burn is tracked.

Instructions

Log an exercise to the Cronometer diary.

Use search_activities to find activity_id. The calorie burn is not calculated for you: pass it (estimate it from the activity's MET value, the minutes and the user's weight if the user doesn't know it). The exercise appears in get_food_log's diary as an "Exercise" entry; remove_food_entry with its exerciseId deletes it.

Args: activity_id: Activity ID from search_activities. minutes: Duration in minutes. calories: Calories burned, as a positive number. date: Date as YYYY-MM-DD (defaults to today). diary_group: Meal slot: "auto" (default, picks by time of day) or the name of one of the account's diary groups, matched ignoring case and whitespace. "auto" requires unique enabled Breakfast, Lunch, Dinner and Snacks groups; otherwise choose an explicit name from get_diary_groups.

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": {
      "activity_id": "<activity_id>",
      "minutes": "<minutes>",
      "calories": "<calories>"
    },
    "name": "add_exercise"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateNo
minutesYes
caloriesYes
activity_idYes
diary_groupNoauto

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.2.7

TDQS

A4.4/5.0
Behavior4/5

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

Adds substantial context beyond the annotations: calorie burn is not computed and must be estimated from MET value, minutes and user weight; the entry surfaces in get_food_log as an "Exercise" entry; remove_food_entry with its exerciseId deletes it. What it does not cover is the non-idempotent behavior (idempotentHint=false) — that repeated calls create duplicate diary entries.

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 a short paragraph of critical operational notes, then a clean Args block. The calorie-estimation sentence is long but earns its place; overall density is high with little filler.

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 5-parameter mutation tool with an output schema (so return values need no explanation), the definition covers sourcing the ID, computing the missing value, diary placement, and cleanup path. Minor omission: no statement about duplicate entries or failure modes when activity_id is invalid.

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 description coverage is 0%, so the description carries the full burden, and it does: every parameter is documented with meaning and constraints — activity_id sourced from search_activities, calories as a positive number, date as YYYY-MM-DD defaulting to today, and diary_group's "auto" behavior plus case/whitespace-insensitive matching against explicit group names.

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?

Opens with a specific verb+resource and target system: "Log an exercise to the Cronometer diary." That immediately separates it from the food-oriented siblings (add_food_entry, add_custom_food, add_recipe) without needing their schemas.

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 concrete routing guidance: use search_activities to obtain activity_id, and use get_diary_groups when "auto" cannot be resolved. The remaining gap is that it never explicitly says where an agent should log a food-based entry instead, though the exercise/food split is fairly self-evident.

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