Create a workout
create_workoutSave structured workouts to Garmin Connect from presets, custom step definitions, or existing Garmin JSON; preview steps and estimated duration with dry_run before saving.
Instructions
Save a new structured workout to Garmin Connect (then use schedule_workouts to put it on the calendar so it syncs to the watch). Pass exactly one of: preset for a standard session from a few parameters (run_intervals, walk_run, easy_z2, strength_circuit); definition for anything else (typed steps with duration and target, nestable repeats); garmin_json only to copy an existing Garmin workout JSON. Errors name the bad field, e.g. steps[2].steps[0].target. Call with dry_run: true first, show the steps to the user and save only after they agree. dry_run saves nothing and does not contact Garmin: it returns the readable steps and the estimated duration.
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": "create_workout"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| preset | No | Ready-made workout filled in from a few parameters. Example: {"name":"run_intervals","params":{"repeats":6,"work_meters":400,"work_target":{"type":"pace","min_per_km_fast":"3:50","min_per_km_slow":"4:05"},"recovery_seconds":90}} | |
| dry_run | No | true: preview only, nothing is saved | |
| definition | No | Typed workout. Example: {"name":"6x400m","sport":"running","steps":[{"kind":"warmup","duration":{"type":"time","seconds":600}},{"kind":"repeat","count":6,"steps":[{"kind":"interval","duration":{"type":"distance","meters":400},"target":{"type":"pace","min_per_km_fast":"3:50","min_per_km_slow":"4:05"}},{"kind":"recovery","duration":{"type":"time","seconds":90}}]},{"kind":"cooldown","duration":{"type":"lap_button"}}]} | |
| garmin_json | No | Raw Garmin workout JSON with workoutName, sportType and workoutSegments |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | ||
| meta | Yes |