Skip to main content
Glama

consolidation_candidates

Find memories due for consolidation across the 3-phase pipeline (extract, merge, archive) and return structured candidate lists for the host model to process.

Instructions

Find memories due for consolidation across the 3-phase pipeline.

Returns structured candidate lists for the host model (Claude, DeepSeek, GPT, or local Ollama) to process. The server prepares prompts and candidates; the host does the reasoning and writes results back via remember()/update()/forget().

Phases:

  1. Extract (3 days): episodic → host extracts conclusions → semantic

  2. Merge (7 days): similar semantics → host merges → permanent

  3. Archive (30 days): low-weight memories → weight = 0

Read-only: yes. Only returns candidates. The host model must explicitly call remember/update/forget to persist consolidation results.

Args: scope: Scope to consolidate. Auto-detected if omitted.

Returns: dict with keys: - to_extract: list of {memory, prompt} — episodic memories to extract - to_merge: list of {memories, prompt, similarity, count} — clusters - to_archive: list of memories with weight < 0.1 - to_decay: list of episodic memories > 7 days - meta: {total_candidates, scope, timestamp}

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
scopeNoScope to find consolidation candidates for. Auto-detected if omitted.
Behavior5/5

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

With no annotations, the description fully discloses behavior: three phases with timings, division of labor (server prepares, host reasons), and that it does not persist. No contradictions.

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 description is well-structured with bullet points for phases and return keys, front-loaded with the main purpose. Could be slightly tighter but every sentence adds value.

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

Completeness5/5

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

Given complexity, no output schema, and no annotations, the description covers inputs, phases, return dict structure, and interaction with the host model. Fully complete.

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% with a description for the sole parameter 'scope'. The description repeats 'Scope to consolidate. Auto-detected if omitted.' adding minimal value beyond the schema. The overall context helps but not directly for parameter semantics.

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 clearly states it finds memories due for consolidation across a 3-phase pipeline, with specific phases and return types. It distinguishes from sibling tools like remember/update/forget by emphasizing it is read-only and only returns candidates.

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

Usage Guidelines5/5

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

Explicitly says 'Read-only: yes. Only returns candidates. The host model must explicitly call remember/update/forget to persist.' This tells when to use (to get candidates) and when not (for writing results).

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/turbyho/mem-context'

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