Skip to main content
Glama

add_memory

Create persistent memories from facts, experiences, people details, or knowledge, with automatic embeddings for semantic search and organized long-term retrieval.

Instructions

Create a new memory with automatic embedding generation for semantic search. Use this to store facts, experiences, information about people, or any knowledge you want to retain long-term.

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": {
      "category": "<category>",
      "type": "<type>",
      "content": "<content>"
    },
    "name": "add_memory"
  }
}

Input Schema

NameRequiredDescriptionDefault
tagsNoOptional tags for flexible organization
typeYesType of memory: person, fact, memory, experience, preference, goal, or custom type
contentYesThe memory content - what you want to remember
contextNoOptional context about when/why this memory was created
categoryYesCategory for organizing the memory (e.g., 'people', 'work', 'personal', 'facts')
store_idNoStore/fork ID (default 'main')
importanceNoPriority score 1-10 (default 5). Higher importance memories are surfaced more prominently
cadence_typeNoHow often to review this memory. Default is 'monthly'
cadence_valueNoValue for cadence: day name for day_of_week (e.g., 'sunday'), or day number for calendar_day (e.g., '15' or 'last')

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.2

TDQS

A3.8/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. It usefully discloses that embeddings are generated automatically for semantic search, which is real behavioral context. However, it says nothing about whether creation deduplicates, what identifier is returned, whether it fails if the store_id doesn't exist, or how importance and cadence affect later retrieval beyond the schema text.

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 tight sentences with the core action and its key mechanism front-loaded, followed by concrete usage examples. No filler or redundancy.

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 nine-parameter creation tool with rich schema documentation, the description covers purpose and the embedding side effect adequately. The remaining gap is the absence of any statement about the return value, which matters since there is no output schema to explain what an agent gets back after creating a memory.

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 nine parameters including the cadence enum is documented in the schema itself. The description adds no parameter-level meaning beyond that, which is acceptable at the baseline but earns no extra credit.

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?

States a specific verb and resource ('Create a new memory') and adds a distinguishing behavior: automatic embedding generation for semantic search. It does not explicitly contrast with update_memory or add_relationship, so an agent must infer that those handle modification and linking rather than creation.

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 clear when-to-use guidance by enumerating what belongs here: facts, experiences, information about people, long-term knowledge. There are no exclusions or named alternatives (e.g., use add_relationship instead for links, update_memory for edits), so the guidance is positive-only.

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