Skip to main content
Glama

memory_sweep

Destructive

Executes a maintenance pass that supersedes conflicting facts, archives cold memories, and expires records past retention without deleting data, keeping recall accurate and version history readable.

Instructions

Maintenance pass: supersede conflicting facts, archive cold memories, expire memories past their retention window.

This changes records that already exist -- superseded and archived memories stop coming back from memory_recall. Nothing is deleted, so the version chain stays readable through memory_explain.

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

Input Schema

NameRequiredDescriptionDefault
tenantNo
stale_daysNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.2

TDQS

A3.7/5.0
Behavior5/5

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

Annotations declare destructiveHint=true and readOnlyHint=false, but the description supplies the context they cannot: what 'destructive' actually means here (records stop returning from memory_recall), that no physical deletion occurs, and that the version chain remains inspectable via memory_explain. That is exactly the recoverability and cross-tool-effect information an agent needs before invoking a mutating maintenance job, and it neither restates nor contradicts the hints.

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 tight blocks: the operation list first, then the consequences. Every clause carries information — no filler, no restatement of the name, and the caveat that matters (nothing is deleted) is placed before the technical detail an agent would otherwise have to ask about.

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?

The behavioral picture is unusually complete and the output schema covers return values, so the tool is safely callable on defaults. The gap is on the input side: with two undocumented parameters governing blast radius and severity, an agent cannot reason about how aggressive the sweep will be or scope it to a tenant.

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

Parameters2/5

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

Schema coverage is 0% and the description names neither parameter. `stale_days` (default 180) directly governs the 'archive cold memories' behavior described in the sentence directly above it, yet its unit, semantics, and interaction with the retention window are left entirely undefined; `tenant` scope is equally unmentioned, so the agent cannot tell whether the sweep is tenant-wide or global.

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?

Uses specific verbs against a specific resource: supersede conflicting facts, archive cold memories, expire past retention. The three named operations make the tool's scope unambiguous, and 'maintenance pass' frames it as batch hygiene rather than a single-record edit. It loses the top mark only because it never names the sibling it overlaps with (memory_forget), leaving the agent to infer the boundary from 'nothing is deleted'.

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?

'Maintenance pass' implies periodic/administrative invocation rather than per-write use, which is genuine implied guidance. However, there is no explicit statement of when to run it versus memory_forget or memory_policy, and no preconditions (does it need to run after a batch of memory_write calls?). Usage is inferable but not stated.

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