Skip to main content
Glama

palinode_correction_undo

Idempotent

Preview what an undo of a correction would restore, then confirm to bring the archived memory back to active status without reviving retracted records.

Instructions

Preview (default) or apply the undo of a correction. Without confirm this reads: it states what would be restored, what would NOT be deleted, and what cannot be reached at all — restoring a previous assertion, deleting history and undoing an agent's external actions are three different things and only the first is on offer. With confirm=true and the preview's expect_revision it brings the archived record back to status: active. It refuses to resurrect a record that was separately retracted or withdrawn by a forget request.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
reasonNoWhy the correction is being undone.
targetYesThe archived memory to restore.
confirmNoMust be true to write. Preview is the default.
expect_revisionNoThe revision the undo preview returned. Required with confirm.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.22.0

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the annotations, it discloses important behavioral details: preview mode reports what would be restored, what would not be deleted, and what cannot be reached; apply mode requires confirm and expect_revision; and the tool refuses to resurrect retracted or withdrawn records. These details are consistent with the annotations and add substantial context.

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?

The description is reasonably front-loaded and dense with useful information, with the default preview behavior stated first. It is slightly verbose in the middle sentence, but every major clause contributes to safe and correct invocation.

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 four-parameter mutation tool with no output schema, the description is complete enough: it covers purpose, preview versus apply behavior, required procedural parameters, expected restoration effect, and refusal conditions. Annotations already cover safety hints, and the description fills the remaining gaps.

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 100%, so the baseline is 3, but the description adds procedural meaning by tying confirm and expect_revision together and clarifying that expect_revision comes from the preview. This helps an agent understand the intended parameter workflow beyond the schema's individual descriptions.

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: undoing a correction, with a clear preview/apply split. It also distinguishes this operation from related but different actions such as deleting history or undoing external agent actions, which helps separate it from sibling tools like restore or forget_withdraw.

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 clearly explains when to use preview mode versus write mode: without confirm it reads, and with confirm plus expect_revision it applies. It also states a refusal condition, but it does not name sibling tools to use instead for related operations.

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