Calculate Recipe Nutrition Summary
calculate_recipe_nutrition_summaryAnalyze recipe ingredient unit compatibility with CNF nutrition data, populate temporary macro records, and flag conversions needing manual review before calculating recipe nutrition.
Instructions
Analyze unit matching for recipe ingredients and populate temp_recipe_macros table.
This tool performs unit matching analysis between recipe ingredients and CNF nutrition data, identifying which conversions are possible and which need manual LLM decisions. It populates the temp_recipe_macros table with detailed unit matching information for LLM review.
NEW BEHAVIOR (Unit Matching Analysis):
Analyzes each ingredient's unit compatibility with available CNF serving sizes
Identifies exact matches, possible conversions, and manual decision needs
Populates temp_recipe_macros with unit matching status and recommendations
Returns analysis summary for LLM to make conversion decisions
Use this tool to:
Set up unit matching analysis for recipe nutrition calculations
Identify which ingredients need manual conversion decisions
Prepare data for LLM-driven nutrition calculations
Get transparent view of unit conversion challenges
The tool requires that ingredients have been previously linked to CNF data using get_cnf_macronutrients_only or bulk_get_cnf_macronutrients. After running this tool, review the temp_recipe_macros table and use simple_math_calculator for final calculations.
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": {
"input_data": "<input_data>"
},
"name": "calculate_recipe_nutrition_summary"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input_data | Yes | Contains session_id (data location) and recipe_id (target recipe identifier) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||