Skip to main content
Glama

Save Memory

save_memory
Idempotent

Safely write or update memory Markdown files with secret blocking, file locking, UTF-8/LF normalization, and automatic Last Verified date stamping; no git commit or push.

Instructions

Safely write/update a memory Markdown file with built-in secret blocking, file locking, UTF-8/LF normalization, and automatic Last Verified date stamping. Does NOT run git commit or git push.

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

Input Schema

NameRequiredDescriptionDefault
moduleNoModule slug (without .md) — required for 'module'
contentYesFull Markdown content to write
projectNoRequired for 'overview' and 'module'
target_typeYesWhich memory layer to write
archive_nameNoArchive filename slug (without .md) — required for 'archive'
update_verified_dateNoAuto-update '最后核对:YYYY-MM-DD' on module files (default: true)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare the mutation/safety profile (readOnlyHint=false, destructiveHint=false, idempotentHint=true), so the bar is lower, and the description still adds real value beyond them: secret blocking, file locking, UTF-8/LF normalization, and automatic Last Verified stamping. It stops short of saying what happens when the secret filter triggers (rejected write vs. redaction) or that content replaces the whole file rather than merging.

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?

Two sentences, no filler, and the behavioral guarantees are front-loaded right after the verb so the agent reads the safety characteristics first. The final negative clause is short and carries distinct information rather than restating the first sentence.

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 six-parameter mutating tool with no output schema, the description covers the important behavioral and safety surface plus a clear non-goal, which is most of what an agent needs to call it correctly. The remaining gap is the return value (file path, confirmation, or failing behavior on blocked content), which the absence of an output schema leaves unaddressed.

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 six parameters including the target_type enum and the conditional module/project/archive_name requirements is already documented in the schema. The description only echoes 'Last Verified date stamping', which maps to update_verified_date, without adding format or conditional logic beyond the schema.

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 pair (write/update) plus a concrete resource (a memory Markdown file) and adds an explicit negative boundary ('Does NOT run git commit or git push'), so an agent knows this is the persistence step, not a version-control operation. It never names the read-oriented siblings (get_module_memory, search_memory, etc.), so the differentiation is inferred from the write verb 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?

Usage is implied by the phrase 'write/update a memory ... file' against a sibling set that is entirely read-only, and the target_type enum signals which memory layers are eligible. However, there is no explicit when-to-use/when-not guidance, no prerequisites (e.g. that content is full-document replacement), and no pointer to any alternative tool for other cases.

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