Skip to main content
Glama

consolidate_memories

Merge related memories with the same subject into comprehensive facts. Automatically detects clusters of 3+ memories, synthesizes them into 1-2 richer memories, and archives originals. Use dry_run to preview changes.

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.
Behavior4/5

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

No annotations are provided, so the description carries the full burden. It discloses that memories are archived (not deleted), clustering needs 3+ memories, and AI synthesizes into 1-2 facts. It does not cover rate limits or auth needs, but the key behavioral traits are transparent.

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

Conciseness5/5

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

The description is three sentences, each serving a clear purpose: what it does, how it works, and when to use it. No wasted words.

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?

Given no output schema, the description adequately explains the outcome (synthesized facts, archive originals) and constraints (cluster size). It covers the core workflow, though details on AI behavior or error handling are missing. Still, it's reasonably complete.

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% with descriptions for all parameters. The description adds context for dry_run (preview without changes) but does not provide additional meaning beyond the schema for other parameters. Baseline 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states it consolidates related memories into fewer, richer ones by finding clusters sharing the same subject (requiring 3+ memories). It specifies the action (synthesize into 1-2 facts) and that originals are archived. This distinguishes it from siblings like delete_memory or update_memory.

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?

The description includes a use case: 'Great for cleaning up memory clutter after many sessions.' It also mentions dry_run for previewing. However, it does not explicitly state when not to use or list alternatives, but the context is clear enough.

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

Install Server

Other Tools

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