Skip to main content
Glama

update_memory

Correct a stored memory in place when it is wrong or outdated, editing only the fields you specify and re-embedding the text so search finds the updated version.

Instructions

Correct an existing memory in place.

Use this when a stored memory is wrong — a misremembered decision, a misspelled name, a fact that has since changed. It edits the original record rather than adding a related one, and re-embeds the text so search finds the correction. Only the fields you pass are changed.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tagsNoReplacement tags. Omit to keep the current tags.
sourceNoReplacement source. Omit to keep the current source.
contentNoThe corrected memory text. Re-embeds the memory when changed.
memory_idYesThe id of the memory to correct, from a previous store_memory or search_memory call.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Install Server

TDQS

A4.7/5.0
Behavior4/5

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

With no annotations provided, the description carries full responsibility for behavioral disclosure. It clearly communicates that the tool mutates the original record, re-embeds changed text so search reflects the correction, and only modifies explicitly passed fields. This provides substantial behavioral context, though it does not mention reversibility or failure modes.

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?

The description is compact, well-structured, and front-loaded with the core purpose. The first sentence states the action, and the second sentence provides targeted context without unnecessary detail. Every sentence earns its place.

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?

Given the tool's moderate complexity, the presence of an output schema, and the description covering when to use it, what it does, and its side effects, the description is complete for selecting and invoking the tool correctly. The schema fully documents parameters, and the description handles behavioral context.

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. The description adds meaningful semantic value beyond the schema by clarifying partial-update behavior: 'Only the fields you pass are changed.' This directly helps an agent understand that omitted nullable parameters preserve existing values rather than clearing them.

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 immediately identifies the specific operation: 'Correct an existing memory in place.' It clearly distinguishes itself from store_memory by stating it 'edits the original record rather than adding a related one,' making the tool's role unambiguous among the memory-related siblings.

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?

Explicit usage guidance is provided: 'Use this when a stored memory is wrong — a misremembered decision, a misspelled name, a fact that has since changed.' It also explains what this tool is not for by contrasting with 'adding a related one,' effectively steering an agent toward store_memory for new information.

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

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/OpenAgentHQ/localmem-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server