Skip to main content
Glama

add_memory

Save a durable fact or short exchange in the user's own words as a searchable note, so an AI agent can recall it later. Use for memories, not standing profile facts.

Instructions

Save one durable fact or a short exchange, in the user's words. It is written as a note (doc_ id) and learned; a standing fact about the user themselves goes to add_profile_fact.

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": "add_memory"
  }
}

Input Schema

NameRequiredDescriptionDefault
titleNo
contentYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

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 burden and does disclose meaningful side effects: the entry is persisted as a note with a `doc_` id and is also 'learned' (i.e., retrievable later). It stops short of covering duplicate handling, size limits, or permissions, so it is good but not complete for a mutation with zero annotation coverage.

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 compact sentences with the core purpose front-loaded, then the storage form, then the redirect to the sibling. No redundant restatement of the tool name and nothing that could be cut.

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 2-parameter write tool with an output schema (so return values need no explanation) and no annotations, the description covers purpose, storage effect, and the main routing decision. The remaining gap is the undocumented `title` parameter and unstated duplicate/limit behavior.

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 0%, so the description must compensate. It constrains `content` implicitly ('one durable fact or a short exchange, in the user's words'), which is genuinely useful, but says nothing about the optional `title` parameter or its empty-string default, leaving one of two params unexplained.

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?

States a specific verb ('Save') plus the resource and its granularity ('one durable fact or a short exchange, in the user's words'), and explicitly names the sibling it is NOT (add_profile_fact) for standing facts about the user. An agent can distinguish this from add_profile_fact without opening either 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?

Gives a clear inclusion rule (durable fact or short exchange, phrased in the user's words) and one explicit exclusion routing to add_profile_fact. It does not address the boundary against add_document, so the routing picture is clear but not exhaustive.

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