Skip to main content
Glama

update_memory

Modify an existing memory's content, confidence score, or type by ID to keep stored AI context accurate and current across sessions.

Instructions

更新指定 ID 记忆的内容、置信度或类型

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "id": "<id>"
    },
    "name": "update_memory"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYes要更新的记忆 ID
typeNo新的记忆类型(可选)
contentNo新的记忆内容(可选)
confidenceNo新的置信度 0-1(可选)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full disclosure burden. It never states whether this is a partial or full overwrite, whether previous content is lost irreversibly, whether confidence is clamped, or what happens when the ID does not exist — all material for a mutation tool with zero annotation coverage.

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?

A single front-loaded clause with no wasted wording, scoping the operation by ID before listing the mutable fields. It is efficient, but its brevity borders on under-specification rather than tight editing.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a mutation tool with no annotations and no output schema, the description should at minimum clarify partial-update behavior and error/precondition semantics. Field names are covered by the schema, but the behavioral contract an agent needs before calling it is missing.

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 description coverage is 100%, so all four parameters (id, type, content, confidence) are already documented in the schema, including the enum set and the 0-1 confidence range. The description merely restates the same field list and adds no format, constraint, or interaction detail.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb (更新) plus the resource (指定 ID 的记忆) and enumerates the mutable fields (内容、置信度、类型). An agent can distinguish it from add_memory/delete_memory by the mutation semantics, though the description never names those siblings explicitly.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

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

No guidance on when to prefer this over add_memory or delete_memory, no preconditions (e.g. the memory must already exist, ID must come from search_memories/get_memories), and no statement that fields not supplied are left unchanged.

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