Validate a workout
validate_workoutCheck a workout against what the activity supports, without building it. Returns every error and warning, each naming the step it is about. Unverified combinations warn rather than fail.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"activity": "<activity>",
"blocks": "<blocks>"
},
"name": "validate_workout"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | shown in the Workout app and on the link, e.g. "Norwegian 4×4"; always give one, short enough for the Watch | |
| blocks | Yes | ||
| warmup | No | ||
| activity | Yes | call list_activities for what each one supports | |
| cooldown | No | ||
| location | No | indoor changes what a sport offers: a stationary bike has no speed or distance |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| valid | Yes | ||
| errors | Yes | ||
| warnings | Yes |