Skip to main content
Glama

minimal_diff_review

Review a diff for signs of over-building, flagging concrete evidence like single-use abstractions, thin wrappers, or unnecessary dependencies, and offer smaller alternatives without blocking your write.

Instructions

Reviews a diff for signs of over-building — findings NEVER block a write, they are hints. Deterministic, no LLM: it flags a single-use abstraction, a thin forwarding wrapper, a new dependency with a well-known stdlib equivalent, a possible duplicate helper, and a logic change with no accompanying test change. Evidence is asymmetric: a check stays silent unless it can point at concrete evidence and (where defensible) a smaller alternative, so silence is NOT proof a change is minimal. Findings are labelled by confidence: high = proven from the diff text; low = leans on the topology index, which is approximate (its call graph is intra-file — unlike find_references' exact cross-file lookup) and may be a few edits stale. Reviews the working-tree diff vs base_ref (default HEAD); pass files to scope it to your change in a shared worktree. Degrades cleanly outside a git repository.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modeNochanged (default) reviews the working tree vs base_ref (all uncommitted changes); staged reviews only the index vs base_ref.
filesNoRestrict the review to these paths (workspace-relative or absolute). Strongly recommended in a shared worktree so unrelated peer-agent edits are excluded.
base_refNoGit ref to diff against (default HEAD, i.e. review uncommitted changes).
max_findingsNoCap on findings returned (default 20, max 100).
include_suggestionsNoInclude a concrete smaller-alternative line per finding (default true).
Behavior5/5

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

With no annotations, the description fully discloses behavior: findings are never blocking, evidence is asymmetric (silence is not proof), confidence is labelled with specific limitations of the topology index (approximate, intra-file, possibly stale), and it degrades cleanly outside git. This exceptional transparency goes beyond typical tool descriptions.

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 description is a single dense paragraph, front-loaded with purpose. Every sentence earns its place, but the length and run-on structure make it slightly harder to scan quickly. It could benefit from shorter sentences or bullet-like separation, yet it remains efficient.

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?

There is no output schema, so the description carries the burden of explaining what to expect. It lists specific finding types, confidence levels, and the meaning of silence, which is substantial. It stops short of describing the exact return structure, but the behavior is well-covered for a review tool.

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 baseline is 3. The description adds practical meaning beyond the schema by explaining `files` scoping in shared worktrees and reinforcing the default behavior of base_ref. This added context elevates the 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 opens with a specific verb+resource: 'Reviews a diff for signs of over-building'. It clearly distinguishes itself from siblings by contrasting its deterministic, no-LLM approach with find_references' exact cross-file lookup. The tool's unique role as a non-blocking minimality review is unmistakable.

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?

Provides clear context: reviews working-tree diff vs base_ref, recommends passing `files` in shared worktrees, and notes graceful degradation outside git. However, it does not explicitly name when not to use it or name alternative tools for raw diffs or cross-file reference checking, leaving some inference to the agent.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/plumbkit/plumb'

If you have feedback or need assistance with the MCP directory API, please join our Discord server