Skip to main content
Glama

Resolve local Git review input

resolve_git_review_input
Read-onlyIdempotent

Converts two locally available Git refs into immutable commits and diff metadata for QA review, failing if either ref cannot resolve or the diff is empty.

Instructions

Resolve two locally available Git refs into immutable commits and diff metadata.

The repository path is on the server host. This compares the resolved commits directly; choose the merge base explicitly when a merge-base comparison is required. It does not fetch refs, inspect uncommitted changes, or construct the evidence packet. Unresolvable refs fail; both refs must resolve to different commits with a nonempty diff.

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": {
      "repository": "<repository>",
      "base": "<base>",
      "head": "<head>"
    },
    "name": "resolve_git_review_input"
  }
}

Input Schema

NameRequiredDescriptionDefault
baseYesLocally available base Git ref or commit.
headYesLocally available head Git ref or commit.
repositoryYesAbsolute path to the local Git repository on the server host.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.2.20

TDQS

A4.2/5.0
Behavior4/5

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

Beyond the readOnly/idempotent/closed-world annotations, the description discloses key preconditions and failure behavior: refs must resolve, must be different commits, and must produce a nonempty diff, otherwise the call fails. It also flags that the repository path lives on the server host and that no fetch happens, which matters for staleness. Return shape is left to the output schema.

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?

Four tight sentences: action first, then environment, then the merge-base caveat, then exclusions and failure conditions. Nothing is padded and the most consequential constraints are front-loaded.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

All three required parameters are documented in the schema, annotations cover the safety profile, and an output schema covers the return value, so the description only needs to carry preconditions and exclusions, which it does. Nothing an agent needs before invoking this tool is missing.

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%, so the baseline is 3, and the description adds real constraint meaning: refs must be locally resolvable and must resolve to two distinct commits with a nonempty diff. The server-host remark largely repeats the repository parameter's schema text, but the diff-validity constraint meaningfully informs how base and head must be supplied.

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 first sentence gives a specific verb and resource: resolving two local Git refs into immutable commits plus diff metadata, with 'locally available' narrowing scope. It does not name a sibling tool, but the sibling list is entirely QA-orchestration tools, so ambiguity is low; the mention that it does not construct the evidence packet further delimits its role in the pipeline.

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?

Explicit guidance is given for merge-base cases ('choose the merge base explicitly when a merge-base comparison is required'), and the negative list (no fetching, no uncommitted changes, no evidence packet) steers an agent away from misfires. It stops short of naming an alternative tool for those excluded cases, so it is clear context rather than full when/when-not routing.

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