Create a workout
create_workoutCreates a workout, assigned to a student (student_id) or as a template when student_id is empty, with its exercises: sets, reps (or a range with reps_max), load, rest, duration for cardio, notes. Exercises are matched to the Trainer Connect library by name so the student sees the demo video (or pass edb_exercise_id from search_exercises). For a program, call it once per training day with the same program name, the week name (week) and day_of_week: same program + week = one week with several days. The student is notified, like in the app.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"title": "<title>",
"exercises": "<exercises>"
},
"name": "create_workout"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| week | No | Week of the program this day belongs to, e.g. "Semana 1". Default "Semana 1" when program is set. | |
| title | Yes | Workout name, e.g. "Treino A - Peito e Tríceps". | |
| program | No | Program/week name that groups the days, e.g. "Hipertrofia outubro". | |
| exercises | Yes | Exercises in order. | |
| student_id | No | student_id from list_students. Empty = template in the trainer's library. | |
| day_of_week | No | monday … sunday. | |
| description | No | Notes for the student. | |
| estimated_minutes | No | Expected duration. |