Skip to main content
Glama

lore_rollback

Destructive

Rolls back canon and project state to a specified chapter snapshot, deleting later manuscript files when committed chapters are explicitly cancelled.

Instructions

지정 화의 스냅숏으로 정본과 기계 상태를 되돌린다. 사용자가 이미 커밋된 화들을 취소하겠다고 명시했을 때만 호출하고, 먼저 lore_snapshot_status로 대상 화를 확인한다. 손수정 반영은 lore_sync를 쓴다. 파괴적: world/·characters/·chapters/·summaries/를 지우고 스냅숏으로 복원하므로 그 화 이후 원고가 작업 트리에서 사라진다. 진행 중인 워크플로, 대기 중인 lore_resume runId, 검사 영수증도 지워지고 이후의 lore_configure·lore_style_anchor 변경도 되돌아간다. 되돌리기 전 상태는 .vibelore/rollback-archives//에 보존되지만 복원 도구는 없어 수동으로 되살려야 한다. 모델 호출 없음. 반환은 {rolledBackTo, archiveId, archive, recoverable:true, publication}.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
workIdYes작품 식별자 ([A-Za-z0-9_-]). 한 디렉터리에는 작품 하나만 둔다.
chapterYes되돌아갈 화 번호. 그 화까지의 원고가 남는다.
projectNo작품 디렉터리의 절대 경로. 생략하면 서버 실행 디렉터리.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.4.4
    • addedInput schema / properties / chapter / description
      Added value: +"되돌아갈 화 번호. 그 화까지의 원고가 남는다."
    • changedInput schema / properties / workId / description
      Previous value: -"작품 식별자 ([A-Za-z0-9_-])."New value: +"작품 식별자 ([A-Za-z0-9_-]). 한 디렉터리에는 작품 하나만 둔다."
  2. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Although annotations already flag destructiveHint=true and idempotentHint=false, the description goes far beyond them: it enumerates what is deleted (world/, characters/, chapters/, summaries/), that in-progress workflows, pending lore_resume runIds and inspection receipts vanish, that later lore_configure/lore_style_anchor changes revert, that archives exist but have no restore tool, and that no model calls occur. This is exceptionally rich behavioral disclosure.

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 long but dense and front-loaded: purpose and usage lead, followed by destructive scope, recovery limitations, and return shape. Every sentence carries decision-relevant information, though the density is near the upper limit.

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 complex, irreversible mutation tool with no output schema, the description covers the trigger condition, prerequisite check, destruction scope, secondary side effects, recoverability limits, and the return shape. Nothing an agent needs to invoke it safely is missing.

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 description coverage is 100%, so the schema already documents workId, chapter, and project. The description's framing of the chapter boundary ('manuscript up to that chapter remains, later ones disappear') largely restates the schema's chapter description, adding little new parameter-level detail. Baseline 3 is appropriate.

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?

States a specific verb (rollback/restore) and resource (canon and machine state to a chapter's snapshot) and explicitly distinguishes itself from siblings by naming lore_snapshot_status and lore_sync. An agent can tell exactly what this does versus adjacent tools.

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

Usage Guidelines5/5

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

Gives an explicit precondition ('call only when the user has explicitly said to cancel already-committed chapters'), a mandatory first step (check target chapter with lore_snapshot_status), and an alternative for a different case (use lore_sync for manual edits). Nothing is left to inference.

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