Skip to main content
Glama

Which commit broke it

godot_bisect
Read-onlyIdempotent

Finds the first commit that introduced a review finding by rule, file, or message by bisecting history offline, then returns the bad and last good commits with the diff to inspect.

Instructions

Finds the first commit that has a problem, offline and without touching the working tree: reviews the project as it was at each commit (a copy from git in a temp folder) and halves the range. The problem is a review finding: of a rule (rule: "api/unknown-member"), in a file, with words in its message, or with none of these any finding of severity error. Give good (a commit known to be without it) or leave it out: history is then searched backwards 1, 2, 4, 8 ... commits. Returns the first bad commit and the last good one, the findings there, the files that commit changed (the finding is often in a file it did not touch: it removed something that file uses) and the godot_diff call to read the change. Use it when something that worked no longer does and many commits lie in between, instead of reading every diff.

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

Input Schema

NameRequiredDescriptionDefault
badNoa commit that has the problem (default HEAD; uncommitted changes are not searched)
maxNohow many commits to look back when good is not given (default 200)
fileNothe problem is a finding in this res:// file
goodNoa commit known to be without it, e.g. main or HEAD~30 (default: search backwards)
pathNoproject folder, or a file or folder inside it (relative to the server's folder; default: the current project)
ruleNothe problem is a finding of this review rule, e.g. api/unknown-member
textNothe problem is a finding whose message holds this text

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.9.0

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive/closed-world, but the description adds substantially more: it works offline, never touches the working tree, checks out a temp copy from git, and uses a bisection strategy. It also discloses the return payload (first bad commit, last good commit, findings, changed files, plus the godot_diff call), and warns that the culprit file often was not touched by the bad commit.

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?

Purpose and mechanism are front-loaded, and every clause carries information. However, the middle sentence ("The problem is a review finding: of a rule… or with none of these any finding of severity error") is a dense run-on with nested parentheticals that forces rereading, costing some clarity against its otherwise tight length.

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?

With no output schema, the description carries the burden of describing results and does so fully: it names the returned commits, the findings, the changed-file list, and a ready-made godot_diff call. For a 7-parameter bisect tool with zero required parameters, nothing an agent needs in order to invoke it correctly 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 each parameter is already documented, but the description adds the interaction semantics: supplying "good" enables halving, omitting it switches to an exponential backward walk of 1, 2, 4, 8… commits, and "bad" defaults to HEAD with uncommitted changes excluded. The explanation of how rule/file/text describe the target finding adds meaning beyond the schema, though it is phrased so tersely that the combination logic (AND vs OR) takes a second read.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

"Finds the first commit that has a problem" is a specific verb+resource, and the description immediately qualifies the mechanism (offline, temp-folder checkout, halving the range). It also names godot_diff as the follow-up tool to read the resulting change, which separates it from the sibling that merely shows diffs.

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

Usage Guidelines5/5

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

Explicit trigger is given: "Use it when something that worked no longer does and many commits lie in between, instead of reading every diff." That is both a when-to-use condition and a when-not-to-use alternative, which is exactly what an agent needs to pick this over manual diff reading.

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