Skip to main content
Glama

pg_checkpoint

Commits changes as a deterministic gate: blocks open must_fix comments, strips cache files, verifies a clean symlink-free archive, and rolls back HEAD if verification fails.

Instructions

Deterministic commit gatekeeper: blocks on open must_fix review comments, strips cache files, commits, re-verifies a clean symlink-free git archive snapshot, and auto-rolls back HEAD if clean verification fails.

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": {
      "msg": "<msg>"
    },
    "name": "pg_checkpoint"
  }
}

Input Schema

NameRequiredDescriptionDefault
msgYesConcise commit summary message.
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

A3.7/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and does most of it: it discloses side effects the agent cannot see from the schema, namely that cache files are stripped, that verification uses a symlink-free git archive, and that HEAD is auto-rolled back on failed verification. This is meaningful mutation context. It stops short of stating permission/authentication requirements, whether the cache stripping and rollback are recoverable, or what a blocked call returns.

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?

It is a single front-loaded sentence with a colon introducing the operation chain, and every clause adds a distinct fact. It is slightly run-on with six comma-separated actions, which makes the rollback condition (the most important safety fact) easy to miss at the end.

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?

For a two-parameter mutating tool with no annotations and no output schema, the description covers the important behavior: blocking conditions, side effects, verification, and rollback. Gaps remain around the failure/return surface (what a blocked call yields, what happens to already-staged changes) and slot handling, but nothing essential for correct invocation 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 both parameters (msg, slot) are already documented in the schema and the description need not repeat them. The description adds no extra semantics for msg or slot, and in particular does not explain slot resolution behavior despite the schema gesturing at a '--slot default'. Baseline 3 is appropriate.

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 sequence (gate on must_fix comments, strip cache files, commit, verify archive, roll back on failure) rather than restating the name. That makes it distinguishable from sibling verification/undo tools like pg_verify or pg_undo_turn, since committing is the unique action here. It loses a point only because the framing 'Deterministic commit gatekeeper' is abstract before the concrete clauses arrive.

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

Usage Guidelines3/5

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

There is no explicit 'use this when' statement or named alternative, but the blocking condition on open must_fix review comments implicitly tells the agent the precondition for calling it (reviews must be resolved or the call blocks). Nothing tells the agent what to do instead if reviews are still open, or whether a bare commit alone is possible.

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