Skip to main content
Glama

fang_check_diff

Runs diff-scoped mutation testing on added Python lines versus a Git revision, then executes tests and reports surviving mutants. Use it to verify new tests catch changes.

Instructions

Diff-scoped mutation testing. Mutates only added Python lines versus a git revision (default HEAD), runs the test suite, and returns the mutants the tests failed to detect. Use this to verify that new tests actually bite.

Input Schema

NameRequiredDescriptionDefault
diffNoGit revision to diff against (default: HEAD).
jobsNoParallel workers (default: 2).
rootNoProject root (default: server root).
sampleNoMax mutants to evaluate (default: 40).
timeoutNoPer-mutant timeout in seconds.
survivor_limitNoMax survivors returned (default: 25).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It does disclose the core mechanics (only added lines are mutated, the test suite is executed, survivors are returned), but says nothing about cost/runtime, whether the working tree must be clean, or what side effects (temp files, test execution) occur.

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?

Two sentences, front-loaded with the scoping constraint, and every clause carries information an agent needs. Nothing is padded.

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?

No output schema exists, but the description states what is returned (mutants the tests failed to detect), and all six optional params are schema-documented. It stops short of covering runtime expectations or prerequisites for a test-suite-executing tool.

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 every parameter including defaults is already documented in the schema. The description adds no syntax or behavioral nuance beyond that, so baseline 3 applies.

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 verb and resource chain: mutates only added Python lines vs a git revision, runs the test suite, returns undetected mutants. The 'diff-scoped' framing implicitly separates it from fang_mutation_score (whole-project scoring), but no sibling is named explicitly.

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

Usage Guidelines3/5

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

'Use this to verify that new tests actually bite' gives a clear motivating scenario, but there is no explicit when-not guidance and no routing to fang_mutation_score or fang_list_survivors for the whole-repo or follow-up cases.

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