Skip to main content
Glama
fabiolenine

mem0-mcp-selfhosted

by fabiolenine

update_memory

Update an existing memory's text by specifying its UUID and replacement content. Returns a task ID for async processing, allowing you to poll for results and see change history.

Instructions

Update an existing memory's text.

    ASYNCHRONOUS by default (when MEM0_ASYNC_INGEST != false): validates the
    memory exists, then returns {"status": "queued", "task_id", ...} immediately
    while the re-embed + metadata re-classification (a slow llama3.1:8b call) run in
    the background worker — so the call never times out the client. Poll
    memory_task_status(task_id) for the result (memory_id / UPDATE event);
    memory_history(memory_id) shows the old-vs-new diff. An identical re-submit
    while the job is still active returns the same task_id (no double-apply). Set
    MEM0_ASYNC_INGEST=false for the synchronous path.
    

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
textYesReplacement text for the memory.
memory_idYesExact memory UUID to update.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior5/5

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

With no annotations, the description thoroughly covers the async behavior, re-embedding process, no double-apply guarantee, and polling mechanism, providing full transparency.

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?

The description is a single well-structured paragraph that front-loads the main action and then explains async details, though it could be slightly more concise.

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 complexity of async behavior and an existing output schema, the description provides all necessary context for correct invocation and result handling, including polling instructions.

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 100% and parameter descriptions are adequate (e.g., 'Replacement text for the memory.'). The description adds context about the update but does not significantly enhance parameter understanding beyond the schema.

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 clearly states the tool updates an existing memory's text, with the verb 'update' and the resource 'memory's text', distinguishing it from siblings like add_memory or 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 Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description explains when to use this tool (to update existing memory) and provides context on async behavior and polling, but does not explicitly list when not to use it or alternatives.

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/fabiolenine/mcp_deepmen0'

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