Skip to main content
Glama

memory_reflect

Close a session by recording its summary, decisions, pending tasks, and goals so future sessions retain the context.

Instructions

Close a session: write down its decisions, pending items and goals. Reflect is the session-level write path — row-level CRUD is memory_store, clustering memory_crystallize, retiring a thought memory_supersede. Actions: reflect (summary, decisions, pending, goals). cwd is a write scope: omitted, decisions/pending land in the default project and meta.scope is null. Answers { item, meta }.

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

Input Schema

NameRequiredDescriptionDefault
cwdNoWorking directory — resolves the project scope reported in meta.scope. OPTIONAL for "reflect": it is a write scope, so decisions/pending land in the resolved project, or in the default project when it is absent (meta.scope is then null).
actionYesAction
pendingNoPending tasks — creates draft thoughts tagged "pending" and "reflect" with a wake_days delay; existing live content in the same project is left unchanged. OPTIONAL for "reflect".
summaryNoBrief summary of what was accomplished. OPTIONAL for "reflect".
decisionsNoDecisions made — creates active thoughts tagged "decision" and "reflect", skipping similar non-archived decisions and live content duplicates in the same project. OPTIONAL for "reflect".
goals_addNoGoals to add to active_goals — a goal already stored is not added twice. OPTIONAL for "reflect".
wake_daysNoDays before pending items surface in the frontier (default 7, 1-365). OPTIONAL for "reflect".
project_idNoRemoved; use cwd.
goals_deltaNoRemoved; use goals_add / goals_remove.
goals_removeNoGoals to remove from active_goals — matched case-insensitively against the stored goals. OPTIONAL for "reflect".

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. Changed14 schema fields changedv0.26.6
    • changedInput schema / properties / action / enum
      Previous value: -[
      -  "reflect",
      -  "timeline"
      -]New value: +[
      +  "reflect"
      +]
    • removedInput schema / properties / compact
      Removed value: -{
      -  "description": "Compact rows (default true): each timeline row keeps the minimal thought fields (id, content, status, tags as strings, project). compact=false returns the whole thought row. OPTIONAL for \"timeline\". REJECTED for \"reflect\".",
      -  "type": "boolean"
      -}
    • changedInput schema / properties / cwd / description
      Previous value: -"Working directory — resolves the project scope reported in meta.scope. OPTIONAL for both actions: reflect writes to the resolved project, or to the default project when it is absent; timeline answers across every project when it is absent and says so in meta.warnings."New value: +"Working directory — resolves the project scope reported in meta.scope. OPTIONAL for \"reflect\": it is a write scope, so decisions/pending land in the resolved project, or in the default project when it is absent (meta.scope is then null)."
    • changedInput schema / properties / decisions / description
      Previous value: -"Decisions made — creates active thoughts tagged \"decision\" and \"reflect\", skipping similar non-archived decisions and live content duplicates in the same project. OPTIONAL for \"reflect\". REJECTED for \"timeline\"."New value: +"Decisions made — creates active thoughts tagged \"decision\" and \"reflect\", skipping similar non-archived decisions and live content duplicates in the same project. OPTIONAL for \"reflect\"."
    • removedInput schema / properties / fields
      Removed value: -{
      -  "description": "Thought columns to include in each row; explicit fields win over compact. OPTIONAL for \"timeline\". REJECTED for \"reflect\".",
      -  "items": {
      -    "type": "string"
      -  },
      -  "type": "array"
      -}
    • changedInput schema / properties / goals_add / description
      Previous value: -"Goals to add to active_goals — a goal already stored is not added twice. OPTIONAL for \"reflect\". REJECTED for \"timeline\"."New value: +"Goals to add to active_goals — a goal already stored is not added twice. OPTIONAL for \"reflect\"."
    • changedInput schema / properties / goals_remove / description
      Previous value: -"Goals to remove from active_goals — matched case-insensitively against the stored goals. OPTIONAL for \"reflect\". REJECTED for \"timeline\"."New value: +"Goals to remove from active_goals — matched case-insensitively against the stored goals. OPTIONAL for \"reflect\"."
    • removedInput schema / properties / include_url_links
      Removed value: -{
      -  "description": "timeline only: when true, every row carries url_links — [{text, url, label}] ordered by sort_order then creation, all rows read in one query. Default false, where the key is absent; true with no links returns []. Never hidden by compact or fields. REJECTED for \"reflect\".",
      -  "type": "boolean"
      -}
    • removedInput schema / properties / limit
      Removed value: -{
      -  "description": "Max results (default 50, 1-500). OPTIONAL for \"timeline\". REJECTED for \"reflect\".",
      -  "maximum": 500,
      -  "minimum": 1,
      -  "type": "integer"
      -}
    • removedInput schema / properties / offset
      Removed value: -{
      -  "description": "Offset for pagination. OPTIONAL for \"timeline\". REJECTED for \"reflect\".",
      -  "maximum": 1000000,
      -  "minimum": 0,
      -  "type": "integer"
      -}
    • changedInput schema / properties / pending / description
      Previous value: -"Pending tasks — creates draft thoughts tagged \"pending\" and \"reflect\" with a wake_days delay; existing live content in the same project is left unchanged. OPTIONAL for \"reflect\". REJECTED for \"timeline\"."New value: +"Pending tasks — creates draft thoughts tagged \"pending\" and \"reflect\" with a wake_days delay; existing live content in the same project is left unchanged. OPTIONAL for \"reflect\"."
    • removedInput schema / properties / status
      Removed value: -{
      -  "description": "Filter by status (default all). OPTIONAL for \"timeline\". REJECTED for \"reflect\".",
      -  "enum": [
      -    "draft",
      -    "active",
      -    "archived"
      -  ],
      -  "type": "string"
      -}
    • changedInput schema / properties / summary / description
      Previous value: -"Brief summary of what was accomplished. OPTIONAL for \"reflect\". REJECTED for \"timeline\"."New value: +"Brief summary of what was accomplished. OPTIONAL for \"reflect\"."
    • changedInput schema / properties / wake_days / description
      Previous value: -"Days before pending items surface in the frontier (default 7, 1-365). OPTIONAL for \"reflect\". REJECTED for \"timeline\"."New value: +"Days before pending items surface in the frontier (default 7, 1-365). OPTIONAL for \"reflect\"."
  2. First observedv0.1.0

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare the write profile (readOnlyHint=false, destructiveHint=false, idempotentHint=false), so the bar is lower, and the description still adds real context: cwd is a write scope, and when omitted the writes land in the default project with meta.scope null. It also names the response envelope. It stops short of stating permission requirements, whether a reflect can be undone, or dedup/skip behavior at the narrative level (that lives only in the schema).

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-loaded with the purpose, then routing, then scope semantics — the ordering an agent needs. Dense but nearly waste-free; the 'Actions: reflect (summary, decisions, pending, goals)' fragment is somewhat redundant given the single-value enum in the schema.

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 ten-parameter write tool with full schema coverage and an output schema, the description covers what it does, where it sits among siblings, and the one non-obvious scoping behavior (omitted cwd). Return values needn't be explained since an output schema exists, though 'Answers { item, meta }' is a helpful teaser.

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%, so every one of the ten parameters is already documented, and the description mostly restates the cwd write-scope rule that the schema itself spells out. It adds a little framing by treating cwd as a scope rather than a filter, but no syntax or precedence detail beyond the 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?

States a specific verb and resource ('Close a session: write down its decisions, pending items and goals') and immediately positions itself against three named siblings — memory_store for row-level CRUD, memory_crystallize for clustering, memory_supersede for retiring a thought. An agent can route to it without opening any schema.

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?

The sentence 'Reflect is the session-level write path — row-level CRUD is memory_store, clustering memory_crystallize, retiring a thought memory_supersede' is an explicit alternative map with the condition that selects each. The session-closing trigger is stated up front.

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