Skip to main content
Glama

memory_review_undo

Destructive

Undo a memory review transaction to restore byte-exact original notes, but only when every post-image remains unchanged. Requires the transaction ID and confirmation.

Instructions

Restore byte-exact originals only if every post-image is unchanged.

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": {
      "transaction_id": "<transaction_id>"
    },
    "name": "memory_review_undo"
  }
}

Input Schema

NameRequiredDescriptionDefault
confirmNo
transaction_idYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.2/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, idempotentHint=false, and readOnlyHint=false, so the safety profile is covered. The description adds genuinely non-obvious behavior beyond that: the undo is all-or-nothing and refuses to run when post-images have drifted, which tells the agent the call may fail rather than partially roll back. It does not disclose what the confirm flag gates or what the caller sees on refusal.

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 ten-word sentence with the operation up front and the precondition immediately after. No filler, no restatement of the name, and the important constraint is not buried.

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 destructive, non-idempotent rollback the description omits key facts: what happens on precondition failure, what confirm controls, and what transaction_id refers to. The presence of an output schema reduces the need to describe return values, but the undocumented safety flag is a real gap for a destructive tool.

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%, so nothing in the structured data explains transaction_id or confirm. The description never names transaction_id and gives no hint about what confirm does or whether it must be true for the undo to proceed. With a 0% coverage schema, this leaves both parameters semantically undocumented.

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 names a concrete operation on a concrete resource: restore byte-exact originals. The conditional 'only if every post-image is unchanged' further narrows the operation to a safe rollback of the transaction named in the tool. It does not explicitly name memory_review_apply as the inverse sibling, so sibling differentiation is only implied by the 'undo' framing.

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?

The only guidance offered is a precondition ('only if every post-image is unchanged'), which reads more like a runtime guard than routing advice. There is no statement of when to prefer this over memory_review_apply or memory_restore, how to verify the post-images, or what to do when the check fails.

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