Create Temp Nutrition Session
create_temp_nutrition_sessionCreates a temporary nutrition session for recipe and nutrition data only when no existing session fits, helping prevent duplicate work and support cleanup management.
Instructions
⚠️ CHECK EXISTING SESSIONS FIRST! Create temporary nutrition session only if needed.
🚨 CRITICAL: ALWAYS run list_temp_sessions() BEFORE creating new sessions!
Why check first?
Avoids duplicate sessions for same work
Saves time by reusing existing recipe data
Prevents confusion with multiple similar sessions
🎯 EFFICIENT WORKFLOW:
1. list_temp_sessions() ← ALWAYS CHECK FIRST!
2. Found existing session? → Reuse it (more efficient)
3. Session has old data? → Use cleanup_temp_sessions() to clean
4. No suitable session? → Then create new one with this tool✅ WHEN TO CREATE NEW SESSION:
No existing sessions found
Existing sessions are for different recipes/work
Need fresh start after cleaning old sessions
❌ AVOID CREATING IF:
Session already exists for your recipe
You haven't checked existing sessions first
NEXT STEPS after creating session:
Use simple_recipe_setup() for integrated recipe data transfer
Use bulk SQL operations instead of individual tool calls
What this creates:
Session tracking record for cleanup management
Temporary table space ready for recipe and nutrition data
Better persistence than in-memory virtual sessions
Automatic cleanup capabilities
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session_id | Yes | Unique identifier for the nutrition analysis session |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||