Skip to main content
Glama

deduplicate_memories

Find and merge duplicate or near-identical memory nodes, consolidating access counts and connections to reduce clutter and improve retrieval accuracy.

Instructions

Autonomous Memory Deduplication & Semantic Merging Agent: Finds clusters of duplicate/near-identical memory nodes, merges access counts and edges, and prunes redundant duplicate records in chunks of 1,000 nodes.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
projectNo
batch_sizeNo
similarity_thresholdNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Install Server

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations, the description carries the full behavioral burden, and it is fairly informative: it discloses autonomous operation, merging of access counts and edges, and pruning/destruction of duplicate records. The chunk size of 1,000 nodes also reveals batching behavior. It could be more explicit about irreversibility or data-safety implications, but the core mutating behavior is clearly stated.

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 tightly written, front-loaded with the main purpose, and each clause adds new information: clustering, merging, pruning, and batching. No fluff or redundant repetition of the tool name.

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?

Given there is an output schema and all parameters are optional with defaults, the description provides a workable picture of the tool's behavior. However, it lacks explicit usage guidance and detailed parameter semantics, and it does not warn about the autonomous, mutating nature beyond saying 'Autonomous' and 'prunes.' It is adequate but not fully complete.

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

Parameters2/5

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

Schema description coverage is 0%, so the description must compensate. It only indirectly addresses batch_size via 'chunks of 1,000 nodes' and hints at similarity_threshold via 'near-identical.' The project parameter is completely unexplained, and no guidance is given for thresholds, defaults, or interaction between parameters.

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 states a clear, specific purpose: finding duplicate/near-identical memory nodes, merging access counts and edges, and pruning duplicates. This goes beyond the tool name and gives the agent a concrete model of what the operation does, distinguishing it from memory read/write siblings.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage context is implied: an agent would call this when memory deduplication is needed, and the description makes that obvious. However, it never explicitly says when to prefer this over consolidate_reflections or other maintenance tools, nor does it mention any conditions or alternatives.

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

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/lalithbuilds/episoda-alpha-mcp'

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