Calculate Dri From Eer
calculate_dri_from_eerConvert daily EER energy requirements into personalized macronutrient gram targets using AMDR ranges. Produces minimum, maximum, and mid-range goals for meal planning.
Instructions
Calculate specific macronutrient targets based on EER energy requirements and AMDR ranges.
This tool integrates EER (Energy Requirement) calculations with DRI macronutrient distribution recommendations to provide personalized daily macronutrient targets in grams. Perfect for complete meal planning workflows that start with energy needs.
CRITICAL WORKFLOW INTEGRATION: This tool provides structured data for calculations. ALWAYS use simple_math_calculator for ALL arithmetic operations:
Carb grams: simple_math_calculator(expression="(kcal * percent) / 4", variables=from_this_tool)
Protein grams: simple_math_calculator(expression="(kcal * percent) / 4", variables=from_this_tool)
Fat grams: simple_math_calculator(expression="(kcal * percent) / 9", variables=from_this_tool)
Range validation: simple_math_calculator(expression="actual_percent - target_percent", variables=from_this_tool)
Integration workflow:
Calculate EER using get_eer_equations + simple_math_calculator
Store user profile with store_dri_user_profile_in_session
Use this tool to convert energy to macronutrient targets
Use targets for meal planning and recipe analysis
Calculation approach:
Uses AMDR ranges to distribute total energy across macronutrients
Provides minimum and maximum gram targets for each macronutrient
Includes mid-range targets for practical meal planning
Accounts for different caloric densities (carb/protein: 4 kcal/g, fat: 9 kcal/g)
Use this tool when:
Converting EER energy requirements to practical macronutrient goals
Creating personalized meal planning targets
Building comprehensive nutrition analysis workflows
Developing nutrition counseling applications
Educational demonstrations of energy-to-macro conversion
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| age_range | Yes | Age range for AMDR lookup (e.g., "19 years and over", "1-3 years") | |
| session_id | Yes | Virtual session with cached DRI data and user profile | |
| profile_name | Yes | Stored user profile name for demographic reference | |
| eer_energy_kcal | Yes | Total daily energy requirement in kilocalories (from EER calculations) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||