Skip to main content
Glama

Semantic Bisect

semantic_bisect

Locate the commit that introduced a bug standard tests miss by running a command across good and bad revisions and judging each output against a plain-English symptom.

Instructions

Find the commit that introduced a problem a normal test can't detect. Runs command at commits between good and bad in a temporary git worktree (the user's checkout is untouched) and asks Jev whether each output shows symptom. Runs the user's shell command, so confirm it with the user first.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
badNoCommit where it is present (default HEAD)
goodYesCommit/tag/branch where the problem is absent
repoYesAbsolute path to the git repository
commandYesShell command whose output reveals the problem, e.g. 'npm run build && node cli.js --help'
symptomYesWhat the problem looks like in the output, in plain English
timeoutSecNoPer-commit timeout, default 120

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior5/5

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

Goes well beyond the annotations: it discloses that execution happens in a temporary git worktree and that 'the user's checkout is untouched,' which explains why destructiveHint=false holds despite running an arbitrary shell command. It also warns that the user's own shell command is executed and must be confirmed, covering the openWorldHint risk profile with concrete context.

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?

Three sentences, front-loaded with the outcome and followed by mechanism and the safety caveat. Every sentence earns its place and nothing is repeated from the schema.

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?

For a six-parameter tool with no output schema, the description conveys the essential model: what it searches for, how it evaluates each commit, and the sandboxing. It omits practical detail an agent might want, such as what the result reports and that the run may be long because the command executes per commit.

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 the schema already documents repo, good, bad, command, symptom, and timeoutSec, making 3 the baseline. The description reinforces the semantics of good/bad/command/symptom in prose but adds no syntax, format, or default detail beyond what the schema provides.

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?

States a precise verb and outcome: 'Find the commit that introduced a problem a normal test can't detect,' which immediately distinguishes it from ordinary git bisect. It goes on to name the mechanism (git worktree, the `command`, the `good`/`bad` range) so an agent knows exactly what the tool produces. No sibling in the provided list overlaps, so no differentiation is needed.

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?

The qualifier 'a normal test can't detect' tells the agent when this tool is warranted versus a deterministic bisect, and the closing sentence gives an actionable prerequisite (confirm the shell command with the user first). It stops short of stating an explicit when-not or naming an alternative tool, so it is clear context rather than full routing guidance.

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