Search And Get Cnf Macronutrients
search_and_get_cnf_macronutrientsSearch Canadian Nutrient File foods by name and retrieve core macronutrient data for recipe nutrition analysis. Returns single-match data or multiple food options.
Instructions
Search Canadian Nutrient File foods and retrieve core macronutrient data.
This tool searches Health Canada's CNF database for foods matching the provided name and returns either complete macronutrient data for single matches or a list of options for multiple matches. It focuses on 13 core macronutrients essential for basic nutrition analysis while maintaining compatibility with session-based storage.
Use this tool to:
Discover CNF foods matching ingredient names from recipes
Retrieve core macronutrient data for immediate nutrition analysis
Identify available food options when multiple matches exist
Prepare data for recipe nutrition calculations
The tool returns different outputs based on search results:
Single match: Complete macronutrient data stored in session tables
Multiple matches: List of food options with codes for selection
No matches: Error message with search suggestions
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input_data | Yes | Contains food_name (search term), session_id (storage identifier), optional preferred_units (serving size filter), and max_results (limit) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||