Skip to main content
Glama

Save Memory

memory-ingest

Save facts, preferences, decisions, corrections, or context to long-term memory with automatic type/tag classification and duplicate checks before saving.

Instructions

Save a fact, preference, decision, correction, or context to long-term memory. Auto-classifies type/tags if omitted. Auto-checks for duplicates before saving unless skipDedupe=true.

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": {
      "content": "<content>"
    },
    "name": "memory-ingest"
  }
}

Input Schema

NameRequiredDescriptionDefault
tagsNoTags.
tierNoMemory tier. "scratch" = session-only, never promoted by consolidation, auto-purged after 24h. Use for exploratory notes you may want to discard. Default short-term.
typeNoMemory type.
topicNoTopic within the domain.
domainNoDomain/project namespace.
originNoProvenance. Default "user" — explicit ingest is treated as user-asserted and protected from auto-merge / archive. Set "derived" when the caller is a downstream pipeline writing inferences.
sourceNoSource identifier (e.g. stable sourceId from an upstream system). Stored on the chunk and returned on search.
contentYesThe memory to store.
createdAtNoISO 8601 timestamp override. Default: ingest time (now). Use this when ingesting memories that ORIGINALLY happened at a different time — meeting notes from yesterday, chat history from last week, dated documents from years ago. The timestamp flows into the contextual prefix embedded with the content, giving the retrieval pipeline a temporal signal it would otherwise lose. Critical for benchmarks (LoCoMo) and real workloads that backfill historical context (Cortex ingest of dated docs, importing chat history from Slack/Discord).
sentimentNoEmotional sentiment from Persona.
importanceNoImportance 0.0-1.0 (default: 0.5).
skipDedupeNoIf true, bypass the 0.75-similarity duplicate check. Use when the caller is writing structured refinements of prior memories (e.g. action items derived from a meeting note) and dedupe would swallow the write.
emotionalArousalNoEmotional arousal from Persona. High arousal = stronger encoding.
emotionalValenceNoEmotional valence from Persona. Boosts importance for charged memories.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.6.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose two real behaviors beyond the schema: automatic type/tag classification when omitted, and a duplicate check before saving that skipDedupe bypasses. It stops short of the important unknowns — what happens on a duplicate hit (silent drop? merge? error?), what the call returns, and whether the write is namespace/permission-scoped.

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 short sentences, front-loaded with purpose, then defaults, then the dedupe exception. Nothing is redundant with the title and every clause conveys a distinct behavior.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 14-parameter mutation tool with no annotations and no output schema, the description covers intent, defaults, and dedupe but omits the outcome model — duplicate-handling result, return value, and side effects on existing memories. The exhaustive schema compensates for most parameter-level gaps, so this is adequate but not complete.

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% and the schema is unusually rich, so the baseline is 3. The description does add one genuinely new semantic — that type and tags are auto-classified if omitted — which the schema does not state, but it says nothing about the other 12 parameters (tier, domain, origin, importance, etc.), leaving that added value thin.

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 opens with a specific verb and resource ('Save a fact, preference, decision, correction, or context to long-term memory') and enumerates the exact content types, letting an agent match intent quickly. It does not differentiate against plausible siblings such as memory-import, memory-kg-add, or memory-diary-write, so sibling routing must be inferred from names alone.

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 rather than stated: the target is 'long-term memory', and the skipDedupe clause hints at the refinement-of-prior-memories case, but the description never says when to prefer this over memory-import (bulk), memory-kg-add (graph facts), or memory-diary-write (narrative). No explicit exclusions or prerequisites are given.

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