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

Canada's Food Guide MCP Server

Cleanup Virtual Session

cleanup_virtual_session

Permanently deletes temporary recipe session data from memory to free resources and maintain clean storage after completing analysis workflows.

Instructions

Remove virtual in-memory storage for a completed recipe session.

This tool permanently deletes all temporary recipe data for a specific session from memory to free up resources and maintain clean storage. Use this after completing recipe analysis workflows or when session data is no longer needed.

What this tool removes:

  • All recipe data stored in the session (recipes, ingredients, instructions)

  • Associated in-memory data structures for the session

  • All temporary calculations and analysis data

Important: This action cannot be undone. Ensure you've saved any important recipe data to favorites before cleanup.

Use this tool when:

  • Finished with a recipe analysis session

  • Cleaning up old or unused session data

  • Managing memory usage

  • Completing meal planning workflows

  • Preparing for new recipe sessions

Input Schema

NameRequiredDescriptionDefault
session_idYesIdentifier of the session to clean up (must match exactly with existing session)

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?

No annotations are supplied, so the description carries the full behavioral burden. It states that the deletion is permanent and irreversible, that it acts on in-memory data, and that it enumerates the data types removed. It doesn't say what happens if the session_id doesn't exist or whether only 'completed' sessions can be cleaned, which leaves some edge-case gaps.

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 delete-what and cannot-be-undone facts are front-loaded, which is good. But the middle and end repeat the same idea: 'Use this after completing recipe analysis workflows' and 'Use this tool when: Finished with a recipe analysis session' say the same thing. The bullet list of removed data and the five-item use-case list could be about half as long.

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 the description doesn't need to describe return values. A single-parameter, non-nested destroy operation has its core behavioral traits covered: it is destructive and irreversible, and it operates on in-memory session storage. Only the failure modes and the session-state precondition are left unstated.

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 schema already says the session_id must match an existing session exactly. The description only reinforces that the target is a 'completed recipe session', which adds little beyond the input schema. The baseline applies.

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 uses a specific verb and resource: 'Remove virtual in-memory storage for a completed recipe session.' It spells out exactly what gets deleted (recipes, ingredients, instructions, temporary calculations). It never names the close sibling 'cleanup_temp_sessions', so an agent must infer the difference between virtual-session cleanup and temp-session cleanup.

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 gives concrete when-to-use triggers (finished analysis, freeing memory, preparing for a new session) and a clear warning to save data to favorites first. What's missing is the alternative route: 'cleanup_temp_sessions' and 'list_active_virtual_sessions' appear as siblings, but the description never says when to pick those instead.

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