Skip to main content
Glama

update

Update memory metadata such as tags, weight, and needs_review flag to adjust importance after consolidation or manually. Embedding vector and ID remain unchanged.

Instructions

Update memory metadata — tags, weight, needs_review flag, etc.

Cannot change the embedding vector or id (filtered for safety). Use after consolidation or to manually adjust a memory's importance.

Read-only: no. Mutates memory row in LanceDB.

Args: id: Memory ID to update. fields: Dict of field→value pairs. Allowed: tags, weight, summary, content, needs_review, boost_factor, type, scope. Blocked: embedding, id (silently ignored).

Returns: dict: Updated memory object (embedding excluded), or {'error': 'not found'} if ID doesn't exist.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesMemory ID to update.
fieldsYesField→value pairs. Allowed: tags, weight, summary, content, needs_review, boost_factor, type, scope. Blocked: embedding, id.
Behavior5/5

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

With no annotations, the description fully discloses behavior: it mutates the memory row in LanceDB, lists allowed and blocked fields, states that blocked fields are silently ignored, and describes the return value including error case ('not found'). This is comprehensive.

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 well-structured into sections (purpose, constraints, behavior, args, returns). Every sentence adds value, and there is no redundancy or fluff. It is concise yet informative.

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 no output schema, the description explains the return structure (updated memory object or error). It fully covers the id and fields parameters, lists allowed values, and addresses error handling. No gaps remain for a mutation tool with these parameters.

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 description coverage is 100%, but the description adds significant meaning beyond the schema by explicitly listing allowed and blocked fields for the 'fields' parameter. This clarifies permissible values and constraints not evident from the schema's additionalProperties: true.

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 specifies the tool updates memory metadata including tags, weight, needs_review flag. It distinguishes from sibling tools by mentioning it is used 'after consolidation or to manually adjust a memory's importance.' The verb 'update' and resource 'memory metadata' are specific.

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 provides context on when to use ('after consolidation or to manually adjust a memory's importance') and explicitly states what cannot be done ('Cannot change the embedding vector or id'). However, it does not explicitly contrast with sibling tools like 'delete_memory' or 'forget' for when not to use.

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/turbyho/mem-context'

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