Skip to main content
Glama

PruneMemory

Permanently remove decayed and soft-deleted episodic memories that fall below a defined score floor, freeing storage while preserving newer recollections.

Instructions

Hard-delete decayed and soft-deleted episodic memories.

Removes soft-deleted rows and any active episodic rows whose maximum possible decay score has fallen below score_floor (~115 days at default).

Args: score_floor: Rows with max possible decay score below this are removed. Default 0.05. Set lower (e.g. 0.01) to be more conservative.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
score_floorNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv0.1.0

TDQS

A4.3/5.0
Behavior4/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It clearly states the operation is a hard delete, defines the exact selection rule (max possible decay score below score_floor), and even translates the default into a time estimate (~115 days). It does not mention side effects like return counts, but the output schema covers return structure.

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 compact and front-loaded: the first sentence states the purpose, and the following lines explain the selection rule and parameter without redundancy. Every sentence earns its place, and the Args block is clearly formatted for quick scanning.

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?

For a one-parameter tool with an output schema and no annotations, the description covers purpose, destructive behavior, selection criteria, and parameter semantics well. The only notable gap is explicit guidance on when to invoke this tool relative to sibling tools like Forget, but the core operational context is complete.

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

Parameters5/5

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

The input schema only gives type and default for score_floor, with 0% schema description coverage. The description fully compensates with a dedicated Args section explaining what score_floor controls, the default value, and how to adjust it for a more conservative prune. This exceeds what the schema provides.

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 opening phrase 'Hard-delete decayed and soft-deleted episodic memories' names a specific verb (hard-delete), a clear resource (episodic memories), and a precise scope (decayed and soft-deleted). This clearly distinguishes the operation from generic memory operations and from siblings like Recall or MemoryStats.

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 description implies this is a maintenance/cleanup operation for removing decayed or already-soft-deleted rows, but it never explicitly states when to use PruneMemory versus alternatives such as Forget. There are no exclusions or routing hints to sibling tools, only parameter-tuning guidance ('Set lower to be more conservative').

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/fredluckham/kiro-recall'

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