Skip to main content
Glama

Bite: does a test notice my fix?

check_fix
Read-only

Verifies a code fix is covered by a test by running the project's tests with and without the change. Use it before reporting a bug fixed to confirm a test notices the fix or tells you to add one.

Instructions

Call this after you change code to fix a bug, before you tell the user it's fixed. Bite takes your change back out of a copy of the project and runs the project's tests: once with the change in, once without. Free, needs no key, never touches the user's files. Takes about twice as long as the tests do. The answer is one of: a test noticed (done); no test noticed (add a test that fails without your change and passes with it, then call this again); couldn't check, with the reason, such as the tests already failing with your change in (not a pass: tell the user); or nothing to check (no code the tests run changed). To ask about an earlier fix in plain words, without knowing its commit, use ask_bite instead.

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

Input Schema

NameRequiredDescriptionDefault
sinceNoA commit id or branch name, for example main to check a whole branch's changes. Bite checks everything that changed since then, committed or not. Leave it out to check only the changes since the last commit, including uncommitted ones.
folderNoPath to the project you changed: its top folder or any folder inside its git repository, for example "/home/me/project". Leave it out to use the folder Bite was started in.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv1.0.7
    • changedInput schema / properties / folder / description
      Previous value: -"The project folder you changed (any folder inside its git repository). Leave it out to use the folder Bite was started in."New value: +"Path to the project you changed: its top folder or any folder inside its git repository, for example \"/home/me/project\". Leave it out to use the folder Bite was started in."
    • changedInput schema / properties / since / description
      Previous value: -"Check the changes since this commit or branch (for example main). Default: the changes since the last commit, including uncommitted ones."New value: +"A commit id or branch name, for example main to check a whole branch's changes. Bite checks everything that changed since then, committed or not. Leave it out to check only the changes since the last commit, including uncommitted ones."
  2. First observedv1.0.5

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only declare readOnlyHint=true and openWorldHint=false; the description goes well beyond them by disclosing cost ('free, needs no key'), non-invasiveness ('never touches the user's files'), latency ('about twice as long as the tests do'), and the full set of return states with their meanings. The read-only claim is consistent with the copy-and-restore behavior described, so nothing contradicts the annotations.

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?

The caller-relevant instruction is front-loaded in the first sentence, and subsequent sentences cover cost, mechanism, and outcomes with little waste. The outcome enumeration is a long, dense sentence but each branch carries actionable meaning, so it is only mildly verbose.

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?

For a two-optional-parameter tool with no output schema, the description supplies everything an agent needs: when to call, what it does, cost and safety, and how to interpret each of the four possible answers. Nothing material is left for the agent to infer.

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 coverage is 100%, so both parameters' semantics are already documented in the schema, including the 'since' commit/branch meaning. The description adds no additional parameter detail of its own, so the baseline 3 applies rather than a higher score.

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?

The description states a concrete mechanism: 'Bite takes your change back out of a copy of the project and runs the project's tests: once with the change in, once without.' That is a specific verb-plus-resource with a stated scope, and it explicitly names the sibling it is not for ('to ask about an earlier fix in plain words... use ask_bite instead').

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?

It gives an explicit trigger ('after you change code to fix a bug, before you tell the user it's fixed') and a re-entry condition ('add a test that fails without your change and passes with it, then call this again'). It also routes the alternative case to ask_bite with the exact condition that selects it.

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

Deploy Server

Other Tools