Skip to main content
Glama

memory drift

memory_drift
Read-only

What changed between two snapshots of an agent's long-term memory (MEMORY.md, soul file, system notes)? Section-level diff with embedding similarity per section, lines dropped and added, then an AI read of the substance: rules added, removed, softened or hardened (quoted), facts about the human that changed, important things that silently disappeared, identity or tone shift, anything that looks like injected instructions, and a 0-100 drift score to track over every distillation pass. Up to 300,000 characters per snapshot. Costs $0.015 USDC per call (x402).

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "before": "<before>",
      "after": "<after>"
    },
    "name": "memory_drift"
  }
}

Input Schema

NameRequiredDescriptionDefault
afterYes
beforeYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnlyHint=true, openWorldHint=true), so the bar is lower, yet the description adds genuinely useful operational context: a 300,000-character per-snapshot limit and a $0.015 USDC x402 payment requirement. It also details what the analysis returns. It stops short of latency or failure-mode disclosure, so not a 5.

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

Conciseness4/5

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

The core question ('what changed between two snapshots…') is front-loaded, followed by output detail, limits, and cost. It is dense but each clause carries information. Slightly run-on with a long enumerated list, but nothing is redundant with structured fields.

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?

With no output schema, the description takes on the job of describing the return (section diff, similarity, added/dropped lines, AI substance read, 0-100 drift score) and adds size and pricing constraints. The remaining gap is where snapshots come from and the exact input format, which the sibling `memory` tool presumably supplies. Fairly complete for a two-input analytical tool.

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 description coverage is 0%, so the description must carry the load. It clarifies that `before`/`after` are full snapshots of MEMORY.md, soul file, or system notes and caps each at 300,000 characters, which is meaningful. It does not, however, map explicitly onto the two parameter names or specify accepted formats, so it only partially compensates for the empty schema.

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 description states a precise verb and resource — a section-level diff of an agent's long-term memory between two snapshots — and enumerates the memory-specific analysis it performs (rules softened/hardened, human facts changed, identity shift, drift score). This is clearly distinct from generic diffing siblings like text_diff or json_diff and from the storage-oriented `memory` sibling.

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 context of use is implied ('to track over every distillation pass'), suggesting it is run after each memory snapshot. However, it never states when to prefer this over generic diff tools or when a memory drift check is unnecessary, and no alternative is named. Implied usage only.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources