Skip to main content
Glama

remember

Stores project memories as structured Markdown notes, validates content, and detects near-duplicates before creating files so decisions, lessons, and reminders stay searchable and organized.

Instructions

Store a memory as memory///YYYY-MM-DD-.md.

The date is local. The slug is the title cut to its first 3-5 useful words (no stopwords, nothing already in the path, at most 40 characters) unless you pass slug; the full title stays in the H1. A name that already exists gets -2, -3...

Validates the schema and looks for near-duplicates of the same project and type: at similarity >= 0.8 nothing is created (created: false) and the answer carries a "hint": revise(action="feedback", value="helpful") if it happened again, remember again with supersedes= if it changed, force=true only for a genuinely different memory. similar also lists active memories of any type in the project or _shared (they only warn). title, body, keywords and source are refused (invalid_argument) when they look like a credential (private key, cloud/API token, JWT, password in a URL): say where the secret is stored instead. Returns JSON {"created", "path", "similar": [{"path", "title", "similarity", "type", "project"}], "new_tags": [{"tag", "similar"}] (tags no other note has, with close spellings), "link_candidates": [{"path", "title", "reason"}] (up to 5 memories sharing a file or 2 tags; consider related), "keywords_hint": str (when keywords is empty and the type is not session or reminder), "links_hint": str (when it has no related, supersedes or [[wikilink]] in the body, and is not a session or reminder), "template_hint": str (when a body of 300+ characters lacks ## sections of its type's template; it never refuses)}. The last five appear only when non-empty.

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": {
      "type": "<type>",
      "title": "<title>",
      "body": "<body>"
    },
    "name": "remember"
  }
}

Input Schema

NameRequiredDescriptionDefault
dueNoYYYY-MM-DD; required for reminders.
bodyYesThe memory. Name the files, tools or commands involved: that is what is searched later.
slugNoFile-name slug: 1-40 lowercase letters, digits and hyphens, without the date. Derived from the title when omitted.
tagsNoNested with "/", e.g. dominio/auth; no ":". Use persona/<surname> for people and tema/<topic> for a subject that spans projects.
typeYesdecision | lesson | error | constraint | preference | session | reminder | insight
filesNoProject-relative files this memory is about (globs allowed).
forceNoCreate it even if a near-duplicate exists.
titleYesShort title (5-8 words); the file name is derived from it.
sourceNoCommit sha or PR.
statusNoactive | speculative | superseded | archived.active
projectNoProject; defaults to --project. "_shared" for all projects.
relatedNoRelated notes (paths or names).
keywordsNoOther words people use for this: synonyms, abbreviations, full names (mkt, marketing, "Ana Pérez"). Searched with the weight of the title.
priorityNo1-5. 5 = rule every session must know; 4 = technical decision (default for decision/constraint); 3 = record (default); 1-2 = minor.
supersedesNoMemory this one replaces; it becomes superseded.
valid_untilNoYYYY-MM-DD after which the memory no longer holds.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.16.0

TDQS

A4.5/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and does it well: it discloses the 0.8 similarity dedup threshold, the -2/-3 collision suffixing, credential-pattern refusal as invalid_argument, and which hints are advisory versus refusing (template_hint never refuses). It also enumerates the returned JSON keys and when each optional key appears.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Purpose is correctly front-loaded and nearly every sentence carries information, but the body is a dense run-on that packs path rules, dedup thresholds, credential rules and a nine-key return enumeration into one block. The JSON return listing in particular is hard to scan and would read better as a structured list.

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?

For a 16-parameter write tool with no output schema and no annotations, the definition still covers creation rules, failure modes, advisory hints and the exact return shape. An agent could call this correctly and interpret the response without opening any other source.

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 already 100%, so the baseline is 3; the description goes beyond it by explaining how slug is derived from the title (first 3-5 useful words, no stopwords, no path duplicates, 40 char cap) and that the full title survives in the H1. These are behavioral rules the schema's one-line slug description does not supply.

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?

Opens with a concrete verb plus resource and even the exact on-disk path convention (memory/<project>/<type folder>/YYYY-MM-DD-<slug>.md), which immediately separates it from read-only siblings like search or read. An agent knows precisely what artifact this call produces.

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?

Gives explicit branching guidance for the duplicate case (revise with feedback if it recurred, remember with supersedes=<path> if it changed, force=true only for a genuinely different memory) and names the alternative tool. It does not contrast against siblings like session or checkpoint, though the exception carved out for session/reminder types partially covers that.

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