Estimate Impact of a Change
impact_of_changeEstimate 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
| Name | Required | Description | Default |
|---|---|---|---|
| symbol | Yes | 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. | |
| sessionId | Yes | The session_id returned by analyze_solution. Also takes an absolute .sln/.slnx/.slnf path, analyzed on first use. |