Skip to main content
Glama
Open Agent Memory

Open Agent Memory

Add an OAM memory

memory_add

Retain one explicit user statement as learned memory for later cited recall; use it only when the user asks you to remember something.

Instructions

Retain one explicit user statement in OAM for later cited recall. Use this only when the user explicitly asks to remember something; the statement becomes learned memory, not a document.

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_add"
  }
}

Input Schema

NameRequiredDescriptionDefault
contentYesThe exact user statement to retain.
event_timeNoTimezone-aware ISO 8601 event time. Defaults to the current time.
idempotency_keyNoHeader-safe key, 1-200 characters from A-Z, a-z, 0-9, dot, underscore, colon, or hyphen. Reuse it when retrying this exact write; omit to generate a new key.
learning_eligibleNoWhether OAM may learn from this statement.

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?

Annotations already declare a non-read-only, non-destructive, closed-world write. The description adds genuinely new behavior: the write is durable ('retain... for later cited recall') and the content is treated as learnable memory rather than stored document text. It does not mention deduplication, retry semantics, or what happens with learning_eligible=false, but the core mutation profile is clear.

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 sentences: purpose first, then the usage constraint and the memory-vs-document distinction. No filler, and the most decision-relevant clause (explicit user request) is not buried.

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 four-parameter write with fully documented schema and no output schema, the description covers what it is, when to call it, and how the payload is interpreted. A note on whether a memory id is returned or how repeats are handled would close the last gap.

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 coverage is 100% and each parameter carries its own description, including idempotency_key and learning_eligible, so the description only adds the 'one statement per call' framing implied by 'one explicit user statement'. That is marginal value beyond the schema, which is the expected baseline here.

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 and resource ('Retain one explicit user statement in OAM') plus the downstream purpose ('for later cited recall'), and explicitly separates it from the sibling memory_add_document by saying the statement becomes learned memory 'not a document'.

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 activation condition ('only when the user explicitly asks to remember something') and an exclusion (documents go elsewhere), which is more than most definitions provide. It stops short of naming memory_add_document as the alternative for document-shaped input, leaving that inference to the agent.

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