render_garmin
Convert a cycling workout spec into a Garmin Connect-ready payload, with power targets in watts, repeat groups, and end conditions resolved for immediate upload.
Instructions
Render a workout spec to a Garmin Connect workout payload.
The returned "payload" is ready to hand to the Garmin MCP's upload_workout tool unchanged. Power targets are absolute watts via power.between (workoutTargetTypeId 6); percentages in the spec are resolved against the spec's FTP. Repeats become RepeatGroupDTO groups carrying a complete endCondition, including the numeric conditionTypeId that Garmin needs to avoid silently corrupting the repeat count.
This server does not upload. Use the bundled garmin-upload skill, which uploads and then verifies by fetching the workout back and comparing it against what was sent.
Pass out_path to also write the payload as JSON to disk.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| spec | Yes | ||
| out_path | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |