Get Dri Lookup From Session
get_dri_lookup_from_sessionRetrieve specific DRI values from session-cached data to avoid repeated website requests and compare nutrient intake against reference values during nutrition analysis.
Instructions
Retrieve specific DRI values from session-cached data.
This tool provides fast access to DRI values from data already stored in the virtual session, eliminating the need for repeated website requests. Perfect for building complex nutrition analysis workflows with multiple DRI lookups.
MATH TOOL INTEGRATION: This tool provides DRI reference values for comparison. ALWAYS use simple_math_calculator for any calculations involving these values:
Adequacy percentages: simple_math_calculator(expression="(intake/rda)*100", variables={"intake": actual, "rda": dri_value})
Deficit calculations: simple_math_calculator(expression="rda - intake", variables={"rda": dri_value, "intake": actual})
AMDR compliance: simple_math_calculator(expression="(nutrient_cals/total_cals)*100", variables={"nutrient_cals": value, "total_cals": total})
Prerequisites: Must run store_dri_tables_in_session first to populate session data.
Supported macronutrients:
carbohydrate, protein, total_fat, linoleic_acid, alpha_linolenic_acid, total_fibre, total_water
Use this tool when:
Looking up specific DRI values during nutrition analysis
Building personalized nutrition recommendations
Comparing individual nutrients against reference values
Creating nutrition education content with official values
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| gender | Yes | Target gender ("males", "females") or None for general | |
| age_range | Yes | Target age range (e.g., "19-30 y", "4-8 y") | |
| session_id | Yes | Virtual session containing cached DRI data | |
| macronutrient | Yes | Nutrient type to retrieve values for |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||