Skip to main content
Glama

remember

Save a self-contained fact, decision, or workflow to shared memory that every coding agent reads across sessions. Store one memory per call by kind, project, and stable key, without secrets.

Instructions

Save one memory to the user's shared memory (every coding agent they use reads it). kind: episodic = something that happened (a decision, a fix, a session outcome), semantic = a fact (about the user, a project, a tool), procedural = how to do something (commands, workflows, conventions), long_term = a durable core fact about the user that every session should start with. project = repo/folder name, '' if it applies everywhere. One self-contained fact per call. Never store secrets. replaces = the id of a memory this one updates (a changed value, a reversed decision): the old one leaves search and stays in history. key = a short stable name for what the fact is about, like 'staging.db.port' or 'release.steps': saving a new memory with the same key (in the same project) replaces the old one automatically. expect = with key: the id you read as current for that key (0 if it had none); if another agent changed it since, nothing is saved and you are told what it is now. tentative = a guess or unverified finding: searchable, but kept out of session-start context until confirmed. strict = refuse to save if it seems to contradict a current memory. The reply lists related memories and flags CONFLICTs; if the new one updates one of them, call again with replaces.

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": {
      "text": "<text>"
    },
    "name": "remember"
  }
}

Input Schema

NameRequiredDescriptionDefault
keyNo
kindNosemantic
textYes
expectNo
strictNo
projectNo
replacesNo
tentativeNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations at all, the description carries the full burden and does most of it: it discloses that replaced memories leave search but stay in history, that same-key writes silently overwrite, that expect enables optimistic concurrency with nothing saved on mismatch, that tentative memories are excluded from session-start context, and that strict can refuse a save. What is missing is any statement about permissions, size/rate limits, or failure responses beyond the concurrency case.

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 core action is front-loaded in the first clause, and the dense block is organized as a de-facto field guide (kind:, project, key, expect, tentative, strict) rather than prose. It is long and a few sentences are run-ons, but almost every sentence carries decision-relevant information.

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?

This is a complex eight-parameter mutation tool with no annotations, yet the description covers scoping, overwrite semantics, concurrency, conflict resolution, and privacy guidance, and an output schema already exists so return values need not be spelled out. An agent has what it needs to call it correctly on the first attempt.

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 coverage is 0%, so the description must document all eight parameters, and it effectively does — kind, project, key, replaces, expect, tentative, strict, and text (one self-contained fact, no secrets) all get meaning beyond their bare names. The one defect is expect: the description says "0 if it had none" while the schema default is -1, leaving the sentinel behavior 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?

"Save one memory to the user's shared memory" states a specific verb (save) and resource (memory) plus its scope (shared across every coding agent the user runs). Because the tool is a write and the siblings (recall, forget, history, check) are reads/maintenance, the purpose is distinguishable at a glance.

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 gives thorough when-to-use guidance for each mode: episodic vs semantic vs procedural vs long_term, tentative for unverified guesses, strict to refuse contradictions, and the explicit loop "if the new one updates one of them, call again with replaces." It stops short of naming alternatives for read/verify paths (e.g. recall or check) or stating when not to call this at all.

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