Log activity
log_activityManually log a run, ride, walk, hike, swim, row or other cardio session (watch activities sync on their own; check get_activities first to avoid duplicates). Pace is computed from distance and duration. A planned run/cardio that day is marked done. Its calories count in burned (minus the resting burn and what the watch recorded meanwhile): give start_time and duration. Calories: give them when the user has a number (a watch, a machine, the class app). Without one, leave them out: for users with no watch or phone health data, Heza estimates them from the activity, duration, intensity and their weight (marked as an estimate). Also for Pilates, yoga, walks, sports, classes (Les Mills, boxing), fitness gaming and VR (Beat Saber, Synth Riders) the watch missed; not for lifting. muscles / muscles_secondary: the muscles it clearly worked (e.g. VR boxing: shoulders, triceps; core secondary), so Heza's muscle recovery counts the session. Leave out for runs (they count for the legs already).
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_type": "<activity_type>"
},
"name": "log_activity"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rpe | No | Alternative to intensity: RPE 1-10 (1-3 easy, 4-6 moderate, 7-10 hard) | |
| date | No | YYYY-MM-DD, defaults to today | |
| name | No | e.g. 'Easy run', 'Tempo 3x10 min' | |
| notes | No | ||
| avg_hr | No | ||
| max_hr | No | ||
| muscles | No | Main muscles worked, Heza names (shoulders, triceps, biceps, forearms, chest, lats, abdominals, quadriceps...) or arms / core / legs / back | |
| calories | No | ||
| duration | No | Alternative to duration_min: 'mm:ss' or 'h:mm:ss' | |
| intensity | No | easy, moderate or hard (how it felt). Default moderate | |
| start_time | No | HH:MM local or ISO datetime | |
| distance_km | No | ||
| duration_min | No | ||
| activity_type | Yes | running, trail_running, treadmill_running, cycling, indoor_cycling, walking, hiking, swimming, rowing, elliptical, other | |
| elevation_gain_m | No | ||
| muscles_secondary | No | Muscles worked less (count half) |