Skip to main content
Glama
Omni Memory MCP

Omni Memory MCP

by allanschramm

memory_prune

Remove decayed long-term memories whose decay score falls below a configurable threshold, and preview deletions with dry-run mode.

Instructions

Cleanup decayed memories dynamically based on threshold decay score.

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_prune"
  }
}

Input Schema

NameRequiredDescriptionDefault
dry_runNoIf true, calculates which memories would be pruned without deleting them
threshold_scoreNoScore threshold below which memories are pruned (default 0)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.7

TDQS

C2.5/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full burden of behavioral disclosure for a likely mutation. It does not state that pruning is destructive or irreversible, does not explain what a "decay score" is or where it comes from, and does not describe what happens to memories at or below the threshold.

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

Conciseness3/5

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

It is a single front-loaded sentence with no padding beyond the filler adverb "dynamically." Brevity here is under-specification rather than economy, since the sentence is too short to carry the behavior of a destructive operation.

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

Completeness2/5

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

For a mutation tool with no annotations, no output schema, and a concept (decay score) that is never defined, the description leaves too much unresolved. An agent cannot tell what is destroyed, whether it is recoverable, or what the safe default invocation looks like beyond dry_run in the schema.

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?

Schema coverage is 100%, and both parameters (dry_run, threshold_score) are documented in the schema, so baseline 3 applies. The description's phrase "threshold decay score" only restates the schema's threshold_score semantics and adds no extra meaning such as default behavior or the direction of the comparison.

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

Purpose3/5

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

The description names a verb ("Cleanup") and a resource ("decayed memories") and hints at the selection mechanism (threshold decay score), so the general intent is graspable. However, "Cleanup" is vague about the concrete action: it never says whether memories are deleted, archived, or merely flagged, which is exactly what distinguishes it from siblings like memory_delete.

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

Usage Guidelines2/5

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

There is no guidance on when to prefer this tool over memory_delete or memory_update, nor any mention of prerequisites such as a decay-scoring subsystem having run. "Dynamically" implies a condition exists but the reader cannot infer the trigger or the exclusions.

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