Skip to main content
Glama

Create a workout for Apple Watch

create_workout_plan
Idempotent

Create one structured workout requested by the user, scheduled within the next 7 days. Stores a pending plan; does NOT immediately deliver to or start Apple Watch. Current telo builds deliver automatically by default once the user has allowed Apple Watch access in telo, a one-time Apple prompt shown when telo opens with a workout waiting; tell the user to open telo on iPhone once if they never did this. Older builds need a first manual send (Today > Send to Watch) and an opt-in for automatic delivery. The user may turn automatic delivery off and review each plan. Background delivery is opportunistic, not immediate: opening telo delivers right away. Use seconds/meters and an explicit local UTC offset. definition.type picks the workout: custom (default: warmup, repeatable work/recovery blocks, cooldown), pacer (cover a distance in a set time; the Watch shows ahead/behind), single_goal (one goal for the whole session; the only way to set an active-calorie goal) or multisport (triathlon/duathlon legs). Each custom step may carry ONE alert (Apple Watch limit): heart_rate_range, heart_rate_zone (the Watch's zones 1-5), pace_range or pace_threshold (seconds per km or mi; e.g. 5:00-5:30/km = fastest_seconds 300, slowest_seconds 330), speed_range/speed_threshold (kph or mph), cadence_range/cadence_threshold, power_range/power_threshold (watts) or power_zone; metric average uses the step average instead of the current value. Support, from WorkoutKit: pace/speed for running and cycling; cadence and power for cycling and outdoor running only; power_zone for cycling only; walking, swimming, strength and the rest take heart-rate alerts only; distance goals for running, cycling, walking, hiking, swimming, wheelchair and outdoor rowing. Unsupported combinations are rejected here with the reason. Alerts, plan types other than custom and activities beyond running/cycling/walking/strength/functional_strength/hiit/swimming need telo 1.12+ on iPhone; next_step says when the user must update. Step names can describe reps/weights; these are instructions, not native repetition goals. Pool swimming uses activity=swimming and location=indoor only. Optional pool_length_m is displayed for review; the user sets pool length on Watch when starting because WorkoutKit has no pool-length setter. For a yard pool send distance_unit=yd (goals still in meters): the Watch then shows yards and matches its yard pool; meter goals in a yard pool make the Watch reconfigure the workout. pool_distance_with_time goals require meters and seconds, and advance only when BOTH distance and time are fulfilled (send-off intervals; overrunning distance delays the next step). Distance-only goals are also supported. Pool custom workouts require watchOS 11 or later. Device supportsActivity/supportsGoal validation can reject unsupported activities, goals or alerts before scheduling. Retry with the SAME idempotency_key and payload. Read workout_plans to check delivery and exact recorded results. Never claim the Watch received a pending 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": {
      "idempotency_key": "<idempotency_key>",
      "scheduled_at": "<scheduled_at>",
      "definition": "<definition>"
    },
    "name": "create_workout_plan"
  }
}

Input Schema

NameRequiredDescriptionDefault
definitionYes
scheduled_atYesFuture date/time within 7 days, including local UTC offset, e.g. 2026-10-27T07:00:00-03:00.
idempotency_keyYesReuse exactly this key and payload when retrying this creation. Use a new key for a different workout.

Output Schema

