Skip to main content
Glama

commitlore_before_change

Read-only

Review a repository path's active decisions and verification gaps before editing; optionally test a proposed approach against ruled-out alternatives to flag potential conflicts.

Instructions

Everything recorded about a path, before editing it: the active decisions, the gaps in what could be verified, and any ruled-out alternative a proposal would revive. Returns active_decisions, verification_gaps, possible_revival_matches, guard_confidence and cache_key. Pass path alone for context. Pass proposal as well to also run the guard against that path's Ruled-out records; without it guard_confidence is "not-run" and possible_revival_matches is empty because nothing was checked, not because nothing matched. The guard is an experimental advisory: precision 44.8%, recall 22.0% on the 417-decision corpus. An empty possible_revival_matches does not guarantee the proposal avoids every ruled-out alternative.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYesrepository-relative path whose Ruled-out records to check against
proposalNothe proposed approach, in the words it would be carried out in; omit for context only (no guard run)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior5/5

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

Beyond the read-only annotations, it discloses that the guard is experimental, gives precision/recall numbers, explains that an empty match list means nothing checked rather than no match, and warns that empty results do not guarantee safety. This is significant extra behavioral context.

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?

The description is dense and front-loaded with the core purpose, then return keys, then usage modes, then the guard caveat. It is longer than average but every clause carries necessary information, so it earns its length.

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?

It names all returned keys and explains the guard-related result semantics, which is important because there is no output schema. It does not detail the internal structure of `active_decisions` or `verification_gaps`, but the names and context make them understandable enough for correct invocation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, and the description adds behavioral meaning to `proposal` by explaining how its presence changes the guard run and the returned fields. It also clarifies that `path` is repository-relative, reinforcing the schema without repeating it verbatim.

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 clearly states the tool returns recorded context for a path before editing, including active decisions, verification gaps, and ruled-out alternatives. It distinguishes its scope ('before editing') and guard behavior from the sibling set, though it does not explicitly name an alternative tool to contrast with.

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?

It gives explicit mode guidance: pass `path` alone for context, and pass `proposal` to also run the guard. It explains the consequences of omitting `proposal` (guard_confidence 'not-run', possible_revival_matches empty). It does not explicitly say when to prefer this over sibling tools like commitlore_guard, but the context is clear.

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