Skip to main content
Glama

Preview a rollback

preview_rollback
Read-only

Show exactly which memories a rollback to a checkpoint would create, update and remove, without changing anything. Returns a short-lived confirmation token that rollback requires.

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": {
      "snapshot_id": "<snapshot_id>",
      "reason": "<reason>"
    },
    "name": "preview_rollback"
  }
}

Input Schema

NameRequiredDescriptionDefault
reasonYesWhy the rollback is being considered; recorded with it.
snapshot_idYesCheckpoint id from create_snapshot or list_snapshots.

Output Schema

NameRequiredDescriptionDefault
countsYes
truncatedYes
create_keysYes
remove_keysYes
snapshot_idYes
update_keysYes
confirmation_tokenYes
confirmation_expires_atYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Consistent with readOnlyHint=true and destructiveHint=false, and it goes beyond them by disclosing the side effect that does occur: minting a short-lived confirmation token. That token requirement is workflow-critical context the annotations cannot convey. It does not mention that each call produces a new token or its lifetime, which matters given idempotentHint=false.

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?

Two tight sentences. The read-only, exactly-what-changes promise is front-loaded, and the token dependency follows as the secondary operational fact. Nothing is redundant.

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?

An output schema exists, so the return payload need not be described, and the description still flags the one return value that drives the next step (the token). What remains unstated is the token's lifetime and whether a preview can be re-run safely, minor gaps for an otherwise complete two-parameter read tool.

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%, with both parameters documented in the schema itself (snapshot_id sourced from create_snapshot/list_snapshots, reason recorded with the rollback). The description adds no further meaning to either parameter, so baseline 3 applies.

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 (preview), resource (memories affected by a rollback to a checkpoint) and enumerates the exact effects observed (create, update, remove). The explicit 'without changing anything' plus the named sibling concept 'rollback' lets an agent distinguish preview_rollback from rollback without opening either 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?

Strong implicit routing: 'Returns a short-lived confirmation token that rollback requires' tells the agent this call must precede rollback and cannot be skipped. It stops short of an explicit when-not statement or naming a case where preview is unnecessary, so it falls one step below full guidance.

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.