Skip to main content
Glama

Planned workouts and recorded results

workout_plans
Read-onlyIdempotent

Read the latest 50 planned workouts, or one by id, including the original prescription, delivery state and first exactly linked HealthKit workout. pending awaits iPhone processing (manual review, or automatic scheduling if enabled on that iPhone); scheduled means the iPhone scheduler accepted it, NOT confirmed Watch delivery; cancel_requested awaits iPhone removal. recorded_workout=null means no linked result has synced, not proof the workout was skipped. A linked recording does not prove every prescribed interval was completed. Use its uuid with workout_detail for analysis and ask for perceived effort. If truncated, query a known id. Plans have no automatic edits. Automatic scheduling is on by default in current telo builds (opt-in after a first manual delivery in older ones) and needs a one-time Apple Watch permission in the app; its current value and background execution time are unknown to the server.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "workout_plans"
  }
}

Input Schema

NameRequiredDescriptionDefault
idNoGet one plan and its exact HealthKit-linked result. Omit for the latest 50 plans.

Output Schema

NameRequiredDescriptionDefault
plansYes
truncatedYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • removedOutput schema / properties / plans / items / properties / definition / additionalProperties
      Removed value: -false
    • addedOutput schema / properties / plans / items / 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 / plans / items / 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 / plans / items / properties / definition / required
      Removed value: -[
      -  "title",
      -  "activity",
      -  "location",
      -  "blocks"
      -]
    • removedOutput schema / properties / plans / items / properties / definition / type
      Removed value: -"object"
  2. Changed1 schema field changed
    • addedOutput schema / properties / plans / items / 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.4/5.0
Behavior4/5

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

Annotations already declare read-only/idempotent/non-destructive, yet the description adds substantial unseen context: state-machine meanings for pending, scheduled and cancel_requested, the caveat that 'scheduled' is not Watch-delivery confirmation, that recorded_workout=null is not proof of skipping, and that the server does not know the scheduling setting or background execution time. The only shortfall is not stating the result cap semantics beyond 'latest 50' or the response envelope, which the output schema already covers.

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?

Purpose is correctly front-loaded in the first clause, but the remainder is a dense semicolon-chained block mixing state semantics, data-quality caveats, sibling routing, and Apple Watch/auto-scheduling defaults. The information is largely valuable but the last sentence about opt-in history in older builds and unknown server-side values is long and tangential for a single-parameter read tool.

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

Completeness4/5

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

With an output schema present the description need not restate return values, and it instead covers the interpretive traps an agent would otherwise get wrong (empty linkage, state naming, absence of automatic edits). Slightly over-burdened by the automatic-scheduling narrative, but nothing needed to call it correctly is missing.

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

Parameters4/5

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

Schema coverage is 100% and the sole parameter is already described in-schema, so the baseline is 3; the description adds value by pairing each mode with its outcome and giving a truncation workaround via a known id. It does not add ordering or pagination syntax beyond that.

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?

Opens with a specific verb and resource plus scope: 'Read the latest 50 planned workouts, or one by id', and enumerates the returned payload (prescription, delivery state, first exactly linked HealthKit workout). It distinguishes itself from workout_detail by casting that sibling as the downstream analysis tool for the linked uuid.

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

Usage Guidelines5/5

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

Explicitly covers both invocation modes (omit id for the latest 50, supply id for one plan), the truncation fallback ('If truncated, query a known id'), and the handoff to workout_detail for analysis plus asking for perceived effort. Nothing about when to pick this versus workout_detail is left to inference.

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