Skip to main content
Glama

memory_session_summary_tool

Create or update a compact summary of a work session, recording changes, files, tools, and commit so engineering agents keep persistent context across sessions.

Instructions

Create or update one compact summary for a work session.

Args: session_id: Stable session id; repeat calls update the same record summary: One or two sentences describing what changed and why files: Changed file paths tools: Tool names used in the session commit: Git commit, defaults to HEAD title: Optional title override reason: Optional reason for the update project: Optional project root path

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_id": "<session_id>",
      "summary": "<summary>"
    },
    "name": "memory_session_summary_tool"
  }
}

Input Schema

NameRequiredDescriptionDefault
filesNo
titleNo
toolsNo
commitNo
reasonNo
projectNo
summaryYes
session_idYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.11.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description must carry behavioral load, and it does disclose the upsert semantics and that commit defaults to HEAD. It does not say whether omitted fields are preserved or cleared on a repeat call, whether the write is destructive to prior summaries, or what permissions/scope are required.

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 first sentence front-loads the purpose, and the per-parameter lines are short and scannable. The bare "Args:" docstring header is mild boilerplate but costs little.

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

Completeness3/5

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

Eight parameters with no annotations and zero schema coverage make this a moderately demanding tool, and every parameter is at least named and glossed. The main omission is merge-vs-replace behavior on repeat calls, which directly affects how the agent should pass partial payloads.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the Args block is doing real work: it explains that files are changed paths, tools are names used in the session, and commit defaults to HEAD. A few entries are near-tautological ("reason: Optional reason for the update") and formats for files/commit are not shown.

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?

"Create or update one compact summary for a work session" gives a specific verb pair and resource, and the create-or-update upsert framing is precise. It does not differentiate from near-neighbors such as memory_rollup_tool or memory_consolidate_tool, which could plausibly also produce session-level digests.

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 session_id note ("repeat calls update the same record") tells the agent this is an idempotent upsert keyed on session, which is genuinely useful selection context. However, there is no statement of when to prefer this over the sibling rollup/induce/consolidate tools, nor any when-not guidance.

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