Bulk Get Cnf Macronutrients
bulk_get_cnf_macronutrientsFetch macronutrients for up to 20 CNF food codes in one call and optionally link each food to recipe ingredients, enabling multi-ingredient recipe nutrition analysis.
Instructions
Process multiple CNF food codes efficiently with automatic ingredient linking for streamlined recipe nutrition analysis.
This tool retrieves core macronutrient data for up to 20 food codes simultaneously from Health Canada's official Canadian Nutrient File database. It provides massive efficiency gains for multi-ingredient recipes by processing all nutrition data in a single operation while optionally linking each food to specific recipe ingredients automatically.
The tool fetches 13 essential macronutrients for each food code:
Energy (kcal), Protein, Total Fat, Carbohydrate
Saturated Fat, Monounsaturated Fat, Polyunsaturated Fat, Trans Fat
Dietary Fiber, Sugars, Sodium, Cholesterol, Energy (kJ)
Advanced features include automatic ingredient linking when ingredient_mappings are provided, allowing the tool to connect CNF nutrition data directly to recipe ingredients in one operation. This eliminates the need for separate linking steps and enables immediate nutrition calculations.
Use this tool for:
Multi-ingredient recipe nutrition analysis with automatic linking
Bulk processing of known CNF food codes for maximum efficiency
Recipe preparation workflows where ingredient-CNF relationships are known
Large-scale nutrition data preparation with minimal tool call overhead
Args: input_data: Contains food_codes (list of up to 20 CNF identifiers), session_id (data storage location), optional preferred_units (serving size preferences), continue_on_error (error handling mode), optional ingredient_mappings (food_code to ingredient_id mapping), and optional recipe_id (required for automatic ingredient linking)
Returns: Dict with bulk processing results, success/failure counts for each food, ingredient linking status, efficiency metrics, and guidance for next steps in nutrition analysis workflow
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input_data | Yes | Input model for bulk macronutrient fetching (multiple food codes at once) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||