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

Canada's Food Guide MCP Server

Create Virtual Recipe Session

create_virtual_recipe_session

Creates in-memory storage for a recipe session to hold multiple fetched recipes, ingredients, and instructions for analysis, with data cleared when the session ends.

Instructions

Create virtual in-memory storage for a recipe session to store fetched recipe data.

This tool sets up in-memory data structures for storing and analyzing multiple recipes during a session. All data is stored in memory and automatically cleaned up when the session ends, preventing database bloat from temporary recipe storage.

What this tool creates for the session:

  • In-memory recipes storage: Main recipe metadata and details

  • In-memory ingredients storage: Individual ingredients with ordering

  • In-memory instructions storage: Step-by-step cooking instructions

  • Virtual relationships for data integrity

Use this tool when:

  • Starting a new recipe analysis session

  • Pre-creating session storage for batch recipe processing

  • Setting up dedicated recipe analysis workflows

  • Ensuring session storage exists before bulk operations

Note: Virtual sessions are automatically created when storing recipes, so this tool is optional for normal workflows but useful for advanced session management.

Input Schema

NameRequiredDescriptionDefault
session_idYesUnique identifier for this recipe session (use descriptive names like 'meal_planning_2024' or 'thanksgiving_recipes' for organization)

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.0.0

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations, the description carries the full behavioral burden and does well: it discloses that storage is in-memory only, is cleaned up automatically at session end, and exists to avoid database bloat. The main undisclosed behavior is what happens when session_id already exists (idempotent no-op vs. reset vs. error), which matters for a creation tool.

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

Conciseness3/5

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

The core statement and the 'what it creates' list are front-loaded and useful, but the 'Use this tool when' bullets are near-synonymous with one another ('starting a session,' 'pre-creating session storage,' 'setting up dedicated workflows'), and the first sentence largely duplicates the header block. Trimming two of the four bullets would lose no information.

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

Completeness4/5

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

An output schema exists, so return values need not be explained, and the description covers the lifecycle (creation, in-memory scope, auto-cleanup) and the optionality caveat. For a one-parameter tool, the only material omission is the behavior on a pre-existing session_id.

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 coverage is 100% and the single session_id parameter is fully documented in the schema, including naming-convention guidance and examples. The description adds no additional meaning about the identifier (e.g. collision or reuse semantics), so the baseline of 3 is appropriate.

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 opens with a specific verb+resource: 'Create virtual in-memory storage for a recipe session to store fetched recipe data,' and then enumerates exactly which in-memory structures are created. This separates it from session-reader siblings like get_session_recipes, though it does not explicitly distinguish itself from create_temp_nutrition_session, which appears to serve a similar role.

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

Usage Guidelines4/5

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

It provides an explicit 'Use this tool when' list (new session, batch processing, dedicated workflows, pre-creating storage before bulk ops) and, importantly, a note that sessions are auto-created when storing recipes so this tool is optional. That covers both when-to-use and a when-not-needed caveat, but it never names the specific sibling (e.g. store_recipe_in_session) that triggers auto-creation.

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