Skip to main content
Glama

Prune / consolidate memory

mindmap_prune
Idempotent

Run a consolidation pass that recomputes memory tiers by age and usage, cooling unused memories and collapsing cold ones to a searchable one-line trace. Optionally preview changes with a dry run.

Instructions

Run the consolidation pass that the background thread runs automatically: recompute every memory's tier by age + usage, cooling unused ones and collapsing cold ones to a one-line trace (still searchable, never deleted). Nothing is destroyed.

Args: dry_run (boolean, default false) — preview changes without writing. Returns: what moved between tiers.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dry_runNoPreview without writing changes
Behavior4/5

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

Adds significant behavioral detail beyond annotations: explains that unused memories are cooled and cold ones collapsed to a trace (still searchable, never deleted). Annotations already indicate non-destructive and idempotent nature, and the description reinforces and elaborates on these traits.

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?

Two concise paragraphs: first explains the process in detail, second describes arguments and return value. No unnecessary words. Highly efficient.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's single parameter (fully documented), no output schema needed (description mentions return type), and the clear explanation of the consolidation process, the description is complete for an agent to understand usage and behavior.

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 single parameter dry_run is fully described in the schema (100% coverage). The description repeats the same info verbatim, adding no additional semantics. Baseline score of 3 is appropriate.

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 action (run consolidation pass), the resource (memory tiers), and the specific operations (recompute, cool, collapse). Distinguishes itself from siblings like mindmap_forget by emphasizing that nothing is destroyed.

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?

Implies usage as a manual trigger for the automatic consolidation background thread, but does not explicitly state when to use this tool versus alternatives like mindmap_forget or mindmap_tidy. Lacks direct guidance on selection criteria.

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/ravi-labs/mindmap-mcp-server'

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