Predicts what will break if you modify, delete, or rename a symbol. Returns direct impacts (callers, references, subclasses), indirect impacts (two-level transitive dependents), and cross-project impacts from consumers in other indexed projects.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| uri | string | Yes | -- | File URI containing the symbol (e.g., file:///path/to/file.ts) |
| line | number | Yes | -- | Line number of the symbol (0-indexed) |
| changeType | enum | No | modify | Type of change: modify (shows callers/dependents), delete (shows all references that would break), rename (shows all sites needing updates) |
| summary | boolean | No | false | Return a condensed summary when many impacts are found |
Natural Language:
"What will break if I change the signature of validateRequest?"
MCP Tool Call:
{
"name": "stellarion_analyze_impact",
"arguments": {
"uri": "file:///home/dev/project/src/middleware/validation.ts",
"line": 15,
"changeType": "modify"
}
}
Returns: 12 direct callers across 5 files, 3 indirect dependents through the middleware chain, risk level "high" due to the number of affected call sites.
Natural Language:
"Can I safely remove the legacyParser function?"
MCP Tool Call:
{
"name": "stellarion_analyze_impact",
"arguments": {
"uri": "file:///home/dev/project/src/parsers/legacy.py",
"line": 8,
"changeType": "delete"
}
}
Returns: All references that would break, including 2 import statements, 1 direct call in a migration script, and 0 transitive dependents. Risk level "low".
Natural Language:
"I want to rename UserDTO to UserResponse -- what needs updating?"
MCP Tool Call:
{
"name": "stellarion_analyze_impact",
"arguments": {
"uri": "file:///home/dev/project/src/models/user.ts",
"line": 3,
"changeType": "rename"
}
}
Returns: Every site referencing UserDTO -- type annotations, imports, function parameters, variable declarations -- across the entire codebase, plus cross-project consumers.
#include tracking. Risk level is elevated when cross-project consumers exist.summary: true) Condensed view with counts and top affected files.changeType: "delete" to validate that stellarion_find_unused_code results are truly unused. Impact analysis traces runtime references that unused-code detection might miss.summary: true to get counts and top files instead of the full list.stellarion_find_related_tests to find tests covering the affected code paths.