Skip to main content
Glama

update_memory

Correct a memory that is out of date or wrong: saves the new content as a new version and archives the old one, keeping both in its history. Prefer this over saving a contradicting 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>",
      "content": "<content>",
      "reason": "<reason>"
    },
    "name": "update_memory"
  }
}

Input Schema

NameRequiredDescriptionDefault
reasonYesWhy it changed, e.g. 'user said Ana replaced Marco'.
contentYesThe corrected memory, one self-contained statement.
memory_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose the key non-obvious behavior: the new content is stored as a new version, the old one is archived, and both remain in history. It does not state permission requirements, what happens if memory_id is unknown, or what the call returns.

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, front-loaded with the action and its versioning consequence, then the selection rule. Nothing is redundant or filler.

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 3-required-parameter mutation with no annotations and no output schema, the description covers the core semantics (versioning, archiving, history retention) well. It leaves out the return value (e.g., the new version/memory identifier) and failure behavior, which matter more here because no output schema exists.

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 67%, with content and reason already documented in the schema. The description adds no per-parameter meaning, and memory_id has no description in either place, so the baseline 3 applies.

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?

The description gives a precise verb and object ('Correct a memory that is out of date or wrong') and immediately distinguishes the operation from the alternative path of 'saving a contradicting memory'. An agent can tell this is the correction/versioning path and not a plain save or a delete.

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?

It states the triggering condition (the memory is out of date or wrong) and explicitly routes the agent away from the contradicting-save alternative ('Prefer this over saving a contradicting memory'). It stops short of naming a sibling tool or clarifying when to use delete_memory instead of correcting.

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