NameRequiredDescriptionDefault
planYes
next_stepYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed10 schema fields changed
    • removedInput schema / properties / definition / additionalProperties
      Removed value: -false
    • addedInput schema / properties / definition / anyOf
      Added value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "activity": {
      +        "enum": [
      +          "running",
      +          "cycling",
      +          "walking",
      +          "strength",
      +          "functional_strength",
      +          "hiit",
      +          "swimming",
      +          "hiking",
      +          "rowing",
      +          "elliptical",
      +          "stair_climbing",
      +          "cross_training",
      +          "core_training",
      +          "mixed_cardio",
      +          "dance",
      +          "yoga",
      +          "pilates",
      +          "jump_rope",
      +          "kickboxing",
      +          "wheelchair_run",
      +          "wheelchair_walk",
      +          "other"
      +        ],
      +        "type": "string"
      +      },
      +      "blocks": {
      +        "items": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "iterations": {
      +              "maximum": 30,
      +              "minimum": 1,
      +              "type": "integer"
      +            },
      +            "steps": {
      +              "items": {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "purpose": {
      +                    "enum": [
      +                      "work",
      +                      "recovery"
      +                    ],
      +                    "type": "string"
      +                  },
      +                  "step": {
      +                    "additionalProperties": false,
      +                    "properties": {
      +                      "alert": {
      +                        "description": "At most one alert per step (an Apple Watch limit). Prefer this over heart_rate_bpm.",
      +                        "oneOf": [
      +                          {
      +                            "additionalProperties": false,
      +                            "properties": {
      +                              "kind": {
      +                                "const": "heart_rate_range",
      +                                "type": "string"
      +                              },
      +                              "max_bpm": {
      +                                "maximum": 240,
      +                                "minimum": 30,
      +                                "type": "integer"
      +                              },
      +                              "min_bpm": {
      +                                "maximum": 240,
      +                                "minimum": 30,
      +                                "type": "integer"
      +                              }
      +                            },
      +                            "required": [
      +                              "kind",
      +                              "min_bpm",
      +                              "max_bpm"
      +                            ],
      +                            "type": "object"
      +                          },
      +                          {
      +                            "additionalProperties": false,
      +                            "properties": {
      +                              "kind": {
      +                                "const": "heart_rate_zone",
      +                                "type": "string"
      +                              },
      +                              "zone": {
      +                                "description": "The heart-rate zone configured on the user's Apple Watch (1-5)",
      +                                "maximum": 5,
      +                                "minimum": 1,
      +                                "type": "integer"
      +                              }
      +                            },
      +                            "required": [
      +                              "kind",
      +                              "zone"
      +                            ],
      +                            "type": "object"
      +                          },
      +                          {
      +                            "additionalProperties": false,
      +                            "description": "Pace window in seconds per km or mile, e.g. 5:00-5:30/km = fastest_seconds 300, slowest_seconds 330, per km",
      +                            "properties": {
      +                              "fastest_seconds": {
      +                                "maximum": 1800,
      +                                "minimum": 120,
      +                                "type": "integer"
      +                              },
      +                              "kind": {
      +                                "const": "pace_range",
      +                                "type": "string"
      +                              },
      +                              "metric": {
      +                                "description": "current (default) = instantaneous value; average = average over the step",
      +                                "enum": [
      +                                  "current",
      +                                  "average"
      +                                ],
      +                                "type": "string"
      +                              },
      +                              "per": {
      +                                "enum": [
      +                                  "km",
      +                                  "mi"
      +                                ],
      +                                "type": "string"
      +                              },
      +                              "slowest_seconds": {
      +                                "maximum": 1800,
      +                                "minimum": 120,
      +                                "type": "integer"
      +                              }
      +                            },
      +                            "required": [
      +                              "kind",
      +                              "fastest_seconds",
      +                              "slowest_seconds",
      +                              "per"
      +                            ],
      +                            "type": "object"
      +                          },
      +                          {
      +                            "additionalProperties": false,
      +                            "description": "A single target pace in seconds per km or mile instead of a window",
      +                            "properties": {
      +                              "kind": {
      +                                "const": "pace_threshold",
      +                                "type": "string"
      +                              },
      +                              "metric": {
      +                                "description": "current (default) = instantaneous value; average = average over the step",
      +                                "enum": [
      +                                  "current",
      +                                  "average"
      +                                ],
      +                                "type": "string"
      +                              },
      +                              "per": {
      +                                "enum": [
      +                                  "km",
      +                                  "mi"
      +                                ],
      +                                "type": "string"
      +                              },
      +                              "seconds": {
      +                                "maximum": 1800,
      +                                "minimum": 120,
      +                                "type": "integer"
      +                              }
      +                            },
      +                            "required": [
      +                              "kind",
      +                              "seconds",
      +                              "per"
      +                            ],
      +                            "type": "object"
      +                          },
      +                          {
      +                            "additionalProperties": false,
      +                            "properties": {
      +                              "kind": {
      +                                "const": "speed_range",
      +                                "type": "string"
      +                              },
      +                              "max": {
      +                                "maximum": 100,
      +                                "minimum": 1,
      +                                "type": "number"
      +                              },
      +                              "metric": {
      +                                "description": "current (default) = instantaneous value; average = average over the step",
      +                                "enum": [
      +                                  "current",
      +                                  "average"
      +                                ],
      +                                "type": "string"
      +                              },
      +                              "min": {
      +                                "maximum": 100,
      +                                "minimum": 1,
      +                                "type": "number"
      +                              },
      +                              "unit": {
      +                                "enum": [
      +                                  "kph",
      +                                  "mph"
      +                                ],
      +                                "type": "string"
      +                              }
      +                            },
      +                            "required": [
      +                              "kind",
      +                              "min",
      +                              "max",
      +                              "unit"
      +                            ],
      +                            "type": "object"
      +                          },
      +                          {
      +                            "additionalProperties": false,
      +                            "properties": {
      +                              "kind": {
      +                                "const": "speed_threshold",
      +                                "type": "string"
      +                              },
      +                              "metric": {
      +                                "description": "current (default) = instantaneous value; average = average over the step",
      +                                "enum": [
      +                                  "current",
      +                                  "average"
      +                                ],
      +                                "type": "string"
      +                              },
      +                              "unit": {
      +                                "enum": [
      +                                  "kph",
      +                                  "mph"
      +                                ],
      +                                "type": "string"
      +                              },
      +                              "value": {
      +                                "maximum": 100,
      +                                "minimum": 1,
      +                                "type": "number"
      +                              }
      +                            },
      +                            "required": [
      +                              "kind",
      +                              "value",
      +                              "unit"
      +                            ],
      +                            "type": "object"
      +                          },
      +                          {
      +                            "additionalProperties": false,
      +                            "description": "Steps per minute when running, revolutions per minute when cycling",
      +                            "properties": {
      +                              "kind": {
      +                                "const": "cadence_range",
      +                                "type": "string"
      +                              },
      +                              "max": {
      +                                "maximum": 250,
      +                                "minimum": 20,
      +                                "type": "integer"
      +                              },
      +                              "min": {
      +                                "maximum": 250,
      +                                "minimum": 20,
      +                                "type": "integer"
      +                              }
      +                            },
      +                            "required": [
      +                              "kind",
      +                              "min",
      +                              "max"
      +                            ],
      +                            "type": "object"
      +                          },
      +                          {
      +                            "additionalProperties": false,
      +                            "properties": {
      +                              "kind": {
      +                                "const": "cadence_threshold",
      +                                "type": "string"
      +                              },
      +                              "value": {
      +                                "maximum": 250,
      +                                "minimum": 20,
      +                                "type": "integer"
      +                              }
      +                            },
      +                            "required": [
      +                              "kind",
      +                              "value"
      +                            ],
      +                            "type": "object"
      +                          },
      +                          {
      +                            "additionalProperties": false,
      +                            "properties": {
      +                              "kind": {
      +                                "const": "power_range",
      +                                "type": "string"
      +                              },
      +                              "max_watts": {
      +                                "maximum": 2500,
      +                                "minimum": 10,
      +                                "type": "integer"
      +                              },
      +                              "metric": {
      +                                "description": "current (default) = instantaneous value; average = average over the step",
      +                                "enum": [
      +                                  "current",
      +                                  "average"
      +                                ],
      +                                "type": "string"
      +                              },
      +                              "min_watts": {
      +                                "maximum": 2500,
      +                                "minimum": 10,
      +                                "type": "integer"
      +                              }
      +                            },
      +                            "required": [
      +                              "kind",
      +                              "min_watts",
      +                              "max_watts"
      +                            ],
      +                            "type": "object"
      +                          },
      +                          {
      +                            "additionalProperties": false,
      +                            "properties": {
      +                              "kind": {
      +                                "const": "power_threshold",
      +                                "type": "string"
      +                              },
      +                              "metric": {
      +                                "description": "current (default) = instantaneous value; average = average over the step",
      +                                "enum": [
      +                                  "current",
      +                                  "average"
      +                                ],
      +                                "type": "string"
      +                              },
      +                              "watts": {
      +                                "maximum": 2500,
      +                                "minimum": 10,
      +                                "type": "integer"
      +                              }
      +                            },
      +                            "required": [
      +                              "kind",
      +                              "watts"
      +                            ],
      +                            "type": "object"
      +                          },
      +                          {
      +                            "additionalProperties": false,
      +                            "properties": {
      +                              "kind": {
      +                                "const": "power_zone",
      +                                "type": "string"
      +                              },
      +                              "zone": {
      +                                "description": "The power zone configured on the user's Apple Watch (1-5), cycling only",
      +                                "maximum": 5,
      +                                "minimum": 1,
      +                                "type": "integer"
      +                              }
      +                            },
      +                            "required": [
      +                              "kind",
      +                              "zone"
      +                            ],
      +                            "type": "object"
      +                          }
      +                        ]
      +                      },
      +                      "goal": {
      +                        "oneOf": [
      +                          {
      +                            "additionalProperties": false,
      +                            "properties": {
      +                              "kind": {
      +                                "const": "open",
      +                                "type": "string"
      +                              }
      +                            },
      +                            "required": [
      +                              "kind"
      +                            ],
      +                            "type": "object"
      +                          },
      +                          {
      +                            "additionalProperties": false,
      +                            "properties": {
      +                              "kind": {
      +                                "const": "time",
      +                                "type": "string"
      +                              },
      +                              "seconds": {
      +                                "maximum": 21600,
      +                                "minimum": 1,
      +                                "type": "integer"
      +                              }
      +                            },
      +                            "required": [
      +                              "kind",
      +                              "seconds"
      +                            ],
      +                            "type": "object"
      +                          },
      +                          {
      +                            "additionalProperties": false,
      +                            "properties": {
      +                              "kind": {
      +                                "const": "distance",
      +                                "type": "string"
      +                              },
      +                              "meters": {
      +                                "maximum": 100000,
      +                                "minimum": 1,
      +                                "type": "number"
      +                              }
      +                            },
      +                            "required": [
      +                              "kind",
      +                              "meters"
      +                            ],
      +                            "type": "object"
      +                          },
      +                          {
      +                            "additionalProperties": false,
      +                            "properties": {
      +                              "kind": {
      +                                "const": "pool_distance_with_time",
      +                                "type": "string"
      +                              },
      +                              "meters": {
      +                                "maximum": 100000,
      +                                "minimum": 1,
      +                                "type": "number"
      +                              },
      +                              "seconds": {
      +                                "maximum": 21600,
      +                                "minimum": 1,
      +                                "type": "integer"
      +                              }
      +                            },
      +                            "required": [
      +                              "kind",
      +                              "meters",
      +                              "seconds"
      +                            ],
      +                            "type": "object"
      +                          }
      +                        ]
      +                      },
      +                      "heart_rate_bpm": {
      +                        "additionalProperties": false,
      +                        "description": "Legacy heart-rate window; same as alert heart_rate_range. Do not send both.",
      +                        "properties": {
      +                          "max": {
      +                            "maximum": 240,
      +                            "minimum": 30,
      +                            "type": "integer"
      +                          },
      +                          "min": {
      +                            "maximum": 240,
      +                            "minimum": 30,
      +                            "type": "integer"
      +                          }
      +                        },
      +                        "required": [
      +                          "min",
      +                          "max"
      +                        ],
      +                        "type": "object"
      +                      },
      +                      "name": {
      +                        "maxLength": 60,
      +                        "minLength": 1,
      +                        "type": "string"
      +                      }
      +                    },
      +                    "required": [
      +                      "name",
      +                      "goal"
      +                    ],
      +                    "type": "object"
      +                  }
      +                },
      +                "required": [
      +                  "purpose",
      +                  "step"
      +                ],
      +                "type": "object"
      +              },
      +              "maxItems": 20,
      +              "minItems": 1,
      +              "type": "array"
      +            }
      +          },
      +          "required": [
      +            "iterations",
      +            "steps"
      +          ],
      +          "type": "object"
      +        },
      +        "maxItems": 20,
      +        "minItems": 1,
      +        "type": "array"
      +      },
      +      "cooldown": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "alert": {
      +            "description": "At most one alert per step (an Apple Watch limit). Prefer this over heart_rate_bpm.",
      +            "oneOf": [
      +              {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "kind": {
      +                    "const": "heart_rate_range",
      +                    "type": "string"
      +                  },
      +                  "max_bpm": {
      +                    "maximum": 240,
      +                    "minimum": 30,
      +                    "type": "integer"
      +                  },
      +                  "min_bpm": {
      +                    "maximum": 240,
      +                    "minimum": 30,
      +                    "type": "integer"
      +                  }
      +                },
      +                "required": [
      +                  "kind",
      +                  "min_bpm",
      +                  "max_bpm"
      +                ],
      +                "type": "object"
      +              },
      +              {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "kind": {
      +                    "const": "heart_rate_zone",
      +                    "type": "string"
      +                  },
      +                  "zone": {
      +                    "description": "The heart-rate zone configured on the user's Apple Watch (1-5)",
      +                    "maximum": 5,
      +                    "minimum": 1,
      +                    "type": "integer"
      +                  }
      +                },
      +                "required": [
      +                  "kind",
      +                  "zone"
      +                ],
      +                "type": "object"
      +              },
      +              {
      +                "additionalProperties": false,
      +                "description": "Pace window in seconds per km or mile, e.g. 5:00-5:30/km = fastest_seconds 300, slowest_seconds 330, per km",
      +                "properties": {
      +                  "fastest_seconds": {
      +                    "maximum": 1800,
      +                    "minimum": 120,
      +                    "type": "integer"
      +                  },
      +                  "kind": {
      +                    "const": "pace_range",
      +                    "type": "string"
      +                  },
      +                  "metric": {
      +                    "description": "current (default) = instantaneous value; average = average over the step",
      +                    "enum": [
      +                      "current",
      +                      "average"
      +                    ],
      +                    "type": "string"
      +                  },
      +                  "per": {
      +                    "enum": [
      +                      "km",
      +                      "mi"
      +                    ],
      +                    "type": "string"
      +                  },
      +                  "slowest_seconds": {
      +                    "maximum": 1800,
      +                    "minimum": 120,
      +                    "type": "integer"
      +                  }
      +                },
      +                "required": [
      +                  "kind",
      +                  "fastest_seconds",
      +                  "slowest_seconds",
      +                  "per"
      +                ],
      +                "type": "object"
      +              },
      +              {
      +                "additionalProperties": false,
      +                "description": "A single target pace in seconds per km or mile instead of a window",
      +                "properties": {
      +                  "kind": {
      +                    "const": "pace_threshold",
      +                    "type": "string"
      +                  },
      +                  "metric": {
      +                    "description": "current (default) = instantaneous value; average = average over the step",
      +                    "enum": [
      +                      "current",
      +                      "average"
      +                    ],
      +                    "type": "string"
      +                  },
      +                  "per": {
      +                    "enum": [
      +                      "km",
      +                      "mi"
      +                    ],
      +                    "type": "string"
      +                  },
      +                  "seconds": {
      +                    "maximum": 1800,
      +                    "minimum": 120,
      +                    "type": "integer"
      +                  }
      +                },
      +                "required": [
      +                  "kind",
      +                  "seconds",
      +                  "per"
      +                ],
      +                "type": "object"
      +              },
      +              {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "kind": {
      +                    "const": "speed_range",
      +                    "type": "string"
      +                  },
      +                  "max": {
      +                    "maximum": 100,
      +                    "minimum": 1,
      +                    "type": "number"
      +                  },
      +                  "metric": {
      +                    "description": "current (default) = instantaneous value; average = average over the step",
      +                    "enum": [
      +                      "current",
      +                      "average"
      +                    ],
      +                    "type": "string"
      +                  },
      +                  "min": {
      +                    "maximum": 100,
      +                    "minimum": 1,
      +                    "type": "number"
      +                  },
      +                  "unit": {
      +                    "enum": [
      +                      "kph",
      +                      "mph"
      +                    ],
      +                    "type": "string"
      +                  }
      +                },
      +                "required": [
      +                  "kind",
      +                  "min",
      +                  "max",
      +                  "unit"
      +                ],
      +                "type": "object"
      +              },
      +              {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "kind": {
      +                    "const": "speed_threshold",
      +                    "type": "string"
      +                  },
      +                  "metric": {
      +                    "description": "current (default) = instantaneous value; average = average over the step",
      +                    "enum": [
      +                      "current",
      +                      "average"
      +                    ],
      +                    "type": "string"
      +                  },
      +                  "unit": {
      +                    "enum": [
      +                      "kph",
      +                      "mph"
      +                    ],
      +                    "type": "string"
      +                  },
      +                  "value": {
      +                    "maximum": 100,
      +                    "minimum": 1,
      +                    "type": "number"
      +                  }
      +                },
      +                "required": [
      +                  "kind",
      +                  "value",
      +                  "unit"
      +                ],
      +                "type": "object"
      +              },
      +              {
      +                "additionalProperties": false,
      +                "description": "Steps per minute when running, revolutions per minute when cycling",
      +                "properties": {
      +                  "kind": {
      +                    "const": "cadence_range",
      +                    "type": "string"
      +                  },
      +                  "max": {
      +                    "maximum": 250,
      +                    "minimum": 20,
      +                    "type": "integer"
      +                  },
      +                  "min": {
      +                    "maximum": 250,
      +                    "minimum": 20,
      +                    "type": "integer"
      +                  }
      +                },
      +                "required": [
      +                  "kind",
      +                  "min",
      +                  "max"
      +                ],
      +                "type": "object"
      +              },
      +              {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "kind": {
      +                    "const": "cadence_threshold",
      +                    "type": "string"
      +                  },
      +                  "value": {
      +                    "maximum": 250,
      +                    "minimum": 20,
      +                    "type": "integer"
      +                  }
      +                },
      +                "required": [
      +                  "kind",
      +                  "value"
      +                ],
      +                "type": "object"
      +              },
      +              {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "kind": {
      +                    "const": "power_range",
      +                    "type": "string"
      +                  },
      +                  "max_watts": {
      +                    "maximum": 2500,
      +                    "minimum": 10,
      +                    "type": "integer"
      +                  },
      +                  "metric": {
      +                    "description": "current (default) = instantaneous value; average = average over the step",
      +                    "enum": [
      +                      "current",
      +                      "average"
      +                    ],
      +                    "type": "string"
      +                  },
      +                  "min_watts": {
      +                    "maximum": 2500,
      +                    "minimum": 10,
      +                    "type": "integer"
      +                  }
      +                },
      +                "required": [
      +                  "kind",
      +                  "min_watts",
      +                  "max_watts"
      +                ],
      +                "type": "object"
      +              },
      +              {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "kind": {
      +                    "const": "power_threshold",
      +                    "type": "string"
      +                  },
      +                  "metric": {
      +                    "description": "current (default) = instantaneous value; average = average over the step",
      +                    "enum": [
      +                      "current",
      +                      "average"
      +                    ],
      +                    "type": "string"
      +                  },
      +                  "watts": {
      +                    "maximum": 2500,
      +                    "minimum": 10,
      +                    "type": "integer"
      +                  }
      +                },
      +                "required": [
      +                  "kind",
      +                  "watts"
      +                ],
      +                "type": "object"
      +              },
      +              {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "kind": {
      +                    "const": "power_zone",
      +                    "type": "string"
      +                  },
      +                  "zone": {
      +                    "description": "The power zone configured on the user's Apple Watch (1-5), cycling only",
      +                    "maximum": 5,
      +                    "minimum": 1,
      +                    "type": "integer"
      +                  }
      +                },
      +                "required": [
      +                  "kind",
      +                  "zone"
      +                ],
      +                "type": "object"
      +              }
      +            ]
      +          },
      +          "goal": {
      +            "oneOf": [
      +              {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "kind": {
      +                    "const": "open",
      +                    "type": "string"
      +                  }
      +                },
      +                "required": [
      +                  "kind"
      +                ],
      +                "type": "object"
      +              },
      +              {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "kind": {
      +                    "const": "time",
      +                    "type": "string"
      +                  },
      +                  "seconds": {
      +                    "maximum": 21600,
      +                    "minimum": 1,
      +                    "type": "integer"
      +                  }
      +                },
      +                "required": [
      +                  "kind",
      +                  "seconds"
      +                ],
      +                "type": "object"
      +              },
      +              {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "kind": {
      +                    "const": "distance",
      +                    "type": "string"
      +                  },
      +                  "meters": {
      +                    "maximum": 100000,
      +                    "minimum": 1,
      +                    "type": "number"
      +                  }
      +                },
      +                "required": [
      +                  "kind",
      +                  "meters"
      +                ],
      +                "type": "object"
      +              },
      +              {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "kind": {
      +                    "const": "pool_distance_with_time",
      +                    "type": "string"
      +                  },
      +                  "meters": {
      +                    "maximum": 100000,
      +                    "minimum": 1,
      +                    "type": "number"
      +                  },
      +                  "seconds": {
      +                    "maximum": 21600,
      +                    "minimum": 1,
      +                    "type": "integer"
      +                  }
      +                },
      +                "required": [
      +                  "kind",
      +                  "meters",
      +                  "seconds"
      +                ],
      +                "type": "object"
      +              }
      +            ]
      +          },
      +          "heart_rate_bpm": {
      +            "additionalProperties": false,
      +            "description": "Legacy heart-rate window; same as alert heart_rate_range. Do not send both.",
      +            "properties": {
      +              "max": {
      +                "maximum": 240,
      +                "minimum": 30,
      +                "type": "integer"
      +              },
      +              "min": {
      +                "maximum": 240,
      +                "minimum": 30,
      +                "type": "integer"
      +              }
      +            },
      +            "required": [
      +              "min",
      +              "max"
      +            ],
      +            "type": "object"
      +          },
      +          "name": {
      +            "maxLength": 60,
      +            "minLength": 1,
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "name",
      +          "goal"
      +        ],
      +        "type": "object"
      +      },
      +      "distance_unit": {
      +        "description": "Swimming only: the unit of the user's pool. Use yd for a yard pool (e.g. 25 yd = pool_length_m 22.86). Goal values stay in meters (yards x 0.9144); the app converts them back so the Watch shows yards and does not reconfigure the workout. Omitted: inferred as yd when pool_length_m is a whole number of yards, else m.",
      +        "enum": [
      +          "m",
      +          "yd"
      +        ],
      +        "type": "string"
      +      },
      +      "location": {
      +        "enum": [
      +          "indoor",
      +          "outdoor"
      +        ],
      +        "type": "string"
      +      },
      +      "pool_length_m": {
      +        "description": "Pool length for swimming, in meters. Shown for review; configure this length on Apple Watch when starting (WorkoutKit does not set it).",
      +        "exclusiveMinimum": 0,
      +        "maximum": 150,
      +        "type": "number"
      +      },
      +      "title": {
      +        "maxLength": 60,
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "type": {
      +        "const": "custom",
      +        "description": "Omit or 'custom': warmup, repeatable blocks, cooldown",
      +        "type": "string"
      +      },
      +      "warmup": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "alert": {
      +            "description": "At most one alert per step (an Apple Watch limit). Prefer this over heart_rate_bpm.",
      +            "oneOf": [
      +              {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "kind": {
      +                    "const": "heart_rate_range",
      +                    "type": "string"
      +                  },
      +                  "max_bpm": {
      +                    "maximum": 240,
      +                    "minimum": 30,
      +                    "type": "integer"
      +                  },
      +                  "min_bpm": {
      +                    "maximum": 240,
      +                    "minimum": 30,
      +                    "type": "integer"
      +                  }
      +                },
      +                "required": [
      +                  "kind",
      +                  "min_bpm",
      +                  "max_bpm"
      +                ],
      +                "type": "object"
      +              },
      +              {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "kind": {
      +                    "const": "heart_rate_zone",
      +                    "type": "string"
      +                  },
      +                  "zone": {
      +                    "description": "The heart-rate zone configured on the user's Apple Watch (1-5)",
      +                    "maximum": 5,
      +                    "minimum": 1,
      +                    "type": "integer"
      +                  }
      +                },
      +                "required": [
      +                  "kind",
      +                  "zone"
      +                ],
      +                "type": "object"
      +              },
      +              {
      +                "additionalProperties": false,
      +                "description": "Pace window in seconds per km or mile, e.g. 5:00-5:30/km = fastest_seconds 300, slowest_seconds 330, per km",
      +                "properties": {
      +                  "fastest_seconds": {
      +                    "maximum": 1800,
      +                    "minimum": 120,
      +                    "type": "integer"
      +                  },
      +                  "kind": {
      +                    "const": "pace_range",
      +                    "type": "string"
      +                  },
      +                  "metric": {
      +                    "description": "current (default) = instantaneous value; average = average over the step",
      +                    "enum": [
      +                      "current",
      +                      "average"
      +                    ],
      +                    "type": "string"
      +                  },
      +                  "per": {
      +                    "enum": [
      +                      "km",
      +                      "mi"
      +                    ],
      +                    "type": "string"
      +                  },
      +                  "slowest_seconds": {
      +                    "maximum": 1800,
      +                    "minimum": 120,
      +                    "type": "integer"
      +                  }
      +                },
      +                "required": [
      +                  "kind",
      +                  "fastest_seconds",
      +                  "slowest_seconds",
      +                  "per"
      +                ],
      +                "type": "object"
      +              },
      +              {
      +                "additionalProperties": false,
      +                "description": "A single target pace in seconds per km or mile instead of a window",
      +                "properties": {
      +                  "kind": {
      +                    "const": "pace_threshold",
      +                    "type": "string"
      +                  },
      +                  "metric": {
      +                    "description": "current (default) = instantaneous value; average = average over the step",
      +                    "enum": [
      +                      "current",
      +                      "average"
      +                    ],
      +                    "type": "string"
      +                  },
      +                  "per": {
      +                    "enum": [
      +                      "km",
      +                      "mi"
      +                    ],
      +                    "type": "string"
      +                  },
      +                  "seconds": {
      +                    "maximum": 1800,
      +                    "minimum": 120,
      +                    "type": "integer"
      +                  }
      +                },
      +                "required": [
      +                  "kind",
      +                  "seconds",
      +                  "per"
      +                ],
      +                "type": "object"
      +              },
      +              {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "kind": {
      +                    "const": "speed_range",
      +                    "type": "string"
      +                  },
      +                  "max": {
      +                    "maximum": 100,
      +                    "minimum": 1,
      +                    "type": "number"
      +                  },
      +                  "metric": {
      +                    "description": "current (default) = instantaneous value; average = average over the step",
      +                    "enum": [
      +                      "current",
      +                      "average"
      +                    ],
      +                    "type": "string"
      +                  },
      +                  "min": {
      +                    "maximum": 100,
      +                    "minimum": 1,
      +                    "type": "number"
      +                  },
      +                  "unit": {
      +                    "enum": [
      +                      "kph",
      +                      "mph"
      +                    ],
      +                    "type": "string"
      +                  }
      +                },
      +                "required": [
      +                  "kind",
      +                  "min",
      +                  "max",
      +                  "unit"
      +                ],
      +                "type": "object"
      +              },
      +              {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "kind": {
      +                    "const": "speed_threshold",
      +                    "type": "string"
      +                  },
      +                  "metric": {
      +                    "description": "current (default) = instantaneous value; average = average over the step",
      +                    "enum": [
      +                      "current",
      +                      "average"
      +                    ],
      +                    "type": "string"
      +                  },
      +                  "unit": {
      +                    "enum": [
      +                      "kph",
      +                      "mph"
      +                    ],
      +                    "type": "string"
      +                  },
      +                  "value": {
      +                    "maximum": 100,
      +                    "minimum": 1,
      +                    "type": "number"
      +                  }
      +                },
      +                "required": [
      +                  "kind",
      +                  "value",
      +                  "unit"
      +                ],
      +                "type": "object"
      +              },
      +              {
      +                "additionalProperties": false,
      +                "description": "Steps per minute when running, revolutions per minute when cycling",
      +                "properties": {
      +                  "kind": {
      +                    "const": "cadence_range",
      +                    "type": "string"
      +                  },
      +                  "max": {
      +                    "maximum": 250,
      +                    "minimum": 20,
      +                    "type": "integer"
      +                  },
      +                  "min": {
      +                    "maximum": 250,
      +                    "minimum": 20,
      +                    "type": "integer"
      +                  }
      +                },
      +                "required": [
      +                  "kind",
      +                  "min",
      +                  "max"
      +                ],
      +                "type": "object"
      +              },
      +              {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "kind": {
      +                    "const": "cadence_threshold",
      +                    "type": "string"
      +                  },
      +                  "value": {
      +                    "maximum": 250,
      +                    "minimum": 20,
      +                    "type": "integer"
      +                  }
      +                },
      +                "required": [
      +                  "kind",
      +                  "value"
      +                ],
      +                "type": "object"
      +              },
      +              {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "kind": {
      +                    "const": "power_range",
      +                    "type": "string"
      +                  },
      +                  "max_watts": {
      +                    "maximum": 2500,
      +                    "minimum": 10,
      +                    "type": "integer"
      +                  },
      +                  "metric": {
      +                    "description": "current (default) = instantaneous value; average = average over the step",
      +                    "enum": [
      +                      "current",
      +                      "average"
      +                    ],
      +                    "type": "string"
      +                  },
      +                  "min_watts": {
      +                    "maximum": 2500,
      +                    "minimum": 10,
      +                    "type": "integer"
      +                  }
      +                },
      +                "required": [
      +                  "kind",
      +                  "min_watts",
      +                  "max_watts"
      +                ],
      +                "type": "object"
      +              },
      +              {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "kind": {
      +                    "const": "power_threshold",
      +                    "type": "string"
      +                  },
      +                  "metric": {
      +                    "description": "current (default) = instantaneous value; average = average over the step",
      +                    "enum": [
      +                      "current",
      +                      "average"
      +                    ],
      +                    "type": "string"
      +                  },
      +                  "watts": {
      +                    "maximum": 2500,
      +                    "minimum": 10,
      +                    "type": "integer"
      +                  }
      +                },
      +                "required": [
      +                  "kind",
      +                  "watts"
      +                ],
      +                "type": "object"
      +              },
      +              {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "kind": {
      +                    "const": "power_zone",
      +                    "type": "string"
      +                  },
      +                  "zone": {
      +                    "description": "The power zone configured on the user's Apple Watch (1-5), cycling only",
      +                    "maximum": 5,
      +                    "minimum": 1,
      +                    "type": "integer"
      +                  }
      +                },
      +                "required": [
      +                  "kind",
      +                  "zone"
      +                ],
      +                "type": "object"
      +              }
      +            ]
      +          },
      +          "goal": {
      +            "oneOf": [
      +              {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "kind": {
      +                    "const": "open",
      +                    "type": "string"
      +                  }
      +                },
      +                "required": [
      +                  "kind"
      +                ],
      +                "type": "object"
      +              },
      +              {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "kind": {
      +                    "const": "time",
      +                    "type": "string"
      +                  },
      +                  "seconds": {
      +                    "maximum": 21600,
      +                    "minimum": 1,
      +                    "type": "integer"
      +                  }
      +                },
      +                "required": [
      +                  "kind",
      +                  "seconds"
      +                ],
      +                "type": "object"
      +              },
      +              {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "kind": {
      +                    "const": "distance",
      +                    "type": "string"
      +                  },
      +                  "meters": {
      +                    "maximum": 100000,
      +                    "minimum": 1,
      +                    "type": "number"
      +                  }
      +                },
      +                "required": [
      +                  "kind",
      +                  "meters"
      +                ],
      +                "type": "object"
      +              },
      +              {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "kind": {
      +                    "const": "pool_distance_with_time",
      +                    "type": "string"
      +                  },
      +                  "meters": {
      +                    "maximum": 100000,
      +                    "minimum": 1,
      +                    "type": "number"
      +                  },
      +                  "seconds": {
      +                    "maximum": 21600,
      +                    "minimum": 1,
      +                    "type": "integer"
      +                  }
      +                },
      +                "required": [
      +                  "kind",
      +                  "meters",
      +                  "seconds"
      +                ],
      +                "type": "object"
      +              }
      +            ]
      +          },
      +          "heart_rate_bpm": {
      +            "additionalProperties": false,
      +            "description": "Legacy heart-rate window; same as alert heart_rate_range. Do not send both.",
      +            "properties": {
      +              "max": {
      +                "maximum": 240,
      +                "minimum": 30,
      +                "type": "integer"
      +              },
      +              "min": {
      +                "maximum": 240,
      +                "minimum": 30,
      +                "type": "integer"
      +              }
      +            },
      +            "required": [
      +              "min",
      +              "max"
      +            ],
      +            "type": "object"
      +          },
      +          "name": {
      +            "maxLength": 60,
      +            "minLength": 1,
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "name",
      +          "goal"
      +        ],
      +        "type": "object"
      +      }
      +    },
      +    "required": [
      +      "title",
      +      "activity",
      +      "location",
      +      "blocks"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "description": "Pace workout: cover meters in seconds; the Watch shows whether the user is ahead of or behind that even pace",
      +    "properties": {
      +      "activity": {
      +        "enum": [
      +          "running",
      +          "cycling",
      +          "wheelchair_run"
      +        ],
      +        "type": "string"
      +      },
      +      "location": {
      +        "enum": [
      +          "indoor",
      +          "outdoor"
      +        ],
      +        "type": "string"
      +      },
      +      "meters": {
      +        "maximum": 100000,
      +        "minimum": 100,
      +        "type": "number"
      +      },
      +      "seconds": {
      +        "maximum": 21600,
      +        "minimum": 60,
      +        "type": "integer"
      +      },
      +      "title": {
      +        "maxLength": 60,
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "type": {
      +        "const": "pacer",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "type",
      +      "title",
      +      "activity",
      +      "location",
      +      "meters",
      +      "seconds"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "description": "One goal for the whole workout. The only way to set an active-calorie goal (energy).",
      +    "properties": {
      +      "activity": {
      +        "enum": [
      +          "running",
      +          "cycling",
      +          "walking",
      +          "strength",
      +          "functional_strength",
      +          "hiit",
      +          "swimming",
      +          "hiking",
      +          "rowing",
      +          "elliptical",
      +          "stair_climbing",
      +          "cross_training",
      +          "core_training",
      +          "mixed_cardio",
      +          "dance",
      +          "yoga",
      +          "pilates",
      +          "jump_rope",
      +          "kickboxing",
      +          "wheelchair_run",
      +          "wheelchair_walk",
      +          "other"
      +        ],
      +        "type": "string"
      +      },
      +      "goal": {
      +        "oneOf": [
      +          {
      +            "additionalProperties": false,
      +            "properties": {
      +              "kind": {
      +                "const": "open",
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "kind"
      +            ],
      +            "type": "object"
      +          },
      +          {
      +            "additionalProperties": false,
      +            "properties": {
      +              "kind": {
      +                "const": "time",
      +                "type": "string"
      +              },
      +              "seconds": {
      +                "maximum": 21600,
      +                "minimum": 1,
      +                "type": "integer"
      +              }
      +            },
      +            "required": [
      +              "kind",
      +              "seconds"
      +            ],
      +            "type": "object"
      +          },
      +          {
      +            "additionalProperties": false,
      +            "properties": {
      +              "kind": {
      +                "const": "distance",
      +                "type": "string"
      +              },
      +              "meters": {
      +                "maximum": 100000,
      +                "minimum": 1,
      +                "type": "number"
      +              }
      +            },
      +            "required": [
      +              "kind",
      +              "meters"
      +            ],
      +            "type": "object"
      +          },
      +          {
      +            "additionalProperties": false,
      +            "properties": {
      +              "kilocalories": {
      +                "maximum": 5000,
      +                "minimum": 10,
      +                "type": "integer"
      +              },
      +              "kind": {
      +                "const": "energy",
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "kind",
      +              "kilocalories"
      +            ],
      +            "type": "object"
      +          }
      +        ]
      +      },
      +      "location": {
      +        "enum": [
      +          "indoor",
      +          "outdoor"
      +        ],
      +        "type": "string"
      +      },
      +      "title": {
      +        "maxLength": 60,
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "type": {
      +        "const": "single_goal",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "type",
      +      "title",
      +      "activity",
      +      "location",
      +      "goal"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "description": "Triathlon/duathlon: the Watch switches sport leg by leg (swim-bike-run, run-bike-run...). No per-leg goals.",
      +    "properties": {
      +      "legs": {
      +        "items": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "activity": {
      +              "enum": [
      +                "swimming",
      +                "cycling",
      +                "running"
      +              ],
      +              "type": "string"
      +            },
      +            "location": {
      +              "description": "swimming: indoor = pool, outdoor = open water",
      +              "enum": [
      +                "indoor",
      +                "outdoor"
      +              ],
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "activity",
      +            "location"
      +          ],
      +          "type": "object"
      +        },
      +        "maxItems": 10,
      +        "minItems": 2,
      +        "type": "array"
      +      },
      +      "title": {
      +        "maxLength": 60,
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "type": {
      +        "const": "multisport",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "type",
      +      "title",
      +      "legs"
      +    ],
      +    "type": "object"
      +  }
      +]
    • removedInput schema / properties / definition / properties
      Removed value: -{
      -  "activity": {
      -    "enum": [
      -      "running",
      -      "cycling",
      -      "walking",
      -      "strength",
      -      "functional_strength",
      -      "hiit",
      -      "swimming"
      -    ],
      -    "type": "string"
      -  },
      -  "blocks": {
      -    "items": {
      -      "additionalProperties": false,
      -      "properties": {
      -        "iterations": {
      -          "maximum": 30,
      -          "minimum": 1,
      -          "type": "integer"
      -        },
      -        "steps": {
      -          "items": {
      -            "additionalProperties": false,
      -            "properties": {
      -              "purpose": {
      -                "enum": [
      -                  "work",
      -                  "recovery"
      -                ],
      -                "type": "string"
      -              },
      -              "step": {
      -                "additionalProperties": false,
      -                "properties": {
      -                  "goal": {
      -                    "oneOf": [
      -                      {
      -                        "additionalProperties": false,
      -                        "properties": {
      -                          "kind": {
      -                            "const": "open",
      -                            "type": "string"
      -                          }
      -                        },
      -                        "required": [
      -                          "kind"
      -                        ],
      -                        "type": "object"
      -                      },
      -                      {
      -                        "additionalProperties": false,
      -                        "properties": {
      -                          "kind": {
      -                            "const": "time",
      -                            "type": "string"
      -                          },
      -                          "seconds": {
      -                            "maximum": 21600,
      -                            "minimum": 1,
      -                            "type": "integer"
      -                          }
      -                        },
      -                        "required": [
      -                          "kind",
      -                          "seconds"
      -                        ],
      -                        "type": "object"
      -                      },
      -                      {
      -                        "additionalProperties": false,
      -                        "properties": {
      -                          "kind": {
      -                            "const": "distance",
      -                            "type": "string"
      -                          },
      -                          "meters": {
      -                            "maximum": 100000,
      -                            "minimum": 1,
      -                            "type": "number"
      -                          }
      -                        },
      -                        "required": [
      -                          "kind",
      -                          "meters"
      -                        ],
      -                        "type": "object"
      -                      },
      -                      {
      -                        "additionalProperties": false,
      -                        "properties": {
      -                          "kind": {
      -                            "const": "pool_distance_with_time",
      -                            "type": "string"
      -                          },
      -                          "meters": {
      -                            "maximum": 100000,
      -                            "minimum": 1,
      -                            "type": "number"
      -                          },
      -                          "seconds": {
      -                            "maximum": 21600,
      -                            "minimum": 1,
      -                            "type": "integer"
      -                          }
      -                        },
      -                        "required": [
      -                          "kind",
      -                          "meters",
      -                          "seconds"
      -                        ],
      -                        "type": "object"
      -                      }
      -                    ]
      -                  },
      -                  "heart_rate_bpm": {
      -                    "additionalProperties": false,
      -                    "properties": {
      -                      "max": {
      -                        "maximum": 240,
      -                        "minimum": 30,
      -                        "type": "integer"
      -                      },
      -                      "min": {
      -                        "maximum": 240,
      -                        "minimum": 30,
      -                        "type": "integer"
      -                      }
      -                    },
      -                    "required": [
      -                      "min",
      -                      "max"
      -                    ],
      -                    "type": "object"
      -                  },
      -                  "name": {
      -                    "maxLength": 60,
      -                    "minLength": 1,
      -                    "type": "string"
      -                  }
      -                },
      -                "required": [
      -                  "name",
      -                  "goal"
      -                ],
      -                "type": "object"
      -              }
      -            },
      -            "required": [
      -              "purpose",
      -              "step"
      -            ],
      -            "type": "object"
      -          },
      -          "maxItems": 20,
      -          "minItems": 1,
      -          "type": "array"
      -        }
      -      },
      -      "required": [
      -        "iterations",
      -        "steps"
      -      ],
      -      "type": "object"
      -    },
      -    "maxItems": 20,
      -    "minItems": 1,
      -    "type": "array"
      -  },
      -  "cooldown": {
      -    "additionalProperties": false,
      -    "properties": {
      -      "goal": {
      -        "oneOf": [
      -          {
      -            "additionalProperties": false,
      -            "properties": {
      -              "kind": {
      -                "const": "open",
      -                "type": "string"
      -              }
      -            },
      -            "required": [
      -              "kind"
      -            ],
      -            "type": "object"
      -          },
      -          {
      -            "additionalProperties": false,
      -            "properties": {
      -              "kind": {
      -                "const": "time",
      -                "type": "string"
      -              },
      -              "seconds": {
      -                "maximum": 21600,
      -                "minimum": 1,
      -                "type": "integer"
      -              }
      -            },
      -            "required": [
      -              "kind",
      -              "seconds"
      -            ],
      -            "type": "object"
      -          },
      -          {
      -            "additionalProperties": false,
      -            "properties": {
      -              "kind": {
      -                "const": "distance",
      -                "type": "string"
      -              },
      -              "meters": {
      -                "maximum": 100000,
      -                "minimum": 1,
      -                "type": "number"
      -              }
      -            },
      -            "required": [
      -              "kind",
      -              "meters"
      -            ],
      -            "type": "object"
      -          },
      -          {
      -            "additionalProperties": false,
      -            "properties": {
      -              "kind": {
      -                "const": "pool_distance_with_time",
      -                "type": "string"
      -              },
      -              "meters": {
      -                "maximum": 100000,
      -                "minimum": 1,
      -                "type": "number"
      -              },
      -              "seconds": {
      -                "maximum": 21600,
      -                "minimum": 1,
      -                "type": "integer"
      -              }
      -            },
      -            "required": [
      -              "kind",
      -              "meters",
      -              "seconds"
      -            ],
      -            "type": "object"
      -          }
      -        ]
      -      },
      -      "heart_rate_bpm": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "max": {
      -            "maximum": 240,
      -            "minimum": 30,
      -            "type": "integer"
      -          },
      -          "min": {
      -            "maximum": 240,
      -            "minimum": 30,
      -            "type": "integer"
      -          }
      -        },
      -        "required": [
      -          "min",
      -          "max"
      -        ],
      -        "type": "object"
      -      },
      -      "name": {
      -        "maxLength": 60,
      -        "minLength": 1,
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "name",
      -      "goal"
      -    ],
      -    "type": "object"
      -  },
      -  "distance_unit": {
      -    "description": "Swimming only: the unit of the user's pool. Use yd for a yard pool (e.g. 25 yd = pool_length_m 22.86). Goal values stay in meters (yards x 0.9144); the app converts them back so the Watch shows yards and does not reconfigure the workout. Omitted: inferred as yd when pool_length_m is a whole number of yards, else m.",
      -    "enum": [
      -      "m",
      -      "yd"
      -    ],
      -    "type": "string"
      -  },
      -  "location": {
      -    "enum": [
      -      "indoor",
      -      "outdoor"
      -    ],
      -    "type": "string"
      -  },
      -  "pool_length_m": {
      -    "description": "Pool length for swimming, in meters. Shown for review; configure this length on Apple Watch when starting (WorkoutKit does not set it).",
      -    "exclusiveMinimum": 0,
      -    "maximum": 150,
      -    "type": "number"
      -  },
      -  "title": {
      -    "maxLength": 60,
      -    "minLength": 1,
      -    "type": "string"
      -  },
      -  "warmup": {
      -    "additionalProperties": false,
      -    "properties": {
      -      "goal": {
      -        "oneOf": [
      -          {
      -            "additionalProperties": false,
      -            "properties": {
      -              "kind": {
      -                "const": "open",
      -                "type": "string"
      -              }
      -            },
      -            "required": [
      -              "kind"
      -            ],
      -            "type": "object"
      -          },
      -          {
      -            "additionalProperties": false,
      -            "properties": {
      -              "kind": {
      -                "const": "time",
      -                "type": "string"
      -              },
      -              "seconds": {
      -                "maximum": 21600,
      -                "minimum": 1,
      -                "type": "integer"
      -              }
      -            },
      -            "required": [
      -              "kind",
      -              "seconds"
      -            ],
      -            "type": "object"
      -          },
      -          {
      -            "additionalProperties": false,
      -            "properties": {
      -              "kind": {
      -                "const": "distance",
      -                "type": "string"
      -              },
      -              "meters": {
      -                "maximum": 100000,
      -                "minimum": 1,
      -                "type": "number"
      -              }
      -            },
      -            "required": [
      -              "kind",
      -              "meters"
      -            ],
      -            "type": "object"
      -          },
      -          {
      -            "additionalProperties": false,
      -            "properties": {
      -              "kind": {
      -                "const": "pool_distance_with_time",
      -                "type": "string"
      -              },
      -              "meters": {
      -                "maximum": 100000,
      -                "minimum": 1,
      -                "type": "number"
      -              },
      -              "seconds": {
      -                "maximum": 21600,
      -                "minimum": 1,
      -                "type": "integer"
      -              }
      -            },
      -            "required": [
      -              "kind",
      -              "meters",
      -              "seconds"
      -            ],
      -            "type": "object"
      -          }
      -        ]
      -      },
      -      "heart_rate_bpm": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "max": {
      -            "maximum": 240,
      -            "minimum": 30,
      -            "type": "integer"
      -          },
      -          "min": {
      -            "maximum": 240,
      -            "minimum": 30,
      -            "type": "integer"
      -          }
      -        },
      -        "required": [
      -          "min",
      -          "max"
      -        ],
      -        "type": "object"
      -      },
      -      "name": {
      -        "maxLength": 60,
      -        "minLength": 1,
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "name",
      -      "goal"
      -    ],
      -    "type": "object"
      -  }
      -}
    • removedInput schema / properties / definition / required
      Removed value: -[
      -  "title",
      -  "activity",
      -  "location",
      -  "blocks"
      -]
    • removedInput schema / properties / definition / type
      Removed value: -"object"
    • removedOutput schema / properties / plan / properties / definition / additionalProperties
      Removed value: -false
    • addedOutput schema / properties / plan / properties / definition / anyOf
      Added value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "activity": {
      +        "enum": [
      +          "running",
      +          "cycling",
      +          "walking",
      +          "strength",
      +          "functional_strength",
      +          "hiit",
      +          "swimming",
      +          "hiking",
      +          "rowing",
      +          "elliptical",
      +          "stair_climbing",
      +          "cross_training",
      +          "core_training",
      +          "mixed_cardio",
      +          "dance",
      +          "yoga",
      +          "pilates",
      +          "jump_rope",
      +          "kickboxing",
      +          "wheelchair_run",
      +          "wheelchair_walk",
      +          "other"
      +        ],
      +        "type": "string"
      +      },
      +      "blocks": {
      +        "items": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "iterations": {
      +              "maximum": 30,
      +              "minimum": 1,
      +              "type": "integer"
      +            },
      +            "steps": {
      +              "items": {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "purpose": {
      +                    "enum": [
      +                      "work",
      +                      "recovery"
      +                    ],
      +                    "type": "string"
      +                  },
      +                  "step": {
      +                    "additionalProperties": false,
      +                    "properties": {
      +                      "alert": {
      +                        "description": "At most one alert per step (an Apple Watch limit). Prefer this over heart_rate_bpm.",
      +                        "oneOf": [
      +                          {
      +                            "additionalProperties": false,
      +                            "properties": {
      +                              "kind": {
      +                                "const": "heart_rate_range",
      +                                "type": "string"
      +                              },
      +                              "max_bpm": {
      +                                "maximum": 240,
      +                                "minimum": 30,
      +                                "type": "integer"
      +                              },
      +                              "min_bpm": {
      +                                "maximum": 240,
      +                                "minimum": 30,
      +                                "type": "integer"
      +                              }
      +                            },
      +                            "required": [
      +                              "kind",
      +                              "min_bpm",
      +                              "max_bpm"
      +                            ],
      +                            "type": "object"
      +                          },
      +                          {
      +                            "additionalProperties": false,
      +                            "properties": {
      +                              "kind": {
      +                                "const": "heart_rate_zone",
      +                                "type": "string"
      +                              },
      +                              "zone": {
      +                                "description": "The heart-rate zone configured on the user's Apple Watch (1-5)",
      +                                "maximum": 5,
      +                                "minimum": 1,
      +                                "type": "integer"
      +                              }
      +                            },
      +                            "required": [
      +                              "kind",
      +                              "zone"
      +                            ],
      +                            "type": "object"
      +                          },
      +                          {
      +                            "additionalProperties": false,
      +                            "description": "Pace window in seconds per km or mile, e.g. 5:00-5:30/km = fastest_seconds 300, slowest_seconds 330, per km",
      +                            "properties": {
      +                              "fastest_seconds": {
      +                                "maximum": 1800,
      +                                "minimum": 120,
      +                                "type": "integer"
      +                              },
      +                              "kind": {
      +                                "const": "pace_range",
      +                                "type": "string"
      +                              },
      +                              "metric": {
      +                                "description": "current (default) = instantaneous value; average = average over the step",
      +                                "enum": [
      +                                  "current",
      +                                  "average"
      +                                ],
      +                                "type": "string"
      +                              },
      +                              "per": {
      +                                "enum": [
      +                                  "km",
      +                                  "mi"
      +                                ],
      +                                "type": "string"
      +                              },
      +                              "slowest_seconds": {
      +                                "maximum": 1800,
      +                                "minimum": 120,
      +                                "type": "integer"
      +                              }
      +                            },
      +                            "required": [
      +                              "kind",
      +                              "fastest_seconds",
      +                              "slowest_seconds",
      +                              "per"
      +                            ],
      +                            "type": "object"
      +                          },
      +                          {
      +                            "additionalProperties": false,
      +                            "description": "A single target pace in seconds per km or mile instead of a window",
      +                            "properties": {
      +                              "kind": {
      +                                "const": "pace_threshold",
      +                                "type": "string"
      +                              },
      +                              "metric": {
      +                                "description": "current (default) = instantaneous value; average = average over the step",
      +                                "enum": [
      +                                  "current",
      +                                  "average"
      +                                ],
      +                                "type": "string"
      +                              },
      +                              "per": {
      +                                "enum": [
      +                                  "km",
      +                                  "mi"
      +                                ],
      +                                "type": "string"
      +                              },
      +                              "seconds": {
      +                                "maximum": 1800,
      +                                "minimum": 120,
      +                                "type": "integer"
      +                              }
      +                            },
      +                            "required": [
      +                              "kind",
      +                              "seconds",
      +                              "per"
      +                            ],
      +                            "type": "object"
      +                          },
      +                          {
      +                            "additionalProperties": false,
      +                            "properties": {
      +                              "kind": {
      +                                "const": "speed_range",
      +                                "type": "string"
      +                              },
      +                              "max": {
      +                                "maximum": 100,
      +                                "minimum": 1,
      +                                "type": "number"
      +                              },
      +                              "metric": {
      +                                "description": "current (default) = instantaneous value; average = average over the step",
      +                                "enum": [
      +                                  "current",
      +                                  "average"
      +                                ],
      +                                "type": "string"
      +                              },
      +                              "min": {
      +                                "maximum": 100,
      +                                "minimum": 1,
      +                                "type": "number"
      +                              },
      +                              "unit": {
      +                                "enum": [
      +                                  "kph",
      +                                  "mph"
      +                                ],
      +                                "type": "string"
      +                              }
      +                            },
      +                            "required": [
      +                              "kind",
      +                              "min",
      +                              "max",
      +                              "unit"
      +                            ],
      +                            "type": "object"
      +                          },
      +                          {
      +                            "additionalProperties": false,
      +                            "properties": {
      +                              "kind": {
      +                                "const": "speed_threshold",
      +                                "type": "string"
      +                              },
      +                              "metric": {
      +                                "description": "current (default) = instantaneous value; average = average over the step",
      +                                "enum": [
      +                                  "current",
      +                                  "average"
      +                                ],
      +                                "type": "string"
      +                              },
      +                              "unit": {
      +                                "enum": [
      +                                  "kph",
      +                                  "mph"
      +                                ],
      +                                "type": "string"
      +                              },
      +                              "value": {
      +                                "maximum": 100,
      +                                "minimum": 1,
      +                                "type": "number"
      +                              }
      +                            },
      +                            "required": [
      +                              "kind",
      +                              "value",
      +                              "unit"
      +                            ],
      +                            "type": "object"
      +                          },
      +                          {
      +                            "additionalProperties": false,
      +                            "description": "Steps per minute when running, revolutions per minute when cycling",
      +                            "properties": {
      +                              "kind": {
      +                                "const": "cadence_range",
      +                                "type": "string"
      +                              },
      +                              "max": {
      +                                "maximum": 250,
      +                                "minimum": 20,
      +                                "type": "integer"
      +                              },
      +                              "min": {
      +                                "maximum": 250,
      +                                "minimum": 20,
      +                                "type": "integer"
      +                              }
      +                            },
      +                            "required": [
      +                              "kind",
      +                              "min",
      +                              "max"
      +                            ],
      +                            "type": "object"
      +                          },
      +                          {
      +                            "additionalProperties": false,
      +                            "properties": {
      +                              "kind": {
      +                                "const": "cadence_threshold",
      +                                "type": "string"
      +                              },
      +                              "value": {
      +                                "maximum": 250,
      +                                "minimum": 20,
      +                                "type": "integer"
      +                              }
      +                            },
      +                            "required": [
      +                              "kind",
      +                              "value"
      +                            ],
      +                            "type": "object"
      +                          },
      +                          {
      +                            "additionalProperties": false,
      +                            "properties": {
      +                              "kind": {
      +                                "const": "power_range",
      +                                "type": "string"
      +                              },
      +                              "max_watts": {
      +                                "maximum": 2500,
      +                                "minimum": 10,
      +                                "type": "integer"
      +                              },
      +                              "metric": {
      +                                "description": "current (default) = instantaneous value; average = average over the step",
      +                                "enum": [
      +                                  "current",
      +                                  "average"
      +                                ],
      +                                "type": "string"
      +                              },
      +                              "min_watts": {
      +                                "maximum": 2500,
      +                                "minimum": 10,
      +                                "type": "integer"
      +                              }
      +                            },
      +                            "required": [
      +                              "kind",
      +                              "min_watts",
      +                              "max_watts"
      +                            ],
      +                            "type": "object"
      +                          },
      +                          {
      +                            "additionalProperties": false,
      +                            "properties": {
      +                              "kind": {
      +                                "const": "power_threshold",
      +                                "type": "string"
      +                              },
      +                              "metric": {
      +                                "description": "current (default) = instantaneous value; average = average over the step",
      +                                "enum": [
      +                                  "current",
      +                                  "average"
      +                                ],
      +                                "type": "string"
      +                              },
      +                              "watts": {
      +                                "maximum": 2500,
      +                                "minimum": 10,
      +                                "type": "integer"
      +                              }
      +                            },
      +                            "required": [
      +                              "kind",
      +                              "watts"
      +                            ],
      +                            "type": "object"
      +                          },
      +                          {
      +                            "additionalProperties": false,
      +                            "properties": {
      +                              "kind": {
      +                                "const": "power_zone",
      +                                "type": "string"
      +                              },
      +                              "zone": {
      +                                "description": "The power zone configured on the user's Apple Watch (1-5), cycling only",
      +                                "maximum": 5,
      +                                "minimum": 1,
      +                                "type": "integer"
      +                              }
      +                            },
      +                            "required": [
      +                              "kind",
      +                              "zone"
      +                            ],
      +                            "type": "object"
      +                          }
      +                        ]
      +                      },
      +                      "goal": {
      +                        "oneOf": [
      +                          {
      +                            "additionalProperties": false,
      +                            "properties": {
      +                              "kind": {
      +                                "const": "open",
      +                                "type": "string"
      +                              }
      +                            },
      +                            "required": [
      +                              "kind"
      +                            ],
      +                            "type": "object"
      +                          },
      +                          {
      +                            "additionalProperties": false,
      +                            "properties": {
      +                              "kind": {
      +                                "const": "time",
      +                                "type": "string"
      +                              },
      +                              "seconds": {
      +                                "maximum": 21600,
      +                                "minimum": 1,
      +                                "type": "integer"
      +                              }
      +                            },
      +                            "required": [
      +                              "kind",
      +                              "seconds"
      +                            ],
      +                            "type": "object"
      +                          },
      +                          {
      +                            "additionalProperties": false,
      +                            "properties": {
      +                              "kind": {
      +                                "const": "distance",
      +                                "type": "string"
      +                              },
      +                              "meters": {
      +                                "maximum": 100000,
      +                                "minimum": 1,
      +                                "type": "number"
      +                              }
      +                            },
      +                            "required": [
      +                              "kind",
      +                              "meters"
      +                            ],
      +                            "type": "object"
      +                          },
      +                          {
      +                            "additionalProperties": false,
      +                            "properties": {
      +                              "kind": {
      +                                "const": "pool_distance_with_time",
      +                                "type": "string"
      +                              },
      +                              "meters": {
      +                                "maximum": 100000,
      +                                "minimum": 1,
      +                                "type": "number"
      +                              },
      +                              "seconds": {
      +                                "maximum": 21600,
      +                                "minimum": 1,
      +                                "type": "integer"
      +                              }
      +                            },
      +                            "required": [
      +                              "kind",
      +                              "meters",
      +                              "seconds"
      +                            ],
      +                            "type": "object"
      +                          }
      +                        ]
      +                      },
      +                      "heart_rate_bpm": {
      +                        "additionalProperties": false,
      +                        "description": "Legacy heart-rate window; same as alert heart_rate_range. Do not send both.",
      +                        "properties": {
      +                          "max": {
      +                            "maximum": 240,
      +                            "minimum": 30,
      +                            "type": "integer"
      +                          },
      +                          "min": {
      +                            "maximum": 240,
      +                            "minimum": 30,
      +                            "type": "integer"
      +                          }
      +                        },
      +                        "required": [
      +                          "min",
      +                          "max"
      +                        ],
      +                        "type": "object"
      +                      },
      +                      "name": {
      +                        "maxLength": 60,
      +                        "minLength": 1,
      +                        "type": "string"
      +                      }
      +                    },
      +                    "required": [
      +                      "name",
      +                      "goal"
      +                    ],
      +                    "type": "object"
      +                  }
      +                },
      +                "required": [
      +                  "purpose",
      +                  "step"
      +                ],
      +                "type": "object"
      +              },
      +              "maxItems": 20,
      +              "minItems": 1,
      +              "type": "array"
      +            }
      +          },
      +          "required": [
      +            "iterations",
      +            "steps"
      +          ],
      +          "type": "object"
      +        },
      +        "maxItems": 20,
      +        "minItems": 1,
      +        "type": "array"
      +      },
      +      "cooldown": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "alert": {
      +            "description": "At most one alert per step (an Apple Watch limit). Prefer this over heart_rate_bpm.",
      +            "oneOf": [
      +              {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "kind": {
      +                    "const": "heart_rate_range",
      +                    "type": "string"
      +                  },
      +                  "max_bpm": {
      +                    "maximum": 240,
      +                    "minimum": 30,
      +                    "type": "integer"
      +                  },
      +                  "min_bpm": {
      +                    "maximum": 240,
      +                    "minimum": 30,
      +                    "type": "integer"
      +                  }
      +                },
      +                "required": [
      +                  "kind",
      +                  "min_bpm",
      +                  "max_bpm"
      +                ],
      +                "type": "object"
      +              },
      +              {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "kind": {
      +                    "const": "heart_rate_zone",
      +                    "type": "string"
      +                  },
      +                  "zone": {
      +                    "description": "The heart-rate zone configured on the user's Apple Watch (1-5)",
      +                    "maximum": 5,
      +                    "minimum": 1,
      +                    "type": "integer"
      +                  }
      +                },
      +                "required": [
      +                  "kind",
      +                  "zone"
      +                ],
      +                "type": "object"
      +              },
      +              {
      +                "additionalProperties": false,
      +                "description": "Pace window in seconds per km or mile, e.g. 5:00-5:30/km = fastest_seconds 300, slowest_seconds 330, per km",
      +                "properties": {
      +                  "fastest_seconds": {
      +                    "maximum": 1800,
      +                    "minimum": 120,
      +                    "type": "integer"
      +                  },
      +                  "kind": {
      +                    "const": "pace_range",
      +                    "type": "string"
      +                  },
      +                  "metric": {
      +                    "description": "current (default) = instantaneous value; average = average over the step",
      +                    "enum": [
      +                      "current",
      +                      "average"
      +                    ],
      +                    "type": "string"
      +                  },
      +                  "per": {
      +                    "enum": [
      +                      "km",
      +                      "mi"
      +                    ],
      +                    "type": "string"
      +                  },
      +                  "slowest_seconds": {
      +                    "maximum": 1800,
      +                    "minimum": 120,
      +                    "type": "integer"
      +                  }
      +                },
      +                "required": [
      +                  "kind",
      +                  "fastest_seconds",
      +                  "slowest_seconds",
      +                  "per"
      +                ],
      +                "type": "object"
      +              },
      +              {
      +                "additionalProperties": false,
      +                "description": "A single target pace in seconds per km or mile instead of a window",
      +                "properties": {
      +                  "kind": {
      +                    "const": "pace_threshold",
      +                    "type": "string"
      +                  },
      +                  "metric": {
      +                    "description": "current (default) = instantaneous value; average = average over the step",
      +                    "enum": [
      +                      "current",
      +                      "average"
      +                    ],
      +                    "type": "string"
      +                  },
      +                  "per": {
      +                    "enum": [
      +                      "km",
      +                      "mi"
      +                    ],
      +                    "type": "string"
      +                  },
      +                  "seconds": {
      +                    "maximum": 1800,
      +                    "minimum": 120,
      +                    "type": "integer"
      +                  }
      +                },
      +                "required": [
      +                  "kind",
      +                  "seconds",
      +                  "per"
      +                ],
      +                "type": "object"
      +              },
      +              {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "kind": {
      +                    "const": "speed_range",
      +                    "type": "string"
      +                  },
      +                  "max": {
      +                    "maximum": 100,
      +                    "minimum": 1,
      +                    "type": "number"
      +                  },
      +                  "metric": {
      +                    "description": "current (default) = instantaneous value; average = average over the step",
      +                    "enum": [
      +                      "current",
      +                      "average"
      +                    ],
      +                    "type": "string"
      +                  },
      +                  "min": {
      +                    "maximum": 100,
      +                    "minimum": 1,
      +                    "type": "number"
      +                  },
      +                  "unit": {
      +                    "enum": [
      +                      "kph",
      +                      "mph"
      +                    ],
      +                    "type": "string"
      +                  }
      +                },
      +                "required": [
      +                  "kind",
      +                  "min",
      +                  "max",
      +                  "unit"
      +                ],
      +                "type": "object"
      +              },
      +              {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "kind": {
      +                    "const": "speed_threshold",
      +                    "type": "string"
      +                  },
      +                  "metric": {
      +                    "description": "current (default) = instantaneous value; average = average over the step",
      +                    "enum": [
      +                      "current",
      +                      "average"
      +                    ],
      +                    "type": "string"
      +                  },
      +                  "unit": {
      +                    "enum": [
      +                      "kph",
      +                      "mph"
      +                    ],
      +                    "type": "string"
      +                  },
      +                  "value": {
      +                    "maximum": 100,
      +                    "minimum": 1,
      +                    "type": "number"
      +                  }
      +                },
      +                "required": [
      +                  "kind",
      +                  "value",
      +                  "unit"
      +                ],
      +                "type": "object"
      +              },
      +              {
      +                "additionalProperties": false,
      +                "description": "Steps per minute when running, revolutions per minute when cycling",
      +                "properties": {
      +                  "kind": {
      +                    "const": "cadence_range",
      +                    "type": "string"
      +                  },
      +                  "max": {
      +                    "maximum": 250,
      +                    "minimum": 20,
      +                    "type": "integer"
      +                  },
      +                  "min": {
      +                    "maximum": 250,
      +                    "minimum": 20,
      +                    "type": "integer"
      +                  }
      +                },
      +                "required": [
      +                  "kind",
      +                  "min",
      +                  "max"
      +                ],
      +                "type": "object"
      +              },
      +              {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "kind": {
      +                    "const": "cadence_threshold",
      +                    "type": "string"
      +                  },
      +                  "value": {
      +                    "maximum": 250,
      +                    "minimum": 20,
      +                    "type": "integer"
      +                  }
      +                },
      +                "required": [
      +                  "kind",
      +                  "value"
      +                ],
      +                "type": "object"
      +              },
      +              {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "kind": {
      +                    "const": "power_range",
      +                    "type": "string"
      +                  },
      +                  "max_watts": {
      +                    "maximum": 2500,
      +                    "minimum": 10,
      +                    "type": "integer"
      +                  },
      +                  "metric": {
      +                    "description": "current (default) = instantaneous value; average = average over the step",
      +                    "enum": [
      +                      "current",
      +                      "average"
      +                    ],
      +                    "type": "string"
      +                  },
      +                  "min_watts": {
      +                    "maximum": 2500,
      +                    "minimum": 10,
      +                    "type": "integer"
      +                  }
      +                },
      +                "required": [
      +                  "kind",
      +                  "min_watts",
      +                  "max_watts"
      +                ],
      +                "type": "object"
      +              },
      +              {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "kind": {
      +                    "const": "power_threshold",
      +                    "type": "string"
      +                  },
      +                  "metric": {
      +                    "description": "current (default) = instantaneous value; average = average over the step",
      +                    "enum": [
      +                      "current",
      +                      "average"
      +                    ],
      +                    "type": "string"
      +                  },
      +                  "watts": {
      +                    "maximum": 2500,
      +                    "minimum": 10,
      +                    "type": "integer"
      +                  }
      +                },
      +                "required": [
      +                  "kind",
      +                  "watts"
      +                ],
      +                "type": "object"
      +              },
      +              {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "kind": {
      +                    "const": "power_zone",
      +                    "type": "string"
      +                  },
      +                  "zone": {
      +                    "description": "The power zone configured on the user's Apple Watch (1-5), cycling only",
      +                    "maximum": 5,
      +                    "minimum": 1,
      +                    "type": "integer"
      +                  }
      +                },
      +                "required": [
      +                  "kind",
      +                  "zone"
      +                ],
      +                "type": "object"
      +              }
      +            ]
      +          },
      +          "goal": {
      +            "oneOf": [
      +              {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "kind": {
      +                    "const": "open",
      +                    "type": "string"
      +                  }
      +                },
      +                "required": [
      +                  "kind"
      +                ],
      +                "type": "object"
      +              },
      +              {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "kind": {
      +                    "const": "time",
      +                    "type": "string"
      +                  },
      +                  "seconds": {
      +                    "maximum": 21600,
      +                    "minimum": 1,
      +                    "type": "integer"
      +                  }
      +                },
      +                "required": [
      +                  "kind",
      +                  "seconds"
      +                ],
      +                "type": "object"
      +              },
      +              {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "kind": {
      +                    "const": "distance",
      +                    "type": "string"
      +                  },
      +                  "meters": {
      +                    "maximum": 100000,
      +                    "minimum": 1,
      +                    "type": "number"
      +                  }
      +                },
      +                "required": [
      +                  "kind",
      +                  "meters"
      +                ],
      +                "type": "object"
      +              },
      +              {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "kind": {
      +                    "const": "pool_distance_with_time",
      +                    "type": "string"
      +                  },
      +                  "meters": {
      +                    "maximum": 100000,
      +                    "minimum": 1,
      +                    "type": "number"
      +                  },
      +                  "seconds": {
      +                    "maximum": 21600,
      +                    "minimum": 1,
      +                    "type": "integer"
      +                  }
      +                },
      +                "required": [
      +                  "kind",
      +                  "meters",
      +                  "seconds"
      +                ],
      +                "type": "object"
      +              }
      +            ]
      +          },
      +          "heart_rate_bpm": {
      +            "additionalProperties": false,
      +            "description": "Legacy heart-rate window; same as alert heart_rate_range. Do not send both.",
      +            "properties": {
      +              "max": {
      +                "maximum": 240,
      +                "minimum": 30,
      +                "type": "integer"
      +              },
      +              "min": {
      +                "maximum": 240,
      +                "minimum": 30,
      +                "type": "integer"
      +              }
      +            },
      +            "required": [
      +              "min",
      +              "max"
      +            ],
      +            "type": "object"
      +          },
      +          "name": {
      +            "maxLength": 60,
      +            "minLength": 1,
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "name",
      +          "goal"
      +        ],
      +        "type": "object"
      +      },
      +      "distance_unit": {
      +        "description": "Swimming only: the unit of the user's pool. Use yd for a yard pool (e.g. 25 yd = pool_length_m 22.86). Goal values stay in meters (yards x 0.9144); the app converts them back so the Watch shows yards and does not reconfigure the workout. Omitted: inferred as yd when pool_length_m is a whole number of yards, else m.",
      +        "enum": [
      +          "m",
      +          "yd"
      +        ],
      +        "type": "string"
      +      },
      +      "location": {
      +        "enum": [
      +          "indoor",
      +          "outdoor"
      +        ],
      +        "type": "string"
      +      },
      +      "pool_length_m": {
      +        "description": "Pool length for swimming, in meters. Shown for review; configure this length on Apple Watch when starting (WorkoutKit does not set it).",
      +        "exclusiveMinimum": 0,
      +        "maximum": 150,
      +        "type": "number"
      +      },
      +      "title": {
      +        "maxLength": 60,
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "type": {
      +        "const": "custom",
      +        "description": "Omit or 'custom': warmup, repeatable blocks, cooldown",
      +        "type": "string"
      +      },
      +      "warmup": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "alert": {
      +            "description": "At most one alert per step (an Apple Watch limit). Prefer this over heart_rate_bpm.",
      +            "oneOf": [
      +              {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "kind": {
      +                    "const": "heart_rate_range",
      +                    "type": "string"
      +                  },
      +                  "max_bpm": {
      +                    "maximum": 240,
      +                    "minimum": 30,
      +                    "type": "integer"
      +                  },
      +                  "min_bpm": {
      +                    "maximum": 240,
      +                    "minimum": 30,
      +                    "type": "integer"
      +                  }
      +                },
      +                "required": [
      +                  "kind",
      +                  "min_bpm",
      +                  "max_bpm"
      +                ],
      +                "type": "object"
      +              },
      +              {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "kind": {
      +                    "const": "heart_rate_zone",
      +                    "type": "string"
      +                  },
      +                  "zone": {
      +                    "description": "The heart-rate zone configured on the user's Apple Watch (1-5)",
      +                    "maximum": 5,
      +                    "minimum": 1,
      +                    "type": "integer"
      +                  }
      +                },
      +                "required": [
      +                  "kind",
      +                  "zone"
      +                ],
      +                "type": "object"
      +              },
      +              {
      +                "additionalProperties": false,
      +                "description": "Pace window in seconds per km or mile, e.g. 5:00-5:30/km = fastest_seconds 300, slowest_seconds 330, per km",
      +                "properties": {
      +                  "fastest_seconds": {
      +                    "maximum": 1800,
      +                    "minimum": 120,
      +                    "type": "integer"
      +                  },
      +                  "kind": {
      +                    "const": "pace_range",
      +                    "type": "string"
      +                  },
      +                  "metric": {
      +                    "description": "current (default) = instantaneous value; average = average over the step",
      +                    "enum": [
      +                      "current",
      +                      "average"
      +                    ],
      +                    "type": "string"
      +                  },
      +                  "per": {
      +                    "enum": [
      +                      "km",
      +                      "mi"
      +                    ],
      +                    "type": "string"
      +                  },
      +                  "slowest_seconds": {
      +                    "maximum": 1800,
      +                    "minimum": 120,
      +                    "type": "integer"
      +                  }
      +                },
      +                "required": [
      +                  "kind",
      +                  "fastest_seconds",
      +                  "slowest_seconds",
      +                  "per"
      +                ],
      +                "type": "object"
      +              },
      +              {
      +                "additionalProperties": false,
      +                "description": "A single target pace in seconds per km or mile instead of a window",
      +                "properties": {
      +                  "kind": {
      +                    "const": "pace_threshold",
      +                    "type": "string"
      +                  },
      +                  "metric": {
      +                    "description": "current (default) = instantaneous value; average = average over the step",
      +                    "enum": [
      +                      "current",
      +                      "average"
      +                    ],
      +                    "type": "string"
      +                  },
      +                  "per": {
      +                    "enum": [
      +                      "km",
      +                      "mi"
      +                    ],
      +                    "type": "string"
      +                  },
      +                  "seconds": {
      +                    "maximum": 1800,
      +                    "minimum": 120,
      +                    "type": "integer"
      +                  }
      +                },
      +                "required": [
      +                  "kind",
      +                  "seconds",
      +                  "per"
      +                ],
      +                "type": "object"
      +              },
      +              {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "kind": {
      +                    "const": "speed_range",
      +                    "type": "string"
      +                  },
      +                  "max": {
      +                    "maximum": 100,
      +                    "minimum": 1,
      +                    "type": "number"
      +                  },
      +                  "metric": {
      +                    "description": "current (default) = instantaneous value; average = average over the step",
      +                    "enum": [
      +                      "current",
      +                      "average"
      +                    ],
      +                    "type": "string"
      +                  },
      +                  "min": {
      +                    "maximum": 100,
      +                    "minimum": 1,
      +                    "type": "number"
      +                  },
      +                  "unit": {
      +                    "enum": [
      +                      "kph",
      +                      "mph"
      +                    ],
      +                    "type": "string"
      +                  }
      +                },
      +                "required": [
      +                  "kind",
      +                  "min",
      +                  "max",
      +                  "unit"
      +                ],
      +                "type": "object"
      +              },
      +              {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "kind": {
      +                    "const": "speed_threshold",
      +                    "type": "string"
      +                  },
      +                  "metric": {
      +                    "description": "current (default) = instantaneous value; average = average over the step",
      +                    "enum": [
      +                      "current",
      +                      "average"
      +                    ],
      +                    "type": "string"
      +                  },
      +                  "unit": {
      +                    "enum": [
      +                      "kph",
      +                      "mph"
      +                    ],
      +                    "type": "string"
      +                  },
      +                  "value": {
      +                    "maximum": 100,
      +                    "minimum": 1,
      +                    "type": "number"
      +                  }
      +                },
      +                "required": [
      +                  "kind",
      +                  "value",
      +                  "unit"
      +                ],
      +                "type": "object"
      +              },
      +              {
      +                "additionalProperties": false,
      +                "description": "Steps per minute when running, revolutions per minute when cycling",
      +                "properties": {
      +                  "kind": {
      +                    "const": "cadence_range",
      +                    "type": "string"
      +                  },
      +                  "max": {
      +                    "maximum": 250,
      +                    "minimum": 20,
      +                    "type": "integer"
      +                  },
      +                  "min": {
      +                    "maximum": 250,
      +                    "minimum": 20,
      +                    "type": "integer"
      +                  }
      +                },
      +                "required": [
      +                  "kind",
      +                  "min",
      +                  "max"
      +                ],
      +                "type": "object"
      +              },
      +              {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "kind": {
      +                    "const": "cadence_threshold",
      +                    "type": "string"
      +                  },
      +                  "value": {
      +                    "maximum": 250,
      +                    "minimum": 20,
      +                    "type": "integer"
      +                  }
      +                },
      +                "required": [
      +                  "kind",
      +                  "value"
      +                ],
      +                "type": "object"
      +              },
      +              {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "kind": {
      +                    "const": "power_range",
      +                    "type": "string"
      +                  },
      +                  "max_watts": {
      +                    "maximum": 2500,
      +                    "minimum": 10,
      +                    "type": "integer"
      +                  },
      +                  "metric": {
      +                    "description": "current (default) = instantaneous value; average = average over the step",
      +                    "enum": [
      +                      "current",
      +                      "average"
      +                    ],
      +                    "type": "string"
      +                  },
      +                  "min_watts": {
      +                    "maximum": 2500,
      +                    "minimum": 10,
      +                    "type": "integer"
      +                  }
      +                },
      +                "required": [
      +                  "kind",
      +                  "min_watts",
      +                  "max_watts"
      +                ],
      +                "type": "object"
      +              },
      +              {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "kind": {
      +                    "const": "power_threshold",
      +                    "type": "string"
      +                  },
      +                  "metric": {
      +                    "description": "current (default) = instantaneous value; average = average over the step",
      +                    "enum": [
      +                      "current",
      +                      "average"
      +                    ],
      +                    "type": "string"
      +                  },
      +                  "watts": {
      +                    "maximum": 2500,
      +                    "minimum": 10,
      +                    "type": "integer"
      +                  }
      +                },
      +                "required": [
      +                  "kind",
      +                  "watts"
      +                ],
      +                "type": "object"
      +              },
      +              {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "kind": {
      +                    "const": "power_zone",
      +                    "type": "string"
      +                  },
      +                  "zone": {
      +                    "description": "The power zone configured on the user's Apple Watch (1-5), cycling only",
      +                    "maximum": 5,
      +                    "minimum": 1,
      +                    "type": "integer"
      +                  }
      +                },
      +                "required": [
      +                  "kind",
      +                  "zone"
      +                ],
      +                "type": "object"
      +              }
      +            ]
      +          },
      +          "goal": {
      +            "oneOf": [
      +              {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "kind": {
      +                    "const": "open",
      +                    "type": "string"
      +                  }
      +                },
      +                "required": [
      +                  "kind"
      +                ],
      +                "type": "object"
      +              },
      +              {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "kind": {
      +                    "const": "time",
      +                    "type": "string"
      +                  },
      +                  "seconds": {
      +                    "maximum": 21600,
      +                    "minimum": 1,
      +                    "type": "integer"
      +                  }
      +                },
      +                "required": [
      +                  "kind",
      +                  "seconds"
      +                ],
      +                "type": "object"
      +              },
      +              {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "kind": {
      +                    "const": "distance",
      +                    "type": "string"
      +                  },
      +                  "meters": {
      +                    "maximum": 100000,
      +                    "minimum": 1,
      +                    "type": "number"
      +                  }
      +                },
      +                "required": [
      +                  "kind",
      +                  "meters"
      +                ],
      +                "type": "object"
      +              },
      +              {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "kind": {
      +                    "const": "pool_distance_with_time",
      +                    "type": "string"
      +                  },
      +                  "meters": {
      +                    "maximum": 100000,
      +                    "minimum": 1,
      +                    "type": "number"
      +                  },
      +                  "seconds": {
      +                    "maximum": 21600,
      +                    "minimum": 1,
      +                    "type": "integer"
      +                  }
      +                },
      +                "required": [
      +                  "kind",
      +                  "meters",
      +                  "seconds"
      +                ],
      +                "type": "object"
      +              }
      +            ]
      +          },
      +          "heart_rate_bpm": {
      +            "additionalProperties": false,
      +            "description": "Legacy heart-rate window; same as alert heart_rate_range. Do not send both.",
      +            "properties": {
      +              "max": {
      +                "maximum": 240,
      +                "minimum": 30,
      +                "type": "integer"
      +              },
      +              "min": {
      +                "maximum": 240,
      +                "minimum": 30,
      +                "type": "integer"
      +              }
      +            },
      +            "required": [
      +              "min",
      +              "max"
      +            ],
      +            "type": "object"
      +          },
      +          "name": {
      +            "maxLength": 60,
      +            "minLength": 1,
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "name",
      +          "goal"
      +        ],
      +        "type": "object"
      +      }
      +    },
      +    "required": [
      +      "title",
      +      "activity",
      +      "location",
      +      "blocks"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "description": "Pace workout: cover meters in seconds; the Watch shows whether the user is ahead of or behind that even pace",
      +    "properties": {
      +      "activity": {
      +        "enum": [
      +          "running",
      +          "cycling",
      +          "wheelchair_run"
      +        ],
      +        "type": "string"
      +      },
      +      "location": {
      +        "enum": [
      +          "indoor",
      +          "outdoor"
      +        ],
      +        "type": "string"
      +      },
      +      "meters": {
      +        "maximum": 100000,
      +        "minimum": 100,
      +        "type": "number"
      +      },
      +      "seconds": {
      +        "maximum": 21600,
      +        "minimum": 60,
      +        "type": "integer"
      +      },
      +      "title": {
      +        "maxLength": 60,
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "type": {
      +        "const": "pacer",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "type",
      +      "title",
      +      "activity",
      +      "location",
      +      "meters",
      +      "seconds"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "description": "One goal for the whole workout. The only way to set an active-calorie goal (energy).",
      +    "properties": {
      +      "activity": {
      +        "enum": [
      +          "running",
      +          "cycling",
      +          "walking",
      +          "strength",
      +          "functional_strength",
      +          "hiit",
      +          "swimming",
      +          "hiking",
      +          "rowing",
      +          "elliptical",
      +          "stair_climbing",
      +          "cross_training",
      +          "core_training",
      +          "mixed_cardio",
      +          "dance",
      +          "yoga",
      +          "pilates",
      +          "jump_rope",
      +          "kickboxing",
      +          "wheelchair_run",
      +          "wheelchair_walk",
      +          "other"
      +        ],
      +        "type": "string"
      +      },
      +      "goal": {
      +        "oneOf": [
      +          {
      +            "additionalProperties": false,
      +            "properties": {
      +              "kind": {
      +                "const": "open",
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "kind"
      +            ],
      +            "type": "object"
      +          },
      +          {
      +            "additionalProperties": false,
      +            "properties": {
      +              "kind": {
      +                "const": "time",
      +                "type": "string"
      +              },
      +              "seconds": {
      +                "maximum": 21600,
      +                "minimum": 1,
      +                "type": "integer"
      +              }
      +            },
      +            "required": [
      +              "kind",
      +              "seconds"
      +            ],
      +            "type": "object"
      +          },
      +          {
      +            "additionalProperties": false,
      +            "properties": {
      +              "kind": {
      +                "const": "distance",
      +                "type": "string"
      +              },
      +              "meters": {
      +                "maximum": 100000,
      +                "minimum": 1,
      +                "type": "number"
      +              }
      +            },
      +            "required": [
      +              "kind",
      +              "meters"
      +            ],
      +            "type": "object"
      +          },
      +          {
      +            "additionalProperties": false,
      +            "properties": {
      +              "kilocalories": {
      +                "maximum": 5000,
      +                "minimum": 10,
      +                "type": "integer"
      +              },
      +              "kind": {
      +                "const": "energy",
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "kind",
      +              "kilocalories"
      +            ],
      +            "type": "object"
      +          }
      +        ]
      +      },
      +      "location": {
      +        "enum": [
      +          "indoor",
      +          "outdoor"
      +        ],
      +        "type": "string"
      +      },
      +      "title": {
      +        "maxLength": 60,
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "type": {
      +        "const": "single_goal",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "type",
      +      "title",
      +      "activity",
      +      "location",
      +      "goal"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "description": "Triathlon/duathlon: the Watch switches sport leg by leg (swim-bike-run, run-bike-run...). No per-leg goals.",
      +    "properties": {
      +      "legs": {
      +        "items": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "activity": {
      +              "enum": [
      +                "swimming",
      +                "cycling",
      +                "running"
      +              ],
      +              "type": "string"
      +            },
      +            "location": {
      +              "description": "swimming: indoor = pool, outdoor = open water",
      +              "enum": [
      +                "indoor",
      +                "outdoor"
      +              ],
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "activity",
      +            "location"
      +          ],
      +          "type": "object"
      +        },
      +        "maxItems": 10,
      +        "minItems": 2,
      +        "type": "array"
      +      },
      +      "title": {
      +        "maxLength": 60,
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "type": {
      +        "const": "multisport",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "type",
      +      "title",
      +      "legs"
      +    ],
      +    "type": "object"
      +  }
      +]
    • removedOutput schema / properties / plan / properties / definition / properties
      Removed value: -{
      -  "activity": {
      -    "enum": [
      -      "running",
      -      "cycling",
      -      "walking",
      -      "strength",
      -      "functional_strength",
      -      "hiit",
      -      "swimming"
      -    ],
      -    "type": "string"
      -  },
      -  "blocks": {
      -    "items": {
      -      "additionalProperties": false,
      -      "properties": {
      -        "iterations": {
      -          "maximum": 30,
      -          "minimum": 1,
      -          "type": "integer"
      -        },
      -        "steps": {
      -          "items": {
      -            "additionalProperties": false,
      -            "properties": {
      -              "purpose": {
      -                "enum": [
      -                  "work",
      -                  "recovery"
      -                ],
      -                "type": "string"
      -              },
      -              "step": {
      -                "additionalProperties": false,
      -                "properties": {
      -                  "goal": {
      -                    "oneOf": [
      -                      {
      -                        "additionalProperties": false,
      -                        "properties": {
      -                          "kind": {
      -                            "const": "open",
      -                            "type": "string"
      -                          }
      -                        },
      -                        "required": [
      -                          "kind"
      -                        ],
      -                        "type": "object"
      -                      },
      -                      {
      -                        "additionalProperties": false,
      -                        "properties": {
      -                          "kind": {
      -                            "const": "time",
      -                            "type": "string"
      -                          },
      -                          "seconds": {
      -                            "maximum": 21600,
      -                            "minimum": 1,
      -                            "type": "integer"
      -                          }
      -                        },
      -                        "required": [
      -                          "kind",
      -                          "seconds"
      -                        ],
      -                        "type": "object"
      -                      },
      -                      {
      -                        "additionalProperties": false,
      -                        "properties": {
      -                          "kind": {
      -                            "const": "distance",
      -                            "type": "string"
      -                          },
      -                          "meters": {
      -                            "maximum": 100000,
      -                            "minimum": 1,
      -                            "type": "number"
      -                          }
      -                        },
      -                        "required": [
      -                          "kind",
      -                          "meters"
      -                        ],
      -                        "type": "object"
      -                      },
      -                      {
      -                        "additionalProperties": false,
      -                        "properties": {
      -                          "kind": {
      -                            "const": "pool_distance_with_time",
      -                            "type": "string"
      -                          },
      -                          "meters": {
      -                            "maximum": 100000,
      -                            "minimum": 1,
      -                            "type": "number"
      -                          },
      -                          "seconds": {
      -                            "maximum": 21600,
      -                            "minimum": 1,
      -                            "type": "integer"
      -                          }
      -                        },
      -                        "required": [
      -                          "kind",
      -                          "meters",
      -                          "seconds"
      -                        ],
      -                        "type": "object"
      -                      }
      -                    ]
      -                  },
      -                  "heart_rate_bpm": {
      -                    "additionalProperties": false,
      -                    "properties": {
      -                      "max": {
      -                        "maximum": 240,
      -                        "minimum": 30,
      -                        "type": "integer"
      -                      },
      -                      "min": {
      -                        "maximum": 240,
      -                        "minimum": 30,
      -                        "type": "integer"
      -                      }
      -                    },
      -                    "required": [
      -                      "min",
      -                      "max"
      -                    ],
      -                    "type": "object"
      -                  },
      -                  "name": {
      -                    "maxLength": 60,
      -                    "minLength": 1,
      -                    "type": "string"
      -                  }
      -                },
      -                "required": [
      -                  "name",
      -                  "goal"
      -                ],
      -                "type": "object"
      -              }
      -            },
      -            "required": [
      -              "purpose",
      -              "step"
      -            ],
      -            "type": "object"
      -          },
      -          "maxItems": 20,
      -          "minItems": 1,
      -          "type": "array"
      -        }
      -      },
      -      "required": [
      -        "iterations",
      -        "steps"
      -      ],
      -      "type": "object"
      -    },
      -    "maxItems": 20,
      -    "minItems": 1,
      -    "type": "array"
      -  },
      -  "cooldown": {
      -    "additionalProperties": false,
      -    "properties": {
      -      "goal": {
      -        "oneOf": [
      -          {
      -            "additionalProperties": false,
      -            "properties": {
      -              "kind": {
      -                "const": "open",
      -                "type": "string"
      -              }
      -            },
      -            "required": [
      -              "kind"
      -            ],
      -            "type": "object"
      -          },
      -          {
      -            "additionalProperties": false,
      -            "properties": {
      -              "kind": {
      -                "const": "time",
      -                "type": "string"
      -              },
      -              "seconds": {
      -                "maximum": 21600,
      -                "minimum": 1,
      -                "type": "integer"
      -              }
      -            },
      -            "required": [
      -              "kind",
      -              "seconds"
      -            ],
      -            "type": "object"
      -          },
      -          {
      -            "additionalProperties": false,
      -            "properties": {
      -              "kind": {
      -                "const": "distance",
      -                "type": "string"
      -              },
      -              "meters": {
      -                "maximum": 100000,
      -                "minimum": 1,
      -                "type": "number"
      -              }
      -            },
      -            "required": [
      -              "kind",
      -              "meters"
      -            ],
      -            "type": "object"
      -          },
      -          {
      -            "additionalProperties": false,
      -            "properties": {
      -              "kind": {
      -                "const": "pool_distance_with_time",
      -                "type": "string"
      -              },
      -              "meters": {
      -                "maximum": 100000,
      -                "minimum": 1,
      -                "type": "number"
      -              },
      -              "seconds": {
      -                "maximum": 21600,
      -                "minimum": 1,
      -                "type": "integer"
      -              }
      -            },
      -            "required": [
      -              "kind",
      -              "meters",
      -              "seconds"
      -            ],
      -            "type": "object"
      -          }
      -        ]
      -      },
      -      "heart_rate_bpm": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "max": {
      -            "maximum": 240,
      -            "minimum": 30,
      -            "type": "integer"
      -          },
      -          "min": {
      -            "maximum": 240,
      -            "minimum": 30,
      -            "type": "integer"
      -          }
      -        },
      -        "required": [
      -          "min",
      -          "max"
      -        ],
      -        "type": "object"
      -      },
      -      "name": {
      -        "maxLength": 60,
      -        "minLength": 1,
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "name",
      -      "goal"
      -    ],
      -    "type": "object"
      -  },
      -  "distance_unit": {
      -    "description": "Swimming only: the unit of the user's pool. Use yd for a yard pool (e.g. 25 yd = pool_length_m 22.86). Goal values stay in meters (yards x 0.9144); the app converts them back so the Watch shows yards and does not reconfigure the workout. Omitted: inferred as yd when pool_length_m is a whole number of yards, else m.",
      -    "enum": [
      -      "m",
      -      "yd"
      -    ],
      -    "type": "string"
      -  },
      -  "location": {
      -    "enum": [
      -      "indoor",
      -      "outdoor"
      -    ],
      -    "type": "string"
      -  },
      -  "pool_length_m": {
      -    "description": "Pool length for swimming, in meters. Shown for review; configure this length on Apple Watch when starting (WorkoutKit does not set it).",
      -    "exclusiveMinimum": 0,
      -    "maximum": 150,
      -    "type": "number"
      -  },
      -  "title": {
      -    "maxLength": 60,
      -    "minLength": 1,
      -    "type": "string"
      -  },
      -  "warmup": {
      -    "additionalProperties": false,
      -    "properties": {
      -      "goal": {
      -        "oneOf": [
      -          {
      -            "additionalProperties": false,
      -            "properties": {
      -              "kind": {
      -                "const": "open",
      -                "type": "string"
      -              }
      -            },
      -            "required": [
      -              "kind"
      -            ],
      -            "type": "object"
      -          },
      -          {
      -            "additionalProperties": false,
      -            "properties": {
      -              "kind": {
      -                "const": "time",
      -                "type": "string"
      -              },
      -              "seconds": {
      -                "maximum": 21600,
      -                "minimum": 1,
      -                "type": "integer"
      -              }
      -            },
      -            "required": [
      -              "kind",
      -              "seconds"
      -            ],
      -            "type": "object"
      -          },
      -          {
      -            "additionalProperties": false,
      -            "properties": {
      -              "kind": {
      -                "const": "distance",
      -                "type": "string"
      -              },
      -              "meters": {
      -                "maximum": 100000,
      -                "minimum": 1,
      -                "type": "number"
      -              }
      -            },
      -            "required": [
      -              "kind",
      -              "meters"
      -            ],
      -            "type": "object"
      -          },
      -          {
      -            "additionalProperties": false,
      -            "properties": {
      -              "kind": {
      -                "const": "pool_distance_with_time",
      -                "type": "string"
      -              },
      -              "meters": {
      -                "maximum": 100000,
      -                "minimum": 1,
      -                "type": "number"
      -              },
      -              "seconds": {
      -                "maximum": 21600,
      -                "minimum": 1,
      -                "type": "integer"
      -              }
      -            },
      -            "required": [
      -              "kind",
      -              "meters",
      -              "seconds"
      -            ],
      -            "type": "object"
      -          }
      -        ]
      -      },
      -      "heart_rate_bpm": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "max": {
      -            "maximum": 240,
      -            "minimum": 30,
      -            "type": "integer"
      -          },
      -          "min": {
      -            "maximum": 240,
      -            "minimum": 30,
      -            "type": "integer"
      -          }
      -        },
      -        "required": [
      -          "min",
      -          "max"
      -        ],
      -        "type": "object"
      -      },
      -      "name": {
      -        "maxLength": 60,
      -        "minLength": 1,
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "name",
      -      "goal"
      -    ],
      -    "type": "object"
      -  }
      -}
    • removedOutput schema / properties / plan / properties / definition / required
      Removed value: -[
      -  "title",
      -  "activity",
      -  "location",
      -  "blocks"
      -]
    • removedOutput schema / properties / plan / properties / definition / type
      Removed value: -"object"
  2. Changed2 schema fields changed
    • addedInput schema / properties / definition / properties / distance_unit
      Added value: +{
      +  "description": "Swimming only: the unit of the user's pool. Use yd for a yard pool (e.g. 25 yd = pool_length_m 22.86). Goal values stay in meters (yards x 0.9144); the app converts them back so the Watch shows yards and does not reconfigure the workout. Omitted: inferred as yd when pool_length_m is a whole number of yards, else m.",
      +  "enum": [
      +    "m",
      +    "yd"
      +  ],
      +  "type": "string"
      +}
    • addedOutput schema / properties / plan / properties / definition / properties / distance_unit
      Added value: +{
      +  "description": "Swimming only: the unit of the user's pool. Use yd for a yard pool (e.g. 25 yd = pool_length_m 22.86). Goal values stay in meters (yards x 0.9144); the app converts them back so the Watch shows yards and does not reconfigure the workout. Omitted: inferred as yd when pool_length_m is a whole number of yards, else m.",
      +  "enum": [
      +    "m",
      +    "yd"
      +  ],
      +  "type": "string"
      +}
  3. First observed

TDQS

A4.6/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations only declare non-readonly, idempotent, non-destructive, closed-world; the description adds a large amount of behavior beyond that: pending-vs-delivered semantics, the one-time Apple Watch permission prompt, opportunistic background delivery, telo 1.12+/watchOS 11 version gates, rejection of unsupported alert/activity combinations, and the explicit idempotency retry contract. It also warns never to claim the Watch received a pending plan, which is exactly the kind of failure-mode guidance annotations cannot convey.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The purpose and delivery caveat are front-loaded, but the remainder is one dense undifferentiated block mixing version gates, Watch UI behavior, pool conventions and retry rules with no headings or bullet grouping. Nearly every sentence carries information, yet the flat structure makes retrieval costly and some platform minutiae could be compressed.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a highly complex tool with a large discriminated-union schema and an output schema, the description covers the decisions an agent must make: which definition.type to pick, activity/alert compatibility, pool unit handling, version prerequisites and the retry contract. Nothing essential to correct invocation is left out, and it correctly defers recorded results to workout_plans rather than restating return values.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 67%, and the description closes the gap with meaning the schema cannot express: definition.type semantics (custom/pacer/single_goal/multisport), the one-alert-per-step Apple Watch limit with concrete pace conversions (5:00-5:30/km = 300/330), which metrics are valid per activity, and the yard-pool distance_unit behavior where goals stay in meters. It also explains pool_distance_with_time advancing only when both distance and time are met, and reiterates units/UTC-offset conventions.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The opening sentence gives a specific verb, resource, cardinality and scheduling window: "Create one structured workout requested by the user, scheduled within the next 7 days." It immediately disambiguates from a delivery tool ("Stores a pending plan; does NOT immediately deliver to or start Apple Watch") and later points to workbook_plans for reading results, so an agent can distinguish it from siblings such as workout_plans and cancel_workout_plan.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It states the triggering condition (user-requested workout within 7 days) and routes post-creation verification to workout_plans, plus instructs telling the user to open telo once for the Apple Watch permission prompt. It does not explicitly describe when to prefer a different creation path or how to handle edits/cancellations, so it stops short of full when/when-not/alternatives coverage.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources