Skip to main content
Glama

consolidate_memories

Consolidate related AI assistant memories into fewer comprehensive facts using AI synthesis. Groups memories by subject, archives originals with version history, and reduces clutter after multiple sessions.

Instructions

Consolidate related memories into fewer, richer memories. Finds clusters of memories sharing the same subject (3+ memories required), then uses AI to synthesize each cluster into 1-2 comprehensive facts. Originals are archived (not deleted) with full version history. Use dry_run=true to preview without making changes. Great for cleaning up memory clutter after many sessions.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
subjectNoConsolidate only memories with this exact subject (e.g., "auth_system"). Omit to auto-detect all qualifying clusters.
memory_typeNoOnly consolidate memories of this type
categoryNoOnly consolidate memories in this category
dry_runNoWhen true, preview consolidation results without making changes. Recommended for first use.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/hifriendbot/cogmemai-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server