Update activities (batch)
batch_update_activitiesUpdate up to 100 activities in a single call. Each entry must include its id. STRENGTH: write lifting, circuits and Hyrox as exercises, never as steps: items {type 'exercise', exercise, sets: one entry per set with reps and weightKg in kg, so 3x8 is three entries} and {type 'cardio', sport ('run', 'bike', 'skierg' or 'row'), distanceM or durationSec} for the runs and ergs between stations. Set sportType 'strength'. YOGA, pilates and mobility routines with named moves are exercises too, with sportType 'yoga': one exercise item per move, its sets time only (durationSec: cat-cow 2 min is one set of 120, 2x30s is two sets of 30, 1 min each side is two sets of 60), a move done on each side one set per side with 'each side' in notes, no reps or weight. Only exercises or moves the athlete named, never invented ones: "Strength 45 min" or "30 min yoga" is the duration with no exercises. Keep duration when there are exercises. An activity has exercises or steps, never both. On a planned activity exercises is the plan; on a completed one, what was done. When the athlete tells you what they did in a planned session ("I did 3x8 at 62.5", "log today's session"), call complete_activity with its plannedActivityId instead: updating the planned activity overwrites the plan.
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": {
"activities": "<activities>"
},
"name": "batch_update_activities"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| activities | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| updated | Yes |