Skip to main content
Glama

pg_epoch

Mark a safe working-tree epoch or roll back uncommitted edits using an automatic .tar backup, so you can checkpoint or undo local changes without losing work.

Instructions

Mark a safe working-tree epoch or rollback uncommitted edits with automatic .tar backup.

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": {
      "op": "<op>"
    },
    "name": "pg_epoch"
  }
}

Input Schema

NameRequiredDescriptionDefault
opYes
slotNoWorkspace slot name (optional if only one slot is open or `--slot` default is set).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv4.7.1

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations, the description still volunteers the most important behavioral fact: rollback of uncommitted edits is paired with an automatic .tar backup, which signals recoverability. It does not state what 'mark' actually produces, whether backup creation can fail, whether permission or disk requirements apply, or what is returned.

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?

One compact sentence with the destructive operation and its safety net front-loaded; nothing is padded. The compression is arguably excessive given the undefined 'epoch' term, but there is no wasted wording.

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

Completeness3/5

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

For a two-operation mutation tool with no annotations and no output schema, the description covers the rollback side adequately but leaves the 'mark' side and error/return behavior unaddressed. An agent knows roughly what happens but not what it gets back or what constraints apply.

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 coverage is 50% and the `slot` parameter is already fully documented in the schema, so the description adds little there. It does map the two enum values onto the described actions, but never explains the semantics of a 'mark' (label, snapshot, restore point) — baseline 3 is appropriate given the schema carries most of the weight.

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?

States a specific verb-and-resource pair: it marks a working-tree 'epoch' or rolls back uncommitted edits. That is clearly distinct from read-oriented siblings like pg_checkpoint or pg_undo_turn, though the term 'epoch' is never defined, leaving the 'mark' operation slightly opaque.

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?

No when-to-use guidance is given beyond the implicit split between the two enum values. Nothing says when to mark instead of using pg_checkpoint, pg_undo_turn, or pg_slot_close, nor what preconditions (open slot, clean tree) exist.

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