Skip to main content
Glama

Save or Batch-Upsert Project Memory

save_project_memory

Save a memory note, session log, or atomic batch of architecture entries; matching slug or id updates in place while SQLite preserves revisions.

Instructions

Save a single memory note, session log, or atomic batch of foundational architecture nodes (via entries array). Automatically updates existing nodes matching slug or id, preserving revisions in SQLite.

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": {
      "project_path": "<project_path>"
    },
    "name": "save_project_memory"
  }
}

Input Schema

NameRequiredDescriptionDefault
idNoOptional existing ID to update in-place
slugNoCanonical slug (e.g. 'tech-stack', 'project-structure', 'build-run')
tagsNoKeyword tags for search indexing
filesNoWorkspace-relative file paths linked to this memory
titleNoTitle of memory (required if entries array is omitted)
entriesNoAtomic batch of memory entries to save together in one transaction
summaryNoMarkdown context or session log (required if entries array is omitted)
categoryNoCategory ('architecture', 'decision', 'session', 'note'); auto-inferred if omitted
project_pathYesAbsolute path to the project workspace root

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.2.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already establish that this is a non-read-only, non-destructive, non-idempotent operation. The description adds useful behavioral context beyond that: it upserts by slug or id, preserves revisions in SQLite, and supports atomic batches via entries.

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?

The description is two compact sentences with the primary save/upsert behavior front-loaded. Every sentence contributes directly to understanding what the tool does.

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 9-parameter save/upsert tool with nested entries and no output schema, the description covers the main modes and key update semantics. It could still mention return behavior or failure conditions more explicitly, but it is largely 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 description coverage is 100%, so the schema already documents all parameters in detail. The description adds only limited extra meaning about the entries array and matching by slug or id, making the baseline score appropriate.

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 uses a specific verb/resource combination ('Save ... memory') and distinguishes single-note, session-log, and batch-entry modes. It does not explicitly differentiate itself from siblings such as update_memory_node or save_global_knowledge, so it falls short of a 5.

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?

It implies usage for both creating and updating because it says existing nodes matching slug or id are automatically updated. However, it gives no explicit guidance on when to prefer this over update_memory_node, when to use batch entries versus single save, or any exclusions.

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