Skip to main content
Glama

consolidate

Destructive

Clean shared agent memory by reporting changes first, then merging duplicate notes, removing stale threads, releasing orphan claims, pruning ended tasks, and collecting unused spool files/worktrees.

Instructions

Periodic memory hygiene. dry_run=True (default) reports only.

merge_dup_notes : intra-thread cosine ≥ note_cosine, keep oldest idle_stale : active threads not touched in stale_days dedupe_verbatim : exact text + (if embeddings) cosine ≥ verbatim_cosine release_orphan : claim ≥ orphan_days old, no progress past claim mark prune_tasks : ended task rows outside retention bounds gc_task_spool : task spool files with no retained task row gc_worktrees : safely disposable expired task checkouts and branches

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": "consolidate"
  }
}

Input Schema

NameRequiredDescriptionDefault
dry_runNo
stale_daysNo
note_cosineNo
orphan_daysNo
verbatim_cosineNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.13.2

TDQS

A3.9/5.0
Behavior4/5

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

Annotations mark this as a destructive, non-idempotent write, while the description adds the crucial dry_run default and specifies what each operation changes or retains: keeping oldest notes, releasing orphan claims, pruning task rows, and GCing spool files/worktrees. It does not discuss authorization or post-dry-run irreversibility, but it covers the main behavioral effects beyond annotations.

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 definition is front-loaded with the safety-relevant dry_run behavior, then lists operations in a compact aligned format. Every line maps to a specific operation or default and there is no filler.

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?

This is a complex destructive multi-operation tool, but the output schema exists so return values need not be explained, and annotations already signal destructiveness. The description is largely complete, though it does not explicitly say whether all listed operations run together or can be selected, and retention bounds for prune_tasks are not detailed.

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 carry the parameter burden, and it names all five parameters within operation rules: dry_run reporting, stale_days, note_cosine, orphan_days, and verbatim_cosine. It does not restate types or defaults beyond dry_run, but the semantic meaning of each threshold is adequately conveyed.

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 periodic memory hygiene and enumerates seven concrete operations with conditions, so the resource and actions are clear. It does not explicitly differentiate itself from overlapping siblings such as db_compact, db_deduplicate_embeddings, or agent_memory_cleanup.

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?

'Periodic memory hygiene' implies a maintenance cadence, and the dry_run default gives a safe preflight signal, but there is no explicit when-to-use, when-not-to-use, or alternative-tool guidance. An agent must infer when to choose this broad consolidator versus more focused cleanup tools.

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

Deploy Server

Other Tools