Create activities (batch)
batch_create_activitiesCreate up to 100 activities in a single call. Same per-activity shape and rules as create_activity (notably: distance is in meters, duration in seconds, always set load on planned workouts or they will not appear in training-load or get_training_status's projection, pace step targets are seconds-per-km including for swims spoken in per-100m, and rest days are skipped rather than created). Importing a training plan is the common case: omit its rest days from the array entirely. After importing, call get_training_status with no from/to and read series plus projection — that is the week’s shape and its peak. Do not pass a long history range for this check. SWIM STEPS: the watch reads swimDrill, swimEquipment and swimStroke, never displayName. Set swimDrill on every drill ('drill'), kick ('kick') and pull ('pull') step, which keeps its normal stepType (usually 'interval'; 'drill' is never a stepType), swimEquipment to the one piece of kit that step uses, and swimStroke on every step whose stroke is named. When the athlete names their pool ("50m pool", "25 yard pool"), set poolLength. 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.
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_create_activities"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| activities | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| activities | Yes |