Skip to main content
Glama

Consolidate memories

consolidate

Cluster similar memories by embedding similarity to reduce redundancy, and optionally create derived memories linked via 'derived_from' for consolidated knowledge.

Instructions

Cluster similar memories via embedding similarity and optionally create derived/consolidated memories linked via 'derived_from'. Use during periodic consolidation.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
deriveNoCreate a derived memory for each cluster
projectIdNoScope to a project
thresholdNoCosine similarity threshold for clustering (default 0.7)
minClusterSizeNoMinimum members to report a cluster (default 2)
Behavior2/5

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

No annotations are present, so the description carries the full burden of behavioral disclosure. It reveals the clustering mechanism and the optional creation of derived memories, but it does not disclose whether existing memories are modified or deleted, what the tool returns, or whether the operation can be run safely without side effects.

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 two concise sentences with no filler. The core mechanism is front-loaded, and the usage guidance is placed at the end for easy scanning.

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 description gives enough to understand the main purpose and when to use it, and the schema covers all parameters. However, with no output schema and no annotations, the lack of information about return values and potential mutation of existing memories leaves important gaps for an agent deciding whether and how to invoke it.

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?

The schema already documents all four parameters with 100% coverage, so the baseline is 3. The description adds general context about embedding similarity and derived memories, but it does not add detailed parameter-level semantics beyond what the schema already provides.

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 the action (cluster similar memories), the method (via embedding similarity), and the optional outcome (create derived/consolidated memories linked via 'derived_from'). This mechanism helps distinguish it from other sibling tools like merge_memory or link_memory, even without naming them.

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 explicitly says 'Use during periodic consolidation,' providing clear timing/context for when to invoke the tool. It does not mention exclusions or compare directly to alternatives, so it falls slightly short of full guidance.

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/worakorn-prince/th-memory-mcp'

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