Skip to main content
Glama

memory_update

Destructive

Updates an agent memory record at the user's request; passed fields are replaced, and a new level, projectID or repositoryID moves it. Authors edit their own records, moderators (memory:moderate) any but user-level ones; an author's edit makes the record personal and unverified again, while a moderator's edit keeps these flags; verified is a human moderator's decision and makes the record visible to agents of its scope (shared is a legacy alias of it). Rejected if the record changed since the given version.

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>",
      "version": "<version>"
    },
    "name": "memory_update"
  }
}

Input Schema

NameRequiredDescriptionDefault
IDYesRecord ID.
jobsNoJobs the record is for; at least one for job and request, none for always.
loadNoalways - delivered with any work, short; job - with the jobs in `jobs` (prevention, silent pitfalls); request - only in the `memory` index, read by ID (symptom diagnostics, narrow areas).
textNoOne topic, 1.5-3 thousand characters (max 4,000), in the language of the workspace data: rules and facts with reasons. Author and date are record fields, no "Source" line needed.
levelNoNew level (moves the record).
themeNoTopic from the company topic dictionary, as when creating a record; changing the topic, like the text, removes the verification.
titleNo"<situation or symptom>: <what's inside>" without the topic, up to 200 characters, in the language of the workspace data; agents judge relevance by the title in the memory index.
agentsNoWhich agents the record is for: all - everyone (default); user - agents working on a person's token, with that person's machine setup; system - Kosmodrom agent employees working on their own VM under the agent runner.
sharedNoRequires memory:moderate: legacy alias of verified; true with verified = false is rejected.
versionYesRecord version the change is based on.
themeNewNoOnly for a topic outside the dictionary: why none of the dictionary topics fits.
verifiedNoRequires memory:moderate: the record is verified and visible to agents of its scope; false - only to the author.
projectIDNoNew project ID, for level = project.
productIDsNoAs when creating a record, the full list; [] - all products of the record's project.
repositoryIDNoNew repository ID, for level = repository.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / shared / description
      Previous value: -"Requires memory:moderate: shared with all company agents (true) or personal to the author's (false)."New value: +"Requires memory:moderate: legacy alias of verified; true with verified = false is rejected."
    • changedInput schema / properties / verified / description
      Previous value: -"Requires memory:moderate: the record is verified."New value: +"Requires memory:moderate: the record is verified and visible to agents of its scope; false - only to the author."
  2. Changed3 schema fields changed
    • addedInput schema / properties / theme
      Added value: +{
      +  "description": "Topic from the company topic dictionary, as when creating a record; changing the topic, like the text, removes the verification.",
      +  "maxLength": 40,
      +  "minLength": 1,
      +  "type": "string"
      +}
    • addedInput schema / properties / themeNew
      Added value: +{
      +  "description": "Only for a topic outside the dictionary: why none of the dictionary topics fits.",
      +  "maxLength": 300,
      +  "minLength": 1,
      +  "type": "string"
      +}
    • changedInput schema / properties / title / description
      Previous value: -"\"<area> · <situation or symptom>: <what's inside>\", up to 200 characters, in the language of the workspace data; agents judge relevance by the title in the memory index."New value: +"\"<situation or symptom>: <what's inside>\" without the topic, up to 200 characters, in the language of the workspace data; agents judge relevance by the title in the memory index."
  3. Changed2 schema fields changed
    • changedInput schema / properties / jobs / items / enum
      Previous value: -[
      -  "analysis",
      -  "dev",
      -  "qa",
      -  "devops",
      -  "review",
      -  "design"
      -]New value: +[
      +  "analysis",
      +  "dev",
      +  "qa",
      +  "devops",
      +  "review",
      +  "design",
      +  "marketing"
      +]
    • changedInput schema / properties / jobs / maxItems
      Previous value: -6New value: +7
  4. Changed1 schema field changed
    • addedInput schema / properties / agents
      Added value: +{
      +  "description": "Which agents the record is for: all - everyone (default); user - agents working on a person's token, with that person's machine setup; system - Kosmodrom agent employees working on their own VM under the agent runner.",
      +  "enum": [
      +    "user",
      +    "all",
      +    "system"
      +  ],
      +  "type": "string"
      +}
  5. Changed2 schema fields changed
    • addedInput schema / properties / productIDs
      Added value: +{
      +  "description": "As when creating a record, the full list; [] - all products of the record's project.",
      +  "items": {
      +    "format": "uuid",
      +    "type": "string"
      +  },
      +  "maxItems": 50,
      +  "type": "array"
      +}
    • changedInput schema / properties / title / description
      Previous value: -"\"<area> · <situation or symptom>: <what's inside>\", up to 200 characters, in the language of the workspace data; agents judge relevance by it, and agents doing other kinds of work see it only up to \": \"."New value: +"\"<area> · <situation or symptom>: <what's inside>\", up to 200 characters, in the language of the workspace data; agents judge relevance by the title in the memory index."
  6. Changed4 schema fields changed
    • removedInput schema / $schema
      Removed value: -"http://json-schema.org/draft-07/schema#"
    • changedInput schema / properties / title / description
      Previous value: -"\"<area> · <situation or symptom>: <what's inside>\", up to 200 characters, in the language of the workspace data; agents judge relevance by it."New value: +"\"<area> · <situation or symptom>: <what's inside>\", up to 200 characters, in the language of the workspace data; agents judge relevance by it, and agents doing other kinds of work see it only up to \": \"."
    • removedInput schema / properties / version / maximum
      Removed value: -9007199254740991
    • removedInput schema / properties / version / minimum
      Removed value: --9007199254740991
  7. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Despite the destructiveHint=true annotation, the description goes well beyond it: it discloses partial-replace semantics, level-moving side effects, the re-verification consequence of an author's edit, the differing moderator behavior, and optimistic concurrency via the version check. These are exactly the behavioral traits an agent cannot infer from the annotations alone.

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?

Information is front-loaded (mutation semantics first, then permissions, then version conflict) and every clause carries weight, but the leading sentence is a long semicolon chain that is dense to parse in one pass.

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?

For a 15-parameter mutation with no output schema and a high-risk flag set, the description covers the critical operational concerns — authorization, side effects, verification semantics, and the version-conflict rejection — so an agent has what it needs to call it safely.

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 already 100% with rich per-field descriptions, so the baseline is 3; the description still adds cross-parameter meaning — that level/projectID/repositoryID triggers a move, and the author-versus-moderator effect on verified/shared flags — pushing it above baseline.

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 states a specific verb and resource ('Updates an agent memory record') plus concrete scope ('passed fields are replaced, and a new level, projectID or repositoryID moves it'), which tells an agent exactly what this does versus memory_create without opening the schema.

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?

It gives strong context on who may call it (authors on their own records, moderators with memory:moderate on any but user-level ones) and when it is triggered ('at the user's request'), but never explicitly contrasts it with the sibling memory_create for the case where no record exists yet.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources