impact
Trace the blast radius of a symbol change by walking the reverse call graph across multiple hops to find every caller that could be affected before refactoring.
Instructions
Trace the blast radius of changing a symbol: starting from the given symbol, walk the reverse call graph — direct callers, their callers, and so on across multiple hops — and return every symbol that could be affected by a change to it. Each affected symbol comes with a depth field (how many hops away it is) and a resolution field naming which index-wide lookup resolved that call edge (e.g. same-file, scoped, global-unique — scoped/global-unique both mean a single matching definition was found index-wide, see docs/mcp-tools.md), so results are grounded in real, resolved call relationships rather than a text search for the symbol's name (which cannot follow more than one hop and cannot tell a real call from a coincidental name match). Use this tool before refactoring — e.g. changing a function's signature or behavior — to find every place in the codebase that may need to change as a result, including indirect callers that a single-hop "find references" would miss. The response can be truncated to fit within a token budget and/or a hop-count depth; when either limit is hit, the corresponding flag is set (truncated/truncated_count for the budget, depth_truncated for depth) so a caller can tell which one cut the walk short. Results come from the local corbel index built by corbel index and only reflect the repository as of the last index run.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | Optional file path to disambiguate when multiple symbols share this name. | |
| name | Yes | The symbol name to start the impact analysis from. | |
| depth | No | Optional cap on how many call-graph hops to walk outward (0 returns no affected symbols, 1 returns only direct callers, and so on). Defaults to corbel's internal maximum of 10 if omitted, which is also the hard ceiling — values above 10 are clamped to 10. Whichever of `depth` and `token_budget` is hit first stops the walk; `depth_truncated` in the response is true only if the depth ceiling (not the budget) is what stopped it. | |
| token_budget | No | Optional cap on the size of the response, in estimated tokens. Defaults to corbel's built-in budget if omitted. |