Skip to main content
Glama

memory_edit

Edit an existing memory's content or metadata to correct vendor information, update prices, or add context. Changes are tracked with an audit trail.

Instructions

Edit an existing memory's content or metadata.

Use this to correct wrong vendor information, update prices, or add context to an existing memory. Tracks edit history.

Args: id: The memory ID to edit. content: New content to replace the existing content. If omitted, content is unchanged. metadata: JSON string of metadata fields to merge into existing metadata. Example: '{"vendor": "bitrefill.com", "note": "price updated"}'

Returns: The updated memory record with old_content_preview for audit trail.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYes
contentNo
metadataNo{}
Behavior4/5

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

Description discloses that it tracks edit history and returns old_content_preview for audit trail. It also explains parameter behavior (content unchanged if omitted, metadata merged). Without annotations, this is good but could mention permissions or reversibility.

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?

Description is concise, uses a clear structure with a usage statement and args breakdown. Every sentence adds value without redundancy.

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?

With 3 parameters, no output schema, and 23 siblings, the description covers purpose, usage, parameters, and return behavior. It lacks error handling details but is adequate for a basic edit tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema has 0% description coverage, but the description adds full semantics for all three parameters: id (required), content (optional, replaces if provided), and metadata (JSON string, merges with example). This adds significant value beyond the schema types.

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 'Edit an existing memory's content or metadata' and provides specific use cases like correcting vendor info, updating prices, adding context. This distinguishes it from siblings such as memory_store (create) or memory_list (list).

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?

Explicitly states when to use: to correct, update, or add context to existing memories. While it doesn't explicitly list alternatives, the context and examples imply it's for edits only, not for creation (memory_store) or retrieval (memory_query).

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/singularityjason/lightning-memory'

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