Skip to main content
Hevy MCP provides 5 routine tools for browsing, searching, and managing saved workout plans, plus 3 folder tools for organizing routines into named groups. Read-only tools are safe for exploration at any time; write tools create or replace data and are annotated as mutations so compatible MCP clients can request confirmation before executing.

search-routines

Find routine IDs by title substring with compact metadata

get-routines

Paginated list of routines with full exercise configuration

get-routine

Single routine with full exercise configuration by ID

create-routine

Create a new reusable workout plan

update-routine

Replace an existing routine’s content

Folder tools

Browse, fetch, and create routine folders

search-routines

Read-only. Discovers routines by title and returns compact metadata without full set payloads. Scans all routine pages (at pageSize 10 internally) and filters by title substring.
  • Kind: Read-only
Use search-routines first to find a routine ID or shortlist plans, then call get-routine for the full exercise configuration of a specific routine.

Input parameters

query
string
Optional case-insensitive substring to match against routine titles. Omit to return the first limit routines across all pages.
limit
integer
default:"20"
Maximum number of compact routines to return. Must be between 1 and 100.

Response fields

Each result in the returned array contains:
Full set payloads (weights, reps, distances, etc.) are intentionally omitted from results. Call get-routine with the returned id to access the complete exercise configuration.

get-routines

Read-only. Lists custom and default workout routines with their full exercise configuration, paginated.
  • Kind: Read-only

Input parameters

page
integer
default:"1"
Page number to retrieve. Must be ≥ 1.
pageSize
integer
default:"5"
Number of routines per page. Must be between 1 and 10.
pageSize is capped at 10. Use search-routines when you need to scan across all routines for a specific title.

get-routine

Read-only. Retrieves one routine and its complete exercise configuration by ID.
  • Kind: Read-only

Input parameters

routineId
string
required
The ID of the routine to retrieve. Must be a non-empty string. Obtain this from get-routines, search-routines, or a prior create-routine response.

create-routine

Write (mutation). Creates a new workout routine in the Hevy account, including its exercise list and set configuration.
  • Kind: Write
This operation cannot be undone. Retrying on failure can create duplicate routines with identical titles. Verify the routine does not already exist with search-routines before calling this tool.Non-fixed rep ranges (where repRange.startrepRange.end) may not display correctly in Hevy mobile and web apps, even though the data is stored.

Input parameters

title
string
required
Routine title. Must be at least 1 character.
notes
string
Optional free-text notes attached to the routine.
folderId
number | null
Optional ID of the routine folder to place this routine in. Use get-routine-folders to discover valid folder IDs.
exercises
array
required
Array of exercise objects. Each exercise requires the following fields:

Example


update-routine

Write (mutation). Replaces an existing routine’s title, notes, and complete exercise list.
  • Kind: Write
The exercises array is a full replacement — exercises not included in the payload are permanently removed from the routine. Always pass the complete desired exercise list.Non-fixed rep ranges (where repRange.startrepRange.end) may not display correctly in Hevy mobile and web apps.

Input parameters

routineId
string
required
ID of the routine to update. Must be a non-empty string. Obtain this from get-routines or search-routines.
title
string
required
Updated routine title. Must be at least 1 character.
notes
string
Optional free-text notes. Omit to clear existing notes.
exercises
array
required
Complete replacement list of exercise objects. Uses the same shape as create-routine exercises — see that section for the full field reference including sets, restSeconds, supersetId, and repRange.

Routine folder tools

Routine folders let you group related routines (e.g., “Strength Block”, “Cardio Week”). Use get-routine-folders to discover folder IDs before creating routines that reference a folderId.

get-routine-folders

Read-only. Lists all default and custom routine folders, paginated.
  • Kind: Read-only

Input parameters

page
integer
default:"1"
Page number to retrieve. Must be ≥ 1.
pageSize
integer
default:"5"
Number of folders per page. Must be between 1 and 10.

get-routine-folder

Read-only. Retrieves metadata for a single routine folder by ID.
  • Kind: Read-only

Input parameters

folderId
string
required
The ID of the folder to retrieve. Must be a non-empty string. Obtain this from get-routine-folders or a prior create-routine-folder response.

create-routine-folder

Write (mutation). Creates a new routine folder in the Hevy account.
  • Kind: Write
Retrying on failure, or reusing a folder name, can create duplicate folders. Check for an existing folder with get-routine-folders before creating a new one.

Input parameters

name
string
required
Name of the new folder. Must be at least 1 character.

Example


For creating a new routine inside a folder: