Skip to main content
Glama
Canada's Food Guide MCP Server

Canada's Food Guide MCP Server

Simple Recipe Setup

simple_recipe_setup

Transfers recipe data from session storage to analysis tables and parses ingredient amounts, units, and names for CNF nutrition analysis.

Instructions

Transfer recipe data to analysis tables with comprehensive ingredient parsing for streamlined nutrition analysis preparation.

This tool prepares complete recipe data for CNF nutrition analysis by transferring stored recipe information from virtual session storage to temporary database tables and automatically parsing ingredient text into structured components. It provides the essential foundation for linking ingredients to CNF foods and calculating detailed nutrition summaries.

The tool performs comprehensive ingredient parsing that handles complex measurement formats including:

  • Unicode fractions (½, ⅓, ¼, ¾, etc.) converted to precise decimal values

  • Mixed numbers (1½, 2¼) with accurate decimal conversion

  • Regular fractions (1/2, 3/4) and measurement ranges (2-3 cups)

  • All standard units (mL, cups, tsp, tbsp, kg, g, lbs, oz)

  • Ingredient preparation notes (sliced, chopped, optional)

Use this tool for:

  • Complete recipe data transfer from session storage to analysis tables

  • Automatic ingredient parsing into structured amount, unit, and name components

  • Foundation preparation for CNF food linking and nutrition calculations

  • Streamlined setup for multi-step recipe nutrition analysis workflows

The processed data includes recipe metadata, fully parsed ingredients with structured amounts/units, and step-by-step instructions, all stored in temporary database tables optimized for nutrition analysis tools.

Input Schema

NameRequiredDescriptionDefault
input_dataYesContains session_id (source virtual session location) and recipe_id (specific recipe identifier to process and parse)

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.0.0

TDQS

B3.4/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations at all, the description carries the full burden and does a reasonable job: it discloses that data is written into temporary database tables (a mutation/side effect), enumerates exactly which parsing cases are handled (unicode fractions, mixed numbers, ranges, units, prep notes), and states what the processed data contains. Gaps remain — it never says whether existing temp tables are overwritten, whether the session/recipe must pre-exist, or what happens on an unknown recipe_id — but the core behavior is disclosed.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The purpose is front-loaded, but the body is padded with marketing language ('streamlined', 'comprehensive', 'essential foundation') and the 'Use this tool for' bullets largely repeat the opening paragraph. The fraction/unit parsing list is the one section that earns its place; the rest could be cut by half without losing instruction-relevant content.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a workflow-initiating tool with a nested input object and an output schema, the description covers what is produced and how ingredients are parsed, which is the important part. What it omits is the navigation context: how this setup step relates to store_recipe_in_temp_tables, what the returned data is used for downstream, and the meaning of the auto-link option.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100% and the nested input_data object documents session_id, recipe_id, and auto_link_major_ingredients, so baseline is 3. The description adds almost nothing beyond the schema: it never mentions the auto_link_major_ingredients flag or what 'auto-linking obvious ingredient matches' means in practice, even though it alludes to a foundation for CNF linking.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a specific action and target: transferring stored recipe data from virtual session storage into temporary database tables, with ingredient text parsed into structured amount/unit/name components. That is far more specific than the title 'Simple Recipe Setup.' It does not, however, distinguish itself from near-identical siblings such as store_recipe_in_temp_tables or create_virtual_recipe_session, so the agent cannot tell from the description alone which setup step it is in.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The 'Use this tool for' bullets imply when the tool applies (starting a multi-step nutrition analysis workflow), but each bullet restates the purpose rather than naming a condition that selects this tool over an alternative. No exclusions, no prerequisites ('session must already exist'), and no pointer to sibling tools such as calculate_recipe_nutrition_summary that would consume the output.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.