Skip to main content
Glama

Update memory

update-memory
DestructiveIdempotent

Update a stored semantic memory in place by its id.

WHEN TO USE:

  • To correct or refine a memory — prefer this over forget plus remember, which mints a new id and drops the memory's history

PARAMETERS:

  • memory_id: from a prior remember or recall

  • Only the fields supplied change; the memory is re-embedded when text changes

RETURNS: The updated 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>"
    },
    "name": "update-memory"
  }
}

Input Schema

NameRequiredDescriptionDefault
tagsNoNew labels (omit to keep current).
textNoNew memory content (omit to keep current).
memory_idYesThe memory id to update (e.g. 'mem_...').
memory_typeNoNew classifier (omit to keep current).

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?

Annotations already declare destructiveHint=true and idempotentHint=true, so the safety profile is largely covered. The description still adds value beyond them: it states that only supplied fields change (patch semantics) and that the memory is re-embedded when text changes, which carries latency/cost implications an agent should know. It does not describe failure modes or whether the old text is recoverable.

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 purpose sentence followed by labeled WHEN TO USE, PARAMETERS, and RETURNS blocks. Every line carries information; 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.

Completeness5/5

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

With only 4 flat parameters, no output schema, and full annotation coverage, this description covers what an agent needs: patch semantics, id provenance, re-embedding behavior, and a one-line return statement. Nothing material is missing.

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 description coverage is 100% and the schema already says "omit to keep current" for each optional field, so the baseline is 3. The description adds marginal meaning by stating memory_id comes from a prior remember or recall and by flagging the re-embedding consequence of changing text, but it does not clarify memory_type or tags semantics beyond the schema.

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 opening sentence gives a specific verb and resource ("Update a stored semantic memory") plus the scoping constraint "in place by its id", which already hints at the distinction from forget/remember. The full sibling differentiation is pushed into the WHEN TO USE block rather than the purpose statement, which keeps it from a perfect 5.

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 explicitly names the alternative pattern (forget plus remember) and gives the reason to prefer this tool: a new id would be minted and history dropped. That is real routing guidance, not implied. It stops short of a full 5 because no when-not-to-use condition or prerequisite is stated.

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.