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

Canada's Food Guide MCP Server

Store Dri Tables In Session

store_dri_tables_in_session

Caches complete DRI macronutrient tables in a virtual session, so repeated nutrition lookups use stored data instead of new website requests.

Instructions

Cache complete DRI macronutrient tables in virtual session storage.

This tool fetches and stores comprehensive DRI data in the specified virtual session, enabling efficient access to DRI values throughout the session without repeated website requests. Perfect for workflows involving multiple DRI lookups and calculations.

WORKFLOW INTEGRATION: Use this tool first in any comprehensive nutrition analysis session to cache DRI data once, then use session-based lookup tools for specific values.

Benefits of session storage:

  • Single fetch operation for entire session workflow

  • Consistent data across all DRI operations in session

  • Reduced website requests and improved performance

  • Enables complex multi-step nutrition analysis workflows

  • Data persists for entire session duration

Use this tool when:

  • Starting comprehensive nutrition analysis sessions

  • Planning to perform multiple DRI lookups or comparisons

  • Building meal planning workflows with DRI compliance checks

  • Creating educational nutrition analysis demonstrations

  • Developing nutrition assessment applications

Input Schema

NameRequiredDescriptionDefault
session_idYesVirtual session identifier for DRI data storage
force_refreshNoIf True, bypass cache and fetch fresh data from Health Canada

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.0.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description carries the full burden; it does disclose the caching model, persistence for session duration, and reduced upstream requests, which is real value. It omits key behavior for a write-to-session tool: whether the session must already exist (several sibling tools create sessions), what happens on fetch failure or invalid session_id, and whether existing cached data is overwritten.

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 opening sentence is well front-loaded, but the five "Benefits of session storage" bullets largely restate each other and the "Use this tool when" list repeats the same idea in different phrasings ("enabling efficient access... without repeated website requests" / "Reduced website requests and improved performance"). Roughly a third of the text could be cut without information loss.

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?

The tool is simple (2 params, flat object) and an output schema exists, so return values need no explanation. The main remaining gap is session lifecycle: the description assumes a session exists but never says whether to call create_temp_nutrition_session first or how this relates to cleanup_virtual_session/cleanup_temp_sessions.

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 both parameters are self-documented, so the schema already does the work. The description never mentions force_refresh or explains cache-invalidation semantics, so it adds nothing beyond the structured fields — the baseline 3 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 first sentence gives a specific verb and resource ("Cache complete DRI macronutrient tables in virtual session storage") plus the mechanism (fetches from website, stores in session). That is enough to distinguish it from get_macronutrient_dri_tables (fetch-only) and get_dri_lookup_from_session (read from session), though neither sibling is named explicitly.

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?

"Use this tool when" enumerates concrete scenarios (multiple lookups, meal-planning compliance checks) and "WORKFLOW INTEGRATION: Use this tool first" gives an explicit ordering rule. It lacks a when-NOT-to-use statement and never names get_macronutrient_dri_tables as the non-caching alternative for one-off lookups, so it falls short of a 5.

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