create_workout
Build a structured workout with interval blocks, goals, and pace or heart-rate alerts, then queue it to appear on the athlete's Apple Watch after the iPhone app syncs.
Instructions
Create a structured workout and queue it for the user's Apple Watch.
Full WorkoutKit support: repeatable interval blocks, warmup/cooldown steps, goals (distance / time / energy / open), and an optional per-step ALERT that coaches effort on the watch — pace/speed range, heart-rate range (BPM), heart-rate ZONE (1-5), cadence, or running power. E.g. a Zone 2 base run is a single time- or distance-goal step with alert {"type": "heartRateZone", "zone": 2}. WorkoutKit allows one alert per step.
The exact structure of blocks/steps/goals/alerts is defined in this tool's input schema. The workout appears on the watch after the iPhone app syncs.
Args:
activity_type: Sport for the WorkoutKit session.
display_name: Name shown on Apple Watch (e.g. "6x400m Intervals", "Tempo Run").
location: Where the workout happens (affects GPS).
scheduled_date: When the workout should appear, ISO 8601 (e.g. "2026-03-18T07:00:00Z").
blocks: Interval blocks, each repeated iterations times.
warmup: Optional warmup step (goal + optional alert).
cooldown: Optional cooldown step (goal + optional alert).
description: Optional text description of the workout.
plan_id: Optional UUID of the training plan this workout belongs to.
Returns:
The created queue item object, plus a validation list of
schedule-soundness warnings (ramp rate vs the athlete's actual
4-week baseline, back-to-back hard days, guardrail breaches, …)
covering the athlete's whole upcoming schedule. ALWAYS review it:
resolve critical warnings (adjust and re-queue, or get the
athlete's explicit sign-off); mention warn items to the athlete.
Warnings never block creation.
Example — 6x400m intervals with 800m warmup and cooldown: activity_type: "running" display_name: "6x400m Intervals" location: "outdoor" scheduled_date: "2026-03-18T07:00:00Z" warmup: {"goal": {"type": "distance", "value": 800, "unit": "meters"}} blocks: [ { "iterations": 6, "steps": [ { "purpose": "work", "goal": {"type": "distance", "value": 400, "unit": "meters"}, "alert": {"type": "speed", "min": 4.5, "max": 5.0, "unit": "metersPerSecond"} }, { "purpose": "recovery", "goal": {"type": "distance", "value": 400, "unit": "meters"} } ] } ] cooldown: {"goal": {"type": "distance", "value": 800, "unit": "meters"}}
Example — 20-minute tempo run: activity_type: "running" display_name: "20min Tempo" location: "outdoor" scheduled_date: "2026-03-19T07:00:00Z" warmup: {"goal": {"type": "distance", "value": 1600, "unit": "meters"}} blocks: [ { "iterations": 1, "steps": [ { "purpose": "work", "goal": {"type": "time", "value": 20, "unit": "minutes"}, "alert": {"type": "heartRateZone", "zone": 4} } ] } ] cooldown: {"goal": {"type": "distance", "value": 1600, "unit": "meters"}}
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>",
"display_name": "<display_name>",
"location": "<location>",
"scheduled_date": "<scheduled_date>",
"blocks": "<blocks>"
},
"name": "create_workout"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| blocks | Yes | ||
| warmup | No | ||
| plan_id | No | ||
| cooldown | No | ||
| location | Yes | ||
| description | No | ||
| display_name | Yes | ||
| activity_type | Yes | ||
| scheduled_date | Yes |