Skip to main content
Glama

memory_correct

Update an existing active memory using compare-and-swap version locking; provide the expected version to prevent conflicting writes and require admin access.

Instructions

Update an existing active memory using CAS optimistic version locking (admin role required).

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": {
      "memory_id": "<memory_id>",
      "expected_version": "<expected_version>",
      "content": "<content>"
    },
    "name": "memory_correct"
  }
}

Input Schema

NameRequiredDescriptionDefault
topicNo
contentYes
memory_idYes
importanceNo
search_termsNo
expected_versionYes
source_authorityNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv2.1.0
    • addedInput schema / properties / importance
      Added value: +{
      +  "maximum": 5,
      +  "minimum": 0.1,
      +  "type": "number"
      +}
    • addedInput schema / properties / source_authority
      Added value: +{
      +  "enum": [
      +    "human_verified",
      +    "code_observed",
      +    "doc_extracted",
      +    "agent_inferred"
      +  ],
      +  "type": "string"
      +}
  2. First observedv0.1.0

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly=false, destructive=false, openWorld=false), and the description adds genuinely new behavioral context: concurrency is handled by CAS optimistic version locking rather than last-write-wins, and the call requires admin privileges. It omits what a version mismatch returns and whether omitted optional fields are preserved or cleared.

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?

A single dense sentence that front-loads the action, resource, and the most operationally important constraint (version locking) before the permission caveat. Nothing is wasted.

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 state-mutating tool with 7 undocumented parameters, no output schema, and conflict-prone optimistic locking, the agent still does not know the failure semantics of a version mismatch, whether this is a partial or full replacement, or what the optional fields do. The annotations and one-line description leave too much of the call contract unspecified.

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

Parameters2/5

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

Schema description coverage is 0% across 7 parameters, so the description carries the full burden, and it only clarifies why expected_version exists (CAS locking) while memory_id and content are inferable from their names. The four optional parameters (topic, importance, search_terms, source_authority, the last being an enum) receive no semantic explanation at all.

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 and resource ('Update an existing active memory') and scopes it to currently active memories, which distinguishes it from creation-oriented siblings like memory_add. It stops short of naming any alternative for correcting inactive or archived memories.

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 phrase 'existing active memory' implicitly tells the agent this is for amending live records, and the parenthetical '(admin role required)' flags a prerequisite before calling. There is no explicit when-not guidance (e.g., what to do for superseded memories) and no sibling is named.

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