Skip to main content
Glama

git_overlap

Read-only

Identifies pairs of branches, tags, or commits that modify the same paths since a base ref, with an optional filter to limit results to pairs involving one ref.

Instructions

git-overlap: pairs of refs that change the same path since base (git footprint, then git overlap). Optional 'with' keeps only pairs that include that ref.

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": {
      "repo": "<repo>",
      "base": "<base>",
      "refs": "<refs>"
    },
    "name": "git_overlap"
  }
}

Input Schema

NameRequiredDescriptionDefault
baseYesBase branch
refsYesBranch, tag or commit names to check
repoYesRepository directory
withNoOnly pairs that include this ref

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so safety is covered. The description adds that the analysis is comparative across refs against a base and returns pairs, but says nothing about output volume, ordering, or whether large ref sets are expensive, which matters for a combinatorial pair operation.

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?

Compact and front-loaded with the tool name and the core result. The parenthetical pipeline hint is the only low-value wording; otherwise no filler.

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?

For a read-only analysis tool with no output schema, the definition does not describe the shape of a returned pair (e.g., whether it includes file lists) or how 'since base' is computed. Adequate to call, thin for interpreting results.

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 all four parameters are documented structurally. The description's note on 'with' essentially restates the schema's own 'Only pairs that include this ref' text, adding no new meaning about base resolution or how refs are matched.

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?

States a specific computation: pairs of refs that change the same path since a base. The resource (refs/paths in a repo) and the notion of overlap are concrete, so an agent can tell what it produces, though the parenthetical 'git footprint, then git overlap' is internal jargon rather than a clarifying distinction from siblings.

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

Usage Guidelines2/5

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

The only guidance is the optional 'with' filter narrowing the result set; there is no statement of when this analysis is appropriate, what problem it solves versus single-ref or diff tools, or any prerequisite/cost conditions. An agent must infer the use case from the name alone.

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