Skip to main content
Glama

Memory Summarize & Store

memory_summarize_and_store

Distill session narratives into stored memory entries at the end of meaningful sessions, preserving decisions and context for future retrieval.

Instructions

Distill a session summary into a memory entry and store it. Pass a full narrative description of what happened — the more detail the better. Call at the end of meaningful sessions.

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": {
      "session_summary": "<session_summary>",
      "scope": "<scope>"
    },
    "name": "memory_summarize_and_store"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindNoOptional classifier stored in metadata.kind. Pass 'checkpoint' for end-of-session checkpoints so get_project_history can build the project timeline.
forceNoDeprecated: use `resolution: "confirm"`. Set true to skip near-duplicate detection.
scopeYes'org' to share with the whole team, 'personal' for private notes.
projectNoOptional project tag.
resolutionNoConflict resolution after a near-duplicate is found: 'confirm' stores anyway, 'cancel' skips.
handoff_docNoPath to the session handoff doc, stored in metadata.handoff_doc. When storing a checkpoint, pass the final reconciled handoff path (e.g. 'handoffs/<project>-session-handoff-YYYY-MM-DD-NN.md') so get_last_checkpoint returns it without parsing the body.
session_summaryYesA narrative description of the session to memorize. Include decisions made, context established, and anything useful for future sessions (max 20,000 characters).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.6.0
    • addedInput schema / properties / handoff_doc
      Added value: +{
      +  "description": "Path to the session handoff doc, stored in metadata.handoff_doc. When storing a checkpoint, pass the final reconciled handoff path (e.g. 'handoffs/<project>-session-handoff-YYYY-MM-DD-NN.md') so get_last_checkpoint returns it without parsing the body.",
      +  "type": "string"
      +}
  2. First observedv1.4.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false, and idempotentHint=false, so the mutation profile is covered. The description adds the behavioral cue that richer narratives are preferred and that timing should be session-end, but says nothing about near-duplicate detection or the confirm/cancel conflict flow, which is the one genuinely surprising behavior of this tool.

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?

Three short sentences with the action front-loaded, then the input expectation, then the timing trigger. Nothing is redundant and nothing is buried.

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 7-parameter write tool with no output schema, the description covers the core action, the input shape expectation, and the invocation timing. The untold parts — duplicate-resolution loop, checkpoint/handoff reconciliation — are adequately handled inside the schema property descriptions, so the description is nearly complete without being padded.

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 parameter including kind, resolution, and handoff_doc is already documented in the schema. The description only adds emphasis ('the more detail the better') to session_summary, which is a marginal contribution; baseline 3 applies when the schema carries the load.

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?

The description names a specific verb pair and resource: 'Distill a session summary into a memory entry and store it.' That is clearly distinct from memory_recall/memory_forget. It does not, however, differentiate itself from the sibling memory_store or from checkpoint, which an agent could plausibly confuse it with.

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?

'Call at the end of meaningful sessions' gives a genuine triggering condition, which is more than most definitions offer. But there is no when-not guidance and no explicit routing against memory_store or checkpoint, so an agent must infer which memory-writing tool to pick.

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

Deploy Server

Other Tools