Skip to main content
Glama

Estimate Impact of a Change

impact_of_change
Read-onlyIdempotent

Estimate the blast radius of changing a C#/.NET symbol before editing; get direct, transitive, and production impact counts with a risk level to plan safe refactors.

Instructions

Estimate the blast radius of changing a symbol.

Call it first before editing a symbol other code names (rename, signature, default value): a compile checks names, not what consumers assume.

Returns directCount, transitiveCount (per declaration, with tests), productionImpactCount (without tests), risk, directImpact (max 20 find_usages items). risk reads productionImpactCount: 0 none, 1-4 low, 5-20 medium, >20 high (dependents, not what the change means). If one cycle dominates a high closure, 'saturation' leads the counts and risk reads the direct production fan-in ('cycleMembers': the cycle).

Per kind: a type - its referencing types, transitively; a method or operator - its caller closure through interface/abstract dispatch; a property, field, event or enum member - the code touching it (transitive = direct). A qualified method counts its contract and virtual-base callers ('viaContract').

An interface/abstract method or type adds 'implementers' per contract (what a signature change breaks; 'namesakes' splits merged contracts); risk reads 'riskBasis'.total = closure + production implementing types (on a type direct ones only, 'indirect' the rest; 'riskBasis'.note: no production caller).

Trailing, uncounted: 'registration' (only through DI), 'serializers' (a property's serializer sites), 'attachedProperty' (a dependency property's accessor or wrapper markup users).

Leading 'note' on misleading numbers (directCount 0: DI or reflection may reach it; unresolved core references; no production project; 'not_found' - risk 'none' measures nothing, 'nearest' a close name; a private member), 'collision' (a same-named other kind, not counted), 'namesakes' (types sharing the name, one union), 'generatedSubject' (every declaration generated), 'generatedStops' and 'generatedInvokers' (the walk ends at generated code or a method it invokes).

Read-only. symbol resolves as in find_usages, a constructor ('Type.Type') excepted.

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": {
      "sessionId": "<sessionId>",
      "symbol": "<symbol>"
    },
    "name": "impact_of_change"
  }
}

Input Schema

NameRequiredDescriptionDefault
symbolYesThe exact (case-sensitive) type, method, property, field, event, enum-member or operator (metadata) name to assess - or the qualified Type.Member form for a member.
sessionIdYesThe session_id returned by analyze_solution. Also takes an absolute .sln/.slnx/.slnf path, analyzed on first use.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.5.46514
    • changedInput schema / properties / symbol / description
      Previous value: -"The exact (case-sensitive) type, method, property, field, event or enum-member name to assess - or the qualified Type.Member form for a member."New value: +"The exact (case-sensitive) type, method, property, field, event, enum-member or operator (metadata) name to assess - or the qualified Type.Member form for a member."
  2. Changed1 schema field changedv0.5.46513
    • changedInput schema / properties / sessionId / description
      Previous value: -"The session_id returned by analyze_solution."New value: +"The session_id returned by analyze_solution. Also takes an absolute .sln/.slnx/.slnf path, analyzed on first use."
  3. First observed

TDQS

A4.2/5.0
Behavior5/5

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

Annotations already cover read-only/idempotent/non-destructive, yet the description still discloses substantial behavior: the exact returned fields, the risk thresholds keyed to productionImpactCount, cycle saturation behavior, per-symbol-kind closure semantics, and the leading/trailing diagnostic keys ('note', 'collision', 'namesakes', 'generatedStops'). This is real disclosure an agent cannot get from the annotation block or schema, including the important caveat that risk measures dependents rather than change meaning.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

It is front-loaded correctly (purpose, then call-first guidance, then return semantics), but the body is a dense wall of semicolon-joined clauses with quoted internal field names ('riskBasis'.total, 'saturation', 'namesakes') that are costly to parse in one pass. Given there is no output schema, most sentences do carry payload, but the telegraphic packing hurts comprehension more than it saves tokens.

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?

With no output schema, the description carries the full burden of explaining return values, and it does so thoroughly — counts, risk bands, cycle handling, implementers, and noise-suppression notes are all covered. What keeps it from a 5 is that the heavy jargon and implicit key nesting make some of that coverage harder to apply reliably than its length would suggest.

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% and both parameters (symbol, sessionId) are already documented in the schema, so the baseline of 3 applies. The description does add two useful refinements — symbol resolves as in find_usages and constructors use the 'Type.Type' form — but these are marginal additions rather than a re-specification of the parameters.

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+resource: 'Estimate the blast radius of changing a symbol.' It sharpens the distinction against the obvious alternative mental model ('a compile checks names, not what consumers assume') and anchors symbol resolution to find_usages, so an agent knows exactly which tool computes pre-edit consumer impact.

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?

Gives an explicit, actionable trigger: 'Call it first before editing a symbol other code names (rename, signature, default value)', which covers the main invocation context. It does not, however, route the agent away from adjacent siblings (e.g. evaluate_change_set, explain_symbol, find_usages as a lighter-weight option), so the when-not-to-use side is left implicit.

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