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
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | ||
| minutes | Yes | ||
| calories | Yes | ||
| activity_id | Yes | ||
| diary_group | No | auto |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |