build_program
Personalized workout plan, meal plan and macros from a real personal trainer's rules (coach Mat, MTFIT), not generic AI output, for fat loss, weight loss, recomp or muscle gain. Built from the rules coach Mat (MTFIT) uses with his in-person and online clients, backed by 10 years of his own training (160 to 215 lb at about 10 to 12% body fat). Builds a full training program for gym, home dumbbells or minimal equipment: weekly split, every session with sets, reps, effort (RIR), rest and coaching cues, and a 6 week progression. Adds nutrition targets: calories, protein, carbs, fat (macros) and example meals, for fat loss / weight loss, body recomposition or muscle gain. Metric or US units. Returns readable text plus the whole plan as structured JSON. Handles injuries and medical conditions with a conservative plan. Same inputs always give the same plan. Keep program_state for adjust_program. Call get_intake_questions (free) first to know what to ask. For adults 18+. General fitness guidance, not medical advice. Terms: https://mtfit-mcp.mtfit-mcp.workers.dev/terms
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": {
"goal": "<goal>",
"days_per_week": "<days_per_week>",
"session_minutes": "<session_minutes>",
"equipment": "<equipment>",
"experience": "<experience>",
"age": "<age>"
},
"name": "build_program"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| age | Yes | Age in years. Required. Under 18 gets no program. | |
| sex | No | Needed for nutrition targets. | |
| goal | Yes | The person's goal. | |
| activity | No | Activity outside training. Needed for nutrition targets. | |
| ease_into | No | Body parts to ease into: those days start lighter and shorter. | |
| equipment | Yes | minimal = one dumbbell, bands, bodyweight. | |
| height_cm | No | Height in centimetres. Needed for nutrition targets. Or send height_ft and height_in. | |
| height_ft | No | Height, feet part (US units). Use with height_in. | |
| height_in | No | Height, inches part (with height_ft), or total height in inches if height_ft is not sent. | |
| weight_kg | No | Body weight in kilograms. Needed for nutrition targets. Or send weight_lb. | |
| weight_lb | No | Body weight in pounds (US units). | |
| experience | Yes | beginner = under 1 year, intermediate = 1 to 3 years, advanced = 3+ years. | |
| food_likes | No | Foods the person likes, comma separated. Include 'vegetarian' or 'vegan' if that applies. | |
| prioritize | No | Body parts to prioritize. | |
| days_per_week | Yes | Training days per week, 3 to 7 (7 is planned as 6 plus a rest day). | |
| food_dislikes | No | Foods to avoid, comma separated. | |
| session_minutes | Yes | Minutes available per session. Any number: the plan uses the nearest fitting length (30, 45, 60 or 75+). | |
| injuries_or_pain | No | Any injury or pain, in the person's words. Triggers the conservative plan. | |
| does_other_cardio | No | Does the person already do any cardio outside these sessions? If false, a cardio finisher is added whatever the goal. | |
| medical_conditions | No | Pregnancy, heart condition or any other medical condition. Triggers the conservative plan. |