Skip to main content
Glama

unimatrix_update_memory

Update a memory with new content. The old memory is marked as superseded, and the replacement is stored and indexed in the same Space, with the same tags and memory kind, unless space_id is set. Use when a fact has fundamentally changed (e.g., user changed jobs). When the update is an explicit user correction, pass isCorrection=true so the replacement is stamped as the highest-authority truth and can never be silently overwritten by auto-inference.

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": {
      "memoryId": "<memoryId>",
      "content": "<content>"
    },
    "name": "unimatrix_update_memory"
  }
}

Input Schema

NameRequiredDescriptionDefault
contentYesThe new replacement content.
memoryIdYesThe ID of the memory to supersede.
space_idNoFile the replacement in this Space. Omit to keep the superseded memory's Space.
valid_untilNoOptional ISO 8601 expiry for the replacement. Omit to keep the old memory's expiry; an empty string removes it.
isCorrectionNoTrue when a human explicitly corrects a stored belief (replacement becomes a protected user correction).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations at all, the description carries the full burden and does substantial work: it discloses that the old memory is marked superseded rather than deleted, that the replacement inherits Space, tags, and memory kind, and that isCorrection produces a protected highest-authority record that auto-inference cannot overwrite. Gaps remain around permissions, reversibility, and behavior when memoryId does not exist, but the mutation semantics are unusually well surfaced.

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?

Three tight sentences, front-loaded with the core action and its consequence, then the trigger condition, then the parameter-specific rule. Every clause carries information an agent needs; there is no filler or restatement of the tool name.

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 five-parameter mutation tool with no annotations and no output schema, the description covers the important semantics: what happens to the old record, how inheritance works, and how corrections are protected. It stops short of covering failure modes (unknown memoryId, conflicting content) and return behavior, which an agent might need but which is a modest gap.

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 baseline would be 3, but the description adds real meaning beyond the schema: "unless space_id is set" clarifies the inheritance default, and the isCorrection explanation ("highest-authority truth... never be silently overwritten by auto-inference") is materially richer than the schema's "protected user correction" note.

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+resource ("Update a memory with new content") and immediately explains the supersede-and-replace semantics, which an agent could not infer from the name. It implicitly separates itself from unimatrix_store_memory by framing this as replacing a changed fact, but it never names that sibling, so differentiation is contextual rather than explicit.

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?

"Use when a fact has fundamentally changed (e.g., user changed jobs)" gives a clear, concrete trigger condition, and the isCorrection clause tells the agent when to take a specific parameter path. There is no explicit when-not guidance (e.g., "use store_memory for brand-new facts") and no named alternative, which keeps it below a 5.

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