Skip to main content
Glama

update_memory

Replace a stored fact with its updated version while keeping the old value in history. Use it when an existing memory ID has changed, not for new or unresolved facts.

Instructions

Replace a stored fact with a new version; the old version stays in history.

    Use when you already have a fact's id (from search_memory) and the user says it has
    changed, e.g. "we moved from Postgres to MongoDB".

    Do NOT use to save a new, unrelated fact (use save_memory) or to settle a
    needs_resolution result (use resolve_memory).
    

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": {
      "memory_id": "<memory_id>",
      "new_content": "<new_content>"
    },
    "name": "update_memory"
  }
}

Input Schema

NameRequiredDescriptionDefault
memory_idYesA memory id returned by an earlier call.
new_contentYesThe corrected or newer version.

Output Schema

NameRequiredDescriptionDefault
statusYes
messageYes
memory_idYesThe current version of the fact.
superseded_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.7/5.0
Behavior4/5

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

Annotations declare a non-read-only, non-destructive mutation, and the description adds meaningful context beyond them: the prior version is preserved in history, so the operation is reversible-ish and non-lossy. It stops short of covering permission requirements or what the call returns, though an output schema exists to carry that.

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 short, front-loaded blocks: behavior, when-to-use with an example, when-not-to-use with named alternatives. No filler; every sentence changes how an agent would act.

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

Completeness5/5

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

For a 2-parameter mutation with full schema coverage, annotations, and an output schema, the description supplies everything still needed: the history-retention behavior, the id precondition, and routing rules to siblings.

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 is 3, but the description adds provenance for memory_id (obtained from search_memory) and clarifies that new_content is the corrected/newer version, reinforcing the schema's intent.

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 ("Replace a stored fact with a new version") plus the key scope nuance that the old version remains in history. It explicitly separates itself from save_memory and resolve_memory, so an agent can choose without opening the sibling schemas.

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?

Gives an explicit precondition ("when you already have a fact's id (from search_memory)") and a concrete trigger example ("we moved from Postgres to MongoDB"). It also names two when-not-to-use cases with the correct alternative tool for each.

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