search-exercise-templates
Find exercise templates by name, optionally filtering by primary muscle group. Caches results for quick repeated searches, with an option to refresh the catalog.
Instructions
Search exercise templates by name with optional muscle group filter. Fetches all templates from the Hevy API on first call, caches the catalog in memory with a bounded TTL cache, and reuses it for subsequent searches. Use refresh:true to force a re-fetch.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Case-insensitive substring to match against exercise template titles | |
| refresh | No | Set to true to invalidate the catalog cache and re-fetch all templates from the API | |
| primaryMuscleGroup | No | Optional filter to restrict results to a specific primary muscle group |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| exerciseTemplates | Yes |