Skip to main content
Glama

Record baseline

record_baseline

Captures a Git baseline (HEAD and dirty files) before implementation so existing user changes can be preserved and separated from task edits.

Instructions

Snapshot the current Git state (HEAD + dirty files) before implementation starts, so pre-existing user changes can be preserved and distinguished from task changes.

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": "record_baseline"
  }
}

Input Schema

NameRequiredDescriptionDefault
rootNoProject root directory. Defaults to the MCP client's current working directory.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.8/5.0
Behavior3/5

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

With no annotations supplied, the description must carry the full behavioral burden, and it does disclose what is captured (HEAD commit plus dirty files) and why. It does not clarify whether the snapshot is purely read-only versus persisted somewhere, where the baseline is stored, whether calling twice overwrites an earlier baseline, or whether the captured state is returned or only recorded — meaningful gaps for a state-recording tool with zero annotation coverage.

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?

A single front-loaded sentence with no filler: the action, the exact data captured, and the motivating rationale all appear before any would-be padding. Nothing could be cut without losing information.

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 one-optional-parameter, non-destructive snapshot tool with no output schema, the description covers purpose, timing, and captured state adequately. The remaining gap is the mechanics of the stored baseline (lifetime, overwrite behavior, retrieval), which an agent may need to sequence correctly against check_change_scope and the implementation steps.

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?

The single 'root' parameter is fully documented in the schema, including its default to the client's working directory, so the schema already does the explanatory work. The description adds no further semantics about path scoping or what happens when root differs from the Git repo containing the task. Baseline 3 applies given full schema coverage.

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 verb (snapshot) plus the exact resource captured — current Git state, specified as HEAD and dirty files — and frames the intent (baseline before implementation). It is clearly distinct in substance from siblings like inspect_project or verify_implementation, though it does not explicitly name an alternative to contrast against.

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 guidance is explicit and actionable: call it 'before implementation starts.' That gives the agent a clear trigger condition. It stops short of stating when not to call it (e.g. re-baselining mid-task or overwriting an existing baseline) or what to do instead.

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