Skip to main content
Glama
total-agent-memory

total-agent-memory

memory_update

Destructive

Update existing knowledge by replacing a record selected by ID or search query, superseding the old entry and creating a new version.

Instructions

Update existing knowledge. Replaces the record id, or the best match for find (within project when given): supersedes it and creates a new version. Provide either id or find; id takes precedence when both are provided.

Input Schema

NameRequiredDescriptionDefault
idNoExact record to replace; takes precedence over find
findNoSearch query to find the old knowledge (when no id)
reasonNoWhy updating
projectNoLimit the find search to this project
affectedNo
detectionNo
resolutionNo
new_contentYesNew content to replace with
incident_statusNoopen

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changedv15.0.0
    • addedInput schema / anyOf
      Added value: +[
      +  {
      +    "required": [
      +      "id"
      +    ]
      +  },
      +  {
      +    "required": [
      +      "find"
      +    ]
      +  }
      +]
    • addedInput schema / properties / affected
      Added value: +{
      +  "items": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "from": {
      +        "title": "From",
      +        "type": "string"
      +      },
      +      "scope": {
      +        "minLength": 1,
      +        "title": "Scope",
      +        "type": "string"
      +      },
      +      "to": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "title": "To"
      +      }
      +    },
      +    "required": [
      +      "scope",
      +      "from"
      +    ],
      +    "title": "AffectedWindow",
      +    "type": "object"
      +  },
      +  "title": "Affected",
      +  "type": "array"
      +}
    • addedInput schema / properties / detection
      Added value: +{
      +  "anyOf": [
      +    {
      +      "additionalProperties": false,
      +      "properties": {
      +        "check": {
      +          "minLength": 1,
      +          "title": "Check",
      +          "type": "string"
      +        },
      +        "healthy_result": {
      +          "minLength": 1,
      +          "title": "Healthy Result",
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "check",
      +        "healthy_result"
      +      ],
      +      "title": "Detection",
      +      "type": "object"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null
      +}
    • addedInput schema / properties / incident_status
      Added value: +{
      +  "default": "open",
      +  "enum": [
      +    "open",
      +    "closed"
      +  ],
      +  "title": "Incident Status",
      +  "type": "string"
      +}
    • addedInput schema / properties / resolution
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Resolution"
      +}
  2. Changed4 schema fields changedv14.7.0
    • changedInput schema / properties / find / description
      Previous value: -"Search query to find the old knowledge"New value: +"Search query to find the old knowledge (when no id)"
    • addedInput schema / properties / id
      Added value: +{
      +  "description": "Exact record to replace; takes precedence over find",
      +  "type": "integer"
      +}
    • addedInput schema / properties / project
      Added value: +{
      +  "description": "Limit the find search to this project",
      +  "type": "string"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "find",
      -  "new_content"
      -]New value: +[
      +  "new_content"
      +]
  3. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and idempotentHint=false, but the description adds the important behavioral nuance that the operation is versioned rather than an in-place overwrite: it supersedes the prior record and creates a new version. That materially changes how an agent reasons about reversibility. It still doesn't say what happens if `find` matches nothing or matches ambiguously.

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?

Two tightly written sentences that front-load the action and then the targeting rules; every clause carries content. The parenthetical 'within `project` when given' is slightly compressed but still parseable, keeping it just below a 5.

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?

Wait — reconsidering: with 9 parameters, no output schema, and a destructive mutation, the description covers the core mechanics (targeting, precedence, versioning) but leaves four optional incident/metadata parameters unexplained. That is a real gap for a tool this broad.

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 56%, and the description reinforces the two most consequential parameters (id, find) plus the id-precedence rule and project scoping — genuine added meaning over the schema. But five parameters (reason, affected, detection, resolution, incident_status) go unmentioned, and the schema doesn't fully cover them either. Baseline 3 is appropriate for mid-coverage.

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?

The description opens with a specific verb+resource ('Update existing knowledge') and then precisely describes the mechanism: supersede the old record and create a new version. It clarifies the id-vs-find targeting model, which none of the sibling names imply. It stops short of naming which sibling (e.g., memory_delete, memory_forget, memory_skill_update) is the alternative, so a 5 is not warranted.

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

Usage Guidelines3/5

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

It gives useful selection logic between the two targeting modes ('Provide either id or find; id takes precedence when both are provided') and the project scoping condition. However, it offers no guidance on when to call this at all versus memory_delete, memory_forget, or memory_skill_update — the agent must infer the boundary from names alone.

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