Skip to main content
Glama

consolidate_memories

Keep your memory store healthy by deduplicating similar entries, decaying outdated information, cleaning low-value data, and identifying patterns for rule generation.

Instructions

Run memory consolidation: deduplicate similar memories, apply time-based decay, clean up low-value entries, and detect patterns for rule promotion. Preferences are always preserved. P0 handles dedup+decay, P1 detects repeated patterns and generates rule candidates. Run periodically (e.g., daily) to keep memory store healthy. Use dry_run=true first to preview changes.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dry_runNoIf true, only report what would be done without making changes (default true)
run_p1NoIf true, also run P1 pattern recognition and rule candidate generation (default true)
run_p2NoIf true, also run P2 semantic consolidation via host LLM (default true)
Behavior4/5

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

Describes behavior per priority level (P0 dedup+decay, P1 patterns+rule candidates, P2 semantic via LLM) and notes preferences are preserved. No annotations exist, so description carries burden; it is fairly transparent but could mention side effects or return value more explicitly.

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?

Four sentences, front-loaded with core action and sub-actions. No fluff; every sentence adds essential information.

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?

Adequately explains the consolidation process and levels given no output schema. Could improve by describing the format of the preview report or typical output, but overall complete for maintenance tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, baseline 3. Description adds value by explaining the purpose of dry_run ('preview changes') and clarifying run_p1/run_p2 behaviors beyond the schema's boolean defaults.

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?

Clearly states the verb 'run' and resource 'memory consolidation', enumerating specific sub-actions (deduplicate, decay, clean up, pattern detection). Distinguishes from sibling tools like schedule_consolidation and stop_consolidation.

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?

Explicitly recommends periodic (daily) use and suggests using dry_run first. Lacks explicit when-not-to-use or alternatives but provides clear context for regular maintenance.

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/lulin70/carrymem'

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