Update Recipe Macros Decisions
update_recipe_macros_decisionsRecords LLM conversion decisions, factors, and reasoning for recipe ingredients that need manual unit conversions, enabling accurate nutrition calculations and an audit trail.
Instructions
Update temp_recipe_macros table with LLM conversion decisions and reasoning.
This tool allows the LLM to record intelligent conversion decisions for ingredients that need manual unit conversions (e.g., "4 salmon fillets" -> "565g"). After reviewing the temp_recipe_macros table, use this tool to update specific ingredients with conversion factors and reasoning.
The tool updates the LLM decision fields in temp_recipe_macros:
llm_conversion_decision: Human-readable conversion (e.g., "4 fillets = 565g")
llm_conversion_factor: Calculated factor for nutrition math (e.g., 5.65 for 565g/100g)
llm_reasoning: LLM's reasoning for the conversion estimate
Use this tool to:
Record conversion decisions for manual_decision_needed ingredients
Document reasoning for conversion estimates
Prepare data for final nutrition calculations with simple_math_calculator
Build transparent audit trail of conversion decisions
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input_data | Yes | Contains session_id, ingredient_id, conversion decision, factor, and reasoning |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||