Skip to main content
Glama

Stash — Shared AI Memory

Update memory

update
DestructiveIdempotent

Update an existing memory entry with new content — it keeps its UUID, re-indexes atomically, and the previous text is saved as a version. Existing pins keep their approved snapshot until explicitly refreshed with pin. Use this the moment you learn something changes, improves, or was wrong. Keeping memories accurate is as important as writing them. Always prefer update over rm+write — it is safer and preserves namespace context.

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": {
      "entry_uuid": "<entry_uuid>",
      "content": "<content>"
    },
    "name": "update"
  }
}

Input Schema

NameRequiredDescriptionDefault
contentYesNew content to store. Becomes the current version; the old text stays in history.
entry_uuidYesUUID of the memory entry to update.

Output Schema

NameRequiredDescriptionDefault
brainYes
tokensYes
versionYes
unchangedNo
created_atYes
updated_atNo
next_actionsNo
namespace_pathYes
new_entry_uuidYes
old_entry_uuidYes

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A4.6/5.0
Behavior5/5

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

Goes well beyond the annotations by disclosing non-obvious traits: the UUID is preserved, re-indexing is atomic, the previous text is retained as a version, and pinned entries retain their approved snapshot. It clarifies the destructiveHint=true risk by explaining that history is preserved, so the agent understands the actual data impact rather than assuming loss.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Key behavior is front-loaded in the first sentence, and the alternative-tool guidance follows logically. The motivational sentence ("Keeping memories accurate is as important as writing them") is filler and the guidance about pins could be tighter, but nothing misleads.

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 two-parameter mutation tool with annotations and an output schema, everything an agent needs to call it correctly is present: the safety profile is disambiguated, the alternative is named, and return-value detail is correctly left to the output schema.

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%, so both parameters are already documented; the temperature here is baseline. The description reinforces that content becomes the current version, but adds no new syntax, format, or constraint information beyond what the schema states.

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 ("Update an existing memory entry with new content") and immediately distinguishes it from siblings by naming rm+write and pin. The agent can tell exactly what this does versus the surrounding toolbox without opening the schema.

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 trigger ("the moment you learn something changes, improves, or was wrong"), a named alternative to prefer over ("Always prefer update over rm+write"), and a carve-out explaining that pins keep their snapshot until refreshed with pin. This is a complete when/when-not/alternative routing rule.

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