Skip to main content
Glama

diffci_explain_selection

Read-only

Inspects staged, unstaged, and untracked changes to produce a snapshot-bound affected-test plan with fallback reasons, without running tests.

Instructions

Inspect current staged, unstaged and non-ignored untracked changes and return a snapshot-bound affected-test plan and fallback reasons. Runs no tests; a plan is not a passing receipt.

Input Schema

NameRequiredDescriptionDefault
repoNoAbsolute repository path; defaults to server working directory. Always pass the edited repository when using a plugin.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.35

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false. The description adds useful behavioral context beyond that: it inspects staged, unstaged, and non-ignored untracked changes, returns a snapshot-bound plan and fallback reasons, runs no tests, and clarifies that a plan is not a passing receipt. It does not describe how the plan is computed or how fallback reasons are generated, so it stops short of a full behavioral account.

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?

The description is two tight sentences with no wasted wording. The core scope is front-loaded, and the second sentence adds an important boundary condition without repetition.

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 low-complexity, single-optional-parameter, read-only tool with no output schema, the description covers what is inspected, what is returned, and the key limitation that no tests are run. It is nearly complete, though the exact shape of the affected-test plan and fallback reasons remains somewhat open.

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%, and the sole optional repo parameter is fully documented in the schema. The description adds no additional meaning about the repo parameter, so the schema does the heavy lifting and the baseline score 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?

The description states a specific action and resource: inspect staged, unstaged, and non-ignored untracked changes and return an affected-test plan with fallback reasons. It distinguishes itself from test-running siblings by saying it runs no tests, though it does not explicitly name nearby tools like diffci_select_tests or diffci_changed_files.

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?

Usage is implied: use this to obtain an affected-test plan and fallback reasons without executing tests. However, the description does not explicitly say when to choose it over diffci_select_tests, diffci_changed_files, or diffci_check, nor does it state exclusions beyond 'runs no tests'.

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