Skip to main content
Glama

Change Impact

change_impact
Read-only

Ranks files most likely to own a plain-English change request, flagging risks and suggesting tests, an implementation plan, and exact changed-file evidence from an optional diff base.

Instructions

Given a plain-English change request, rank the files most likely to own the change, with risk flags, suggested tests, and an implementation plan. Optional diff base surfaces exact changed-file evidence alongside the heuristic. When the repository's .solumberc.json lists companions, companions also carries the top few files each companion repository would own for the same request.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "query": "<query>"
    },
    "name": "change_impact"
  }
}

Input Schema

NameRequiredDescriptionDefault
refNoGit ref whose tree to rank instead of the files on disk (e.g. origin/main). Omitted, a clean checkout that is behind its upstream is ranked against that upstream, and the result says so; a checkout with uncommitted changes is always ranked as it is.
topNoNumber of files to return. Defaults to 10.
pathNoRepository path. Defaults to the server's working directory; when editing in a git worktree, pass the worktree's path.
amendNoAdd files to the declared intent passed as intent, with the reason they belong to the change. Returns the amended record under intent without ranking anything; nothing is written.
queryYesPlain-English change request.
intentNoWith amend: the declared intent to add files to (the record, its JSON, or a path to it). Its request must be the query.
declareNoAlso freeze the predicted owner and supporting files as a declared intent (a scope contract) and return it under intent. Call it before editing, then pass that record to review_gate as intent: a changed file that was never declared fails the gate. Nothing is written.
diffBaseNoOptional git ref to validate predictions against (e.g. origin/main, HEAD).
includeMarkdownNoReturn a compact human-readable markdown report instead of the full JSON. Defaults to false.
includeUntrackedNoWith diffBase, also count untracked, non-ignored files as changed. Defaults to true; pass false to review only tracked changes.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv4.13.0
    • changedInput schema / properties / path / description
      Previous value: -"Repository path. Defaults to current working directory."New value: +"Repository path. Defaults to the server's working directory; when editing in a git worktree, pass the worktree's path."
    • addedInput schema / properties / ref
      Added value: +{
      +  "description": "Git ref whose tree to rank instead of the files on disk (e.g. origin/main). Omitted, a clean checkout that is behind its upstream is ranked against that upstream, and the result says so; a checkout with uncommitted changes is always ranked as it is.",
      +  "type": "string"
      +}
  2. Changed3 schema fields changedv4.7.2
    • addedInput schema / properties / amend
      Added value: +{
      +  "description": "Add files to the declared intent passed as intent, with the reason they belong to the change. Returns the amended record under intent without ranking anything; nothing is written.",
      +  "properties": {
      +    "files": {
      +      "description": "Repository-relative paths to add.",
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "reason": {
      +      "description": "Why these files belong to the change.",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "files",
      +    "reason"
      +  ],
      +  "type": "object"
      +}
    • addedInput schema / properties / declare
      Added value: +{
      +  "description": "Also freeze the predicted owner and supporting files as a declared intent (a scope contract) and return it under intent. Call it before editing, then pass that record to review_gate as intent: a changed file that was never declared fails the gate. Nothing is written.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / intent
      Added value: +{
      +  "description": "With amend: the declared intent to add files to (the record, its JSON, or a path to it). Its request must be the query."
      +}
  3. Changed1 schema field changedv4.2.0
    • addedInput schema / properties / includeUntracked
      Added value: +{
      +  "description": "With diffBase, also count untracked, non-ignored files as changed. Defaults to true; pass false to review only tracked changes.",
      +  "type": "boolean"
      +}
  4. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations only declare readOnlyHint=true; the description adds that the core answer is heuristic, that a diff base supplies exact evidence alongside it, and that a companion config changes the response shape. It stops short of describing pagination or ranking confidence, but the added behavioral context is well beyond the annotation.

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?

Three sentences, front-loaded with the primary ranking behavior, then the diff-base modifier, then the companion-repository variant. Every sentence carries information; only the companion sentence is slightly dense relative to its secondary importance.

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 ten-parameter tool with nested objects and no output schema, the description covers the shape of the result (ranked files, risk flags, tests, plan, companions) and the key behavioral modifier. Remaining gaps are minor because the input schema's own parameter descriptions carry the declare/intent workflow in detail.

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 the baseline is 3; the description earns above that by explaining what diffBase buys (exact changed-file evidence layered on the heuristic) and by surfacing the companions output that keys off .solumberc.json. It does not restate the nested amend/declare semantics, but those are already fully documented in the schema.

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 specific verb and resource: rank files most likely to own a plain-English change request, and enumerates the outputs (risk flags, suggested tests, implementation plan). That framing distinguishes it cleanly from search- or context-oriented siblings without needing to name them.

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?

The description implies when to reach for it by describing the input as a plain-English change request and explaining that an optional diff base adds exact changed-file evidence. It never states when not to use it or points to an alternative tool, leaving selection guidance implicit.

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