Skip to main content
Glama

memory_save

Save a fact to the site’s persistent memory so it survives across sessions and is shared by every connected agent. Store conventions, decisions, brand rules, or pitfalls by key and value.

Instructions

Save a fact to this site's persistent memory so it survives across sessions and is shared by every connected agent. Use for project conventions, decisions, brand rules, and pitfalls (e.g. key="brand.primary_color", value="#f8ca50"). Overwrites an existing key.

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": {
      "key": "<key>",
      "value": "<value>"
    },
    "name": "memory_save"
  }
}

Input Schema

NameRequiredDescriptionDefault
keyYesShort stable identifier, e.g. "brand.font" or "deploy.notes".
valueYesThe fact to remember.
categoryNogeneral

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.1.2

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description carries the full behavioral burden and does disclose the two most consequential traits: the data persists across sessions and is visible to every connected agent, and writes to an existing key overwrite it. It omits permission/auth requirements, size limits, and whether overwriting preserves the previous category.

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 tight sentences, front-loaded with the purpose and scope before the usage examples and the overwrite caveat. No filler or repetition.

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 three-parameter write tool with no annotations and no output schema, the definition covers persistence, cross-agent sharing, and overwrite semantics well. The main remaining gap is the undocumented category parameter, which the description never mentions.

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 coverage is 67%, so key and value are already documented; the inline example (key="brand.primary_color", value="#f8ca50") largely restates the schema's own naming examples. The category parameter has a default but no description in either the schema or the description, leaving its meaning ambiguous.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description gives a specific verb and resource ("Save a fact to this site's persistent memory") plus the effect (survives across sessions, shared by every connected agent). The verb alone separates it from siblings memory_get, memory_list, and memory_delete without opening any schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It names concrete content to store (project conventions, decisions, brand rules, pitfalls), which tells an agent when this tool applies. It also warns that an existing key is overwritten, but gives no explicit when-not (e.g. use lesson_save or snippet_save for larger artifacts) and no read-before-write guidance.

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