Skip to main content
Glama

save_memory

Stores persistent context notes, architectural decisions, task handoffs, lessons, beliefs, or heuristics in a local or global Memory Vault, masking secrets and isolating directories.

Instructions

Saves a persistent context note, architectural decision, task handoff, lesson, belief, or heuristic into the workspace or global shared Memory Vault. Masks secrets and provides directory isolation.

Args: title: Short descriptive title of the memory entry. content: Detailed markdown notes, architectural rationale, or handoff context. workspace_dir: Workspace root directory. Empty = engine.default_workspace from the config, else the server's current directory. kind: Entry category ('context' | 'decision' | 'handoff' | 'lesson' | 'belief' | 'heuristic'). tags: Optional list of keyword tags for filtering and discovery. memory_id: Optional custom identifier (alphanumeric/hyphen/underscore). Auto-generated if omitted. scope: Storage scope ('local' for workspace, 'global' for cross-workspace). Default is 'local'. confidence: Certainty score in [0.0, 1.0] for belief/heuristic-style entries. Default 1.0. project: Optional project slug (e.g. 'botex', 'tw3se', 'swarm') for logical partitioning. origin: Optional provenance identifier '@'. Falls back to X-Agent-Id@X-Host session header or 'botex'. Reserved identity claims ('human', 'human-curated', 'operator', 'curator') are rejected.

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": {
      "title": "<title>",
      "content": "<content>"
    },
    "name": "save_memory"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindNocontext
tagsNo
scopeNolocal
titleYes
originNo
contentYes
projectNo
memory_idNo
confidenceNo
workspace_dirNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv2.1.0
    • addedInput schema / properties / confidence
      Added value: +{
      +  "default": 1,
      +  "title": "Confidence",
      +  "type": "number"
      +}
    • addedInput schema / properties / origin
      Added value: +{
      +  "default": "",
      +  "title": "Origin",
      +  "type": "string"
      +}
    • addedInput schema / properties / project
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Project"
      +}
  2. Changed1 schema field changedv1.1.2
    • addedInput schema / properties / scope
      Added value: +{
      +  "default": "local",
      +  "title": "Scope",
      +  "type": "string"
      +}
  3. Changed1 schema field changedv1.1.1
    • changedInput schema / properties / workspace_dir / default
      Previous value: -"."New value: +""
  4. First observedv1.0.0

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and does real work: it discloses that secrets are masked, that directory isolation applies, that 'local' vs 'global' scopes differ, and that reserved origin identities ('human', 'operator', 'curator') are rejected. It does not state permissions or failure modes beyond the origin rejection, which keeps it from a 5.

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 summary sentence followed by a clean per-argument list; every line adds information an agent needs. It is on the long side, but the length is driven by ten undocumented parameters rather than padding.

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?

An output schema exists so return values need no explanation, and the description covers purpose, all parameter semantics, storage scope, identity constraints, and secret handling. For a ten-parameter mutation tool with zero annotation coverage, nothing essential for a correct call is missing.

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

Parameters5/5

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

Schema description coverage is 0%, so the description must compensate entirely, and it does: all ten parameters get meaning, including fallback behavior for workspace_dir, auto-generation for memory_id, the enum values for kind and scope, the [0.0, 1.0] range for confidence, and the origin fallback chain.

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?

Opens with a specific verb ('Saves') and resource ('persistent context note... into the workspace or global shared Memory Vault'), and enumerates the entry kinds so the agent knows exactly what content belongs here. It stops short of naming sibling tools like read_memory or search_memory, so differentiation is implied rather than stated.

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 kinds list ('architectural decision, task handoff, lesson, belief, heuristic') implicitly signals when to use it, but there is no explicit when-to-use / when-not-to-use guidance and no mention of alternatives such as patch_memory_section for editing existing entries versus creating new ones.

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