compute_targets
Estimate daily calorie and protein targets for an adult using age, sex, height, weight, activity level, and goal, then apply a calorie floor. Use when asked how much someone should eat in a day.
Instructions
Estimated daily calorie and protein targets for an adult, from the Mifflin-St Jeor equation with an activity multiplier and a goal adjustment. Use it when asked how much someone should eat in a day. The result shows the formula and the inputs, applies a calorie floor, and is an estimate, not medical advice. Nothing is stored.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| age | Yes | ||
| sex | Yes | ||
| goal | Yes | ||
| activity | Yes | ||
| height_cm | Yes | ||
| weight_kg | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kcal | Yes | ||
| notes | Yes | ||
| inputs | Yes | ||
| formula | Yes | ||
| bmr_kcal | Yes | ||
| protein_g | Yes |