calculate_macros
Calorie and macro calculator from a real personal trainer's rules (MTFIT): daily calories, protein, carbs and fat for fat loss / weight loss, recomp or muscle gain, with example meals and safe limits (calorie floors, capped deficits). No workout plan: use build_program for that. Metric or US units. Text plus structured JSON. 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). For adults 18+. Not medical or dietary 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>",
"age": "<age>",
"sex": "<sex>",
"activity": "<activity>"
},
"name": "calculate_macros"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| age | Yes | Age in years. Required. Under 18 gets no program. | |
| sex | Yes | For the calorie estimate. | |
| goal | Yes | The person's goal. | |
| activity | Yes | Activity outside training. | |
| 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 | No | Lifting experience, for the muscle gain surplus. Default intermediate. | |
| food_likes | No | Foods the person likes, comma separated. Include 'vegetarian' or 'vegan' if that applies. | |
| food_dislikes | No | Foods to avoid, comma separated. | |
| medical_conditions | No | Pregnancy, heart condition or any other medical condition. Triggers the conservative plan. | |
| training_days_per_week | No | Workouts per week. Default 3. |