Skip to main content
Glama
mariusei

Scantool - File Scanner MCP

by mariusei

Overlap

overlap

Compare multiple branches against one base to detect overlapping file changes, shared commits, and duplicate new names, with merge-order hints.

Instructions

N branches against one base, each at its own merge-base: structures touched by 2+ branches (marked base(~/+/-) when the base itself changed them since the branches forked), new names introduced independently by 2+ branches, commits two branches share (a stack: overlap between them is expected; the residual beyond their shared commits is what stays), and per branch whether it is already in the base and by which criterion (ancestor / patch-equivalent / tree-equal; patch-equivalence proves it can be deleted, not that its content is in the current tree). Ends with a merge-order hint, not a verdict. In your shell: sct overlap <base> <branch>... (if sct is not on PATH, "/app/.venv/bin/python" -m scantool.cli replaces sct).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
baseYes
kindNo
pathNo
repoNo
branchesYes
output_formatNotree

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.26.0

TDQS

A3.7/5.0
Behavior5/5

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

With no annotations, the description carries the full behavioral burden, and it does so thoroughly: it discloses expected stack overlap, residual commit semantics, the meaning of patch-equivalence, and explicitly warns that the result is 'a merge-order hint, not a verdict.' It also explains the significance of base markers.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is dense and information-rich, but it is a single sprawling paragraph that mixes output semantics, caveats, and shell invocation. It is not poorly sized, but better structure (bullets or separation of output categories from usage) would improve scannability.

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?

The description covers the tool's output structure and command invocation well, which is important given there is no output schema or annotations. However, it omits semantics for four optional parameters and does not provide sibling-tool guidance, leaving some ambiguity for complex calls.

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 0%, so the description must compensate. It clarifies the two required parameters through the command syntax `sct overlap <base> <branch>...`, but it leaves the optional parameters (`kind`, `path`, `repo`, `output_format`) unexplained. This is partial compensation, not complete.

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 identifies the tool's purpose: comparing N branches against one base at their own merge-bases and reporting overlapping structures, names, commits, and base-inclusion criteria. It uses specific verbs and resources, but it does not explicitly distinguish itself from siblings like find_divergence or scan_diff.

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?

The description implies when the tool would be used (branch-overlap analysis) and even provides a shell invocation, but it does not state when to prefer this tool over alternatives such as find_divergence or scan_diff. There is no explicit when-not-to-use guidance.

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