Hevy MCP

by chrisdoc
Verified

update-routine

Modify workout routines by updating titles, notes, and exercise details. Use this tool to edit and apply changes to existing routines while maintaining folder assignments. Returns the updated routine.

Instructions

Update an existing workout routine by ID. You can modify the title, notes, and exercise data. Returns the updated routine with all changes applied. Note that you cannot change the folder assignment through this method.

Input Schema

NameRequiredDescriptionDefault
exercisesYes
notesNo
routineIdYes
titleYes

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "exercises": { "items": { "additionalProperties": false, "properties": { "exerciseTemplateId": { "minLength": 1, "type": "string" }, "notes": { "type": "string" }, "restSeconds": { "minimum": 0, "type": "integer" }, "sets": { "items": { "additionalProperties": false, "properties": { "customMetric": { "type": "number" }, "distanceMeters": { "type": "integer" }, "durationSeconds": { "type": "integer" }, "reps": { "type": "integer" }, "type": { "default": "normal", "enum": [ "warmup", "normal", "failure", "dropset" ], "type": "string" }, "weightKg": { "type": "number" } }, "type": "object" }, "type": "array" }, "supersetId": { "type": [ "number", "null" ] } }, "required": [ "exerciseTemplateId", "sets" ], "type": "object" }, "type": "array" }, "notes": { "type": "string" }, "routineId": { "minLength": 1, "type": "string" }, "title": { "minLength": 1, "type": "string" } }, "required": [ "routineId", "title", "exercises" ], "type": "object" }
ID: vl8qtbflvm