Skip to main content
Glama

memory_crystallize

Create and maintain additive cluster graphs that group related thoughts into clusters with member edges, so agents can organize and recall connected context across sessions.

Instructions

Read and maintain the cluster graph: cluster thoughts plus the cluster edges pointing at their members. Additive only: nothing is deleted or overwritten. Answers { item, meta } / { items, meta }, with one documented exception: action=graph answers { items: nodes, edges, meta }, because a graph is two collections. Actions: graph, cluster, auto_cluster (Union-Find; preview→confirm, clusters created only with confirm: true). memory_recall action=search with is_cluster=true reads them; this tool creates them.

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": {
      "action": "<action>"
    },
    "name": "memory_crystallize"
  }
}

Input Schema

NameRequiredDescriptionDefault
cwdNoWorking directory — auto-resolves project. OPTIONAL for "graph" and "cluster" (always pass for those; auto_cluster operates globally). ACCEPTED AND IGNORED for "auto_cluster".
tagsNoTags. OPTIONAL for "cluster". REJECTED for "graph" and "auto_cluster".
limitNoMax nodes to return (default 500, 1-2000). OPTIONAL for "graph". REJECTED for "cluster" and "auto_cluster".
titleNoCluster title. OPTIONAL for "cluster". REJECTED for "graph" and "auto_cluster".
actionYesAction
fieldsNoFields to include in each node and edge; intersected with the columns the graph offers. OPTIONAL for "graph". REJECTED for "cluster" and "auto_cluster".
offsetNoOffset for pagination (default 0, 0-1000000). OPTIONAL for "graph". REJECTED for "cluster" and "auto_cluster".
statusNoFilter by status (default: active). OPTIONAL for "graph". REJECTED for "cluster" and "auto_cluster".
confirmNoCONSUMED by "auto_cluster" (true creates clusters; false/omitted previews). REJECTED for "graph" and "cluster".
dry_runNoRemoved; use confirm.
project_idNoRemoved; use cwd.
min_membersNoMin members per cluster (default from config). OPTIONAL for "auto_cluster". REJECTED for "graph" and "cluster".
thought_idsNoThought IDs. REQUIRED for "cluster". REJECTED for "graph" and "auto_cluster".
min_age_daysNoMin age in days (default from config). OPTIONAL for "auto_cluster". REJECTED for "graph" and "cluster".
preview_tokenNoOPTIONAL preview token returned by a prior preview. CONSUMED by "auto_cluster" (true executes with token validation; missing/stale fails). REJECTED for "graph" and "cluster".
min_similarityNoMaximum cosine distance between neighbours (0-1; lower is tighter, default from config). OPTIONAL for "auto_cluster". REJECTED for "graph" and "cluster".

Output Schema

NameRequiredDescriptionDefault
resultYesAction payload (structuredContent.result); JSON mirror of content[].text, except the raw-text config action, whose result is { item: { text }, meta }

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior4/5

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

Adds real behavior beyond the sparse annotations: 'Additive only: nothing is deleted or overwritten' clarifies the non-destructive, idempotent:false profile, and the preview→confirm gate for auto_cluster is disclosed. Remaining gaps are pagination/rate-limit behavior, though limit/offset are schema-documented.

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?

Front-loads purpose, then scope constraint, then return shapes, then action list, then sibling routing — a sensible order with little waste. Sentences are dense but each carries information.

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 16-parameter, multi-action mutation tool with an output schema, the description covers what is created, what is safe (additive), the response envelope including the graph exception, and the confirmation workflow. It does not address permissions or ordering of a preview token workflow in depth, but nothing critical is missing.

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 100% with per-action OPTIONAL/REJECTED notes, so the schema does the parameter work. The description only reinforces the confirm gating and the graph return shape rather than adding new parameter meaning.

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?

States a specific verb+resource ('Read and maintain the cluster graph: cluster thoughts plus the cluster edges pointing at their members') and enumerates the three actions (graph, cluster, auto_cluster). It also draws an explicit boundary with the sibling: 'memory_recall action=search with is_cluster=true reads them; this tool creates them.'

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

Usage Guidelines4/5

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

Explicitly routes the agent: use memory_recall for reading clusters, use this tool to create/maintain them, and use auto_cluster only with confirm: true after a preview. It does not explicitly frame when to prefer 'cluster' (manual, thought_ids) over 'auto_cluster' (Union-Find), leaving that choice to the schema.

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