Skip to main content
Glama

memory_consolidate_tool

Clusters near-duplicate memories and optionally supersedes duplicates to clean persistent knowledge, using a dry run unless applied.

Instructions

Cluster near-duplicate memories and optionally supersede duplicates.

Args: apply: Apply the consolidation (default is a dry run) threshold: Cosine similarity needed to join a cluster (default 0.92) project: Optional project root path

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "memory_consolidate_tool"
  }
}

Input Schema

NameRequiredDescriptionDefault
applyNo
projectNo
thresholdNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.11.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden. It does disclose the important fact that the default is a dry run rather than a mutation, which is genuine safety context. But it never explains what 'supersede' actually does to the losing memory (mark vs delete), whether it is reversible, or what permissions or scope limits apply.

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

Conciseness4/5

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

The behavioral summary is front-loaded in a single sentence, followed by a compact Args block. The Args lines partially restate schema titles and defaults, but each still adds meaning, so there is little waste.

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?

An output schema exists, so return values need not be explained. However, this is a potentially destructive consolidation operation with zero annotation coverage, and the description does not say what happens to superseded memories or whether the action can be undone, which is a meaningful gap for a mutation 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 description coverage is 0%, so the description must compensate for all three parameters, and it largely does: it redefines 'threshold' as cosine similarity needed to join a cluster (far more than the schema's bare title), frames 'apply' as the dry-run toggle, and identifies project as a root path. It stops short of giving threshold guidance such as typical ranges or the effect of lowering it.

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

Purpose4/5

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

States a specific verb and resource plus a secondary effect: cluster near-duplicate memories and optionally supersede duplicates. That is clearly distinct from siblings like memory_gc_tool or memory_decay_tool, but the description never names an alternative, so the differentiation is implied rather than explicit.

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?

The phrase 'optionally supersede' plus 'default is a dry run' hints at a preview-then-apply workflow, which is useful usage guidance. However, it never says when consolidation is warranted versus running maintenance, gc, or rollup, and gives no advice on tuning threshold, so the when-to-use guidance remains implied.

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