Skip to main content
Glama

update_memory

Update stored facts when information changes or errors are corrected. Replaces previous content entirely, preserving linkage through metadata.

Instructions

Update an existing memory when information changes or needs correction.

When to Use

  • Same fact changes ('User now prefers light mode instead of dark')

  • More precise info becomes available ('Project uses PostgreSQL 16, not 15')

  • User corrects previous information

  • Correcting errors in stored facts

Post-Response Correction Pattern

After responding, if user provides CORRECTIONS or UPDATED information:

  1. Search for existing memory on the topic

  2. If found → UPDATE the existing memory

  3. If not found → ADD new memory (don't force update on genuinely new topics)

Storage Decision

  • ADD NEW for genuinely new topics

  • UPDATE existing when same fact changes

  • If unsure, prefer ADD - storing multiple perspectives is safer than losing context

The text field replaces content entirely; metadata (runId) preserves linkage.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesMemory ID to update (from get_memory or search results).
textNoUpdated memory content - replaces previous text entirely.
metadataNoMetadata updates (only runId supported for linkage to new sessions).
Behavior4/5

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

No annotations provided, so description carries full burden. It explains that text replaces content entirely, metadata preserves linkage, and discusses update vs add decision. Lacks details on permissions or failure modes, but adequate for the context.

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?

Well-structured with sections, front-loaded purpose. Slightly verbose but each section is informative. No wasted sentences.

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?

Given no output schema, description covers usage scenarios, storage decisions, and parameter behavior. Lacks return value details but sufficient for a simple update tool.

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%, baseline 3. Description adds value by explaining that text replaces previous content entirely and metadata only supports runId, and that id is from get_memory or search results.

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?

Description clearly states 'Update an existing memory when information changes or needs correction.' Uses specific verb+resource, and differentiates from siblings like add_memory and delete_memory.

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?

Provides explicit when-to-use scenarios: same fact changes, more precise info, user corrections, correcting errors. Also includes post-response correction pattern and storage decision for clarification.

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

Install Server

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/JoeXie/remember-me'

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