Skip to main content
Glama

memory_add

Persist durable facts in local MemoryForge storage with optional scope and source, enabling coding agents to retain and retrieve context across sessions.

Instructions

Store a durable fact. Raw session text is distilled only if an LLM is enabled.

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

Input Schema

NameRequiredDescriptionDefault
textYes
scopeNo
sourceNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.0

TDQS

C2.9/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full disclosure burden. It does surface one real behavioral trait — that raw session text is only distilled when an LLM is enabled — but says nothing about persistence guarantees, deduplication, permission requirements, or what happens to non-distilled text.

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?

Two short sentences with the core action front-loaded and no filler. The second sentence is slightly vague about what "raw session text" refers to, but nothing is wasted.

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

Completeness2/5

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

An output schema exists, so return values need not be explained, but the definition leaves major gaps: undefined scope/source semantics, no usage routing against the eight siblings, and no annotation coverage for a write operation. For a mutation tool storing durable data, this is under-specified.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description should compensate for the three undocumented parameters. It adds no meaning for "scope" or "source" and does not clarify what form "text" should take, leaving callers to guess at two of three parameters.

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 gives a specific verb and resource ("Store a durable fact"), and the word "durable" implicitly separates it from lighter siblings like memory_note or memory_pin. It never names an alternative tool or explicitly contrasts its role, so it falls short of full sibling differentiation.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no statement of when to call memory_add versus memory_note, memory_update, or memory_search, nor any prerequisite or exclusion. The only conditional sentence concerns LLM-enabled distillation, which is a behavior note rather than routing guidance.

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