Skip to main content
Glama

Snapshot Baseline Before Edits

snapshot_baseline

Capture a lightweight baseline of target or dirty files before editing so diffs can isolate only the current task’s changes in an already-modified working tree.

Instructions

Captures a lightweight snapshot of target files (or all currently dirty files) before editing so present_diff can isolate only this turn/task edits on an already-dirty git working tree.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "snapshot_baseline"
  }
}

Input Schema

NameRequiredDescriptionDefault
filesNoSpecific repo-relative file paths to snapshot; omit to snapshot all dirty files
labelNoHuman-readable label for this snapshot
repoPathNoAbsolute path to repository root (defaults to cwd)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.1

TDQS

A4/5.0
Behavior3/5

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

With no annotations, the description carries the full burden; it does disclose that the snapshot is lightweight and is taken against dirty working-tree state rather than baseline commits. It never states whether an existing snapshot is overwritten, whether the label changes the identity of the snapshot, or where the captured state is stored. Non-destructiveness must be inferred.

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?

One front-loaded sentence with the action, scope, and rationale in order, and no wasted wording. Nothing is buried or repeated.

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 three-optional-parameter setup tool with no output schema, the description covers action, scope, and motivation well. A brief note on what the call returns or how the snapshot is later referenced by present_diff would close the remaining gap.

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 three parameters are already documented, including the omit-to-snapshot-all-dirty-files semantics that the description merely restates. Baseline 3 applies since no extra meaning (defaults, label reuse, path normalization) is added.

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 and resource ("Captures a lightweight snapshot of target files (or all currently dirty files)") and gives the downstream reason (so present_diff can isolate this turn's edits). Naming present_diff as the consumer distinguishes it from the sibling that reads the result.

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?

Timing is explicit: call it before editing, specifically on an already-dirty git working tree, which is the exact scenario an agent would otherwise get wrong. It does not say when to skip it (e.g., clean worktree) or what to do if a snapshot already exists, so it stops short of full when/when-not guidance.

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