Skip to main content
Glama

storeMemory

storeMemory
Destructive

Store a memory about the user. Use memoryType "short_term" for background context that is only temporarily relevant, like "on vacation until Friday", "preparing for a board meeting on the 15th", or "working towards a deadline next week" — it expires. Use memoryType "institutional" for durable knowledge that stays relevant, like how the user or their organization works, processes, preferences, or long-lived facts. Do NOT use this for requests or tasks (reminders, scheduling); use the appropriate tool for those. Requires the "write" scope.

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": {
      "knowledge": "<knowledge>",
      "memoryType": "<memoryType>"
    },
    "name": "storeMemory"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryNoOnly for institutional memories: a short query describing the topic of this knowledge, used to find and update an existing entry rather than creating a duplicate. If omitted, a new entry is always created.
knowledgeYesThe memory to store about the user. Be specific and include relevant context.
memoryTypeYesWhether this memory is time-sensitive context that should expire ("short_term") or durable knowledge worth keeping indefinitely ("institutional").
expirationDateNoOnly for short_term memories: the date this memory should expire, in ISO 8601 format (YYYY-MM-DD or full ISO date string). Should be shortly after the event/situation ends. Defaults to 7 days from now. Ignored for institutional memories.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false and destructiveHint=true, and the description adds an auth prerequisite not present in structured fields ('Requires the "write" scope') plus the expiry behavior of short_term memories. It stops short of disclosing that a matching 'query' can overwrite an existing entry, which is the main destructive risk and only appears in the schema.

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?

Front-loaded with the core action, then organized by memoryType, then the exclusion, then the permission requirement. Every sentence contributes a decision rule or a constraint; the inline examples are short and illustrative rather than padding.

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 4-parameter mutation tool with no output schema, the description covers purpose, type selection, exclusions, and auth scope. The only meaningful gap is the dedup/overwrite semantics of 'query', which an agent would have to learn from the parameter schema.

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

Parameters4/5

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

Schema coverage is 100%, so the schema baseline already carries parameter documentation. The description nevertheless adds real meaning for memoryType by supplying distinguishing examples and the consequence ('it expires'), which goes beyond the enum labels.

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 ('Store a memory about the user') and clarifies the two memory kinds, so an agent knows exactly what gets written. It does not explicitly contrast with the read-side sibling retrieveMemory, but the verb makes the boundary obvious.

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

Usage Guidelines5/5

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

It gives explicit selection criteria between the two memoryTypes with concrete examples ('on vacation until Friday' vs. how the organization works) and names the boundary condition for not using it ('Do NOT use this for requests or tasks (reminders, scheduling)'). This is exactly the when-to-use/when-not guidance an agent needs.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources