Skip to main content
Glama

Revise a memory

revise
Destructive

Replace the value of an existing memory when the user asks for a change or confirms one. The previous value stays in the audit history and can be restored with rollback. Accepts expected_version from recall, so a change made elsewhere is never silently overwritten. Sending the same value records a confirmation and refreshes the update time.

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": {
      "key": "<key>",
      "value": "<value>"
    },
    "name": "revise"
  }
}

Input Schema

NameRequiredDescriptionDefault
keyYesMemory key, for example "project.billing.database".
valueYesThe new content as text. For structured data, send it as JSON text.
reasonNoWhy the memory changed; kept in the audit trail.
importanceNo
expected_versionNoThe version returned by recall or a previous write. The change is refused if the memory changed since.

Output Schema

NameRequiredDescriptionDefault
keyYes
versionYes
state_versionYes
conflicts_resolvedYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Goes well beyond the annotations: the prior value is retained in audit history and recoverable via rollback (tempering destructiveHint=true), expected_version provides optimistic-concurrency refusal so concurrent changes are not silently overwritten, and re-sending an identical value records a confirmation and refreshes the timestamp — which explains why idempotentHint=false rather than contradicting it.

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?

Four short sentences, zero padding, ordered from what the tool does to its recovery and concurrency guarantees. Each sentence carries distinct information an agent would otherwise have to guess.

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

Completeness4/5

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

Return values need not be covered because an output schema exists, and the risky aspects (recoverability, version conflicts, duplicate writes) are all addressed. Minor gap: no guidance on how importance affects later recall or when reason is worth supplying, both left to schema text.

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 80%, so baseline is 3, and the description adds real meaning: expected_version is sourced from recall and its refusal semantics are stated, plus the side effect of submitting an unchanged value. The reason and importance parameters are left entirely to the schema.

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?

Uses a specific verb and resource: "Replace the value of an existing memory." The scoping word "existing" plus "when the user asks for a change or confirms one" separates it from creation (remember) and restoration (rollback) without needing to open any 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?

Gives a clear trigger condition (user requests or confirms a change) and points at recall as the source of expected_version. It never explicitly excludes the create path or names a sibling to use instead for new memories, so the agent must infer that from the word "existing".

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.