Skip to main content
Glama

ctx_impact

Assess the blast radius of changing a symbol or file before editing code. Get direct, indirect, and test impacts with import distances to identify what else needs updating.

Instructions

Analyze the blast radius of changing a symbol or file. Returns an ImpactReport: {target, target_symbol, depth, direct, indirect, tests, unknown} where direct/indirect/test lists are [{path, distance, symbols}]; unknown surfaces imports that could not be statically mapped. Use before modifying code to estimate what else must be checked or updated. Provide exactly one of symbol (a name) or path (a project-relative file); depth controls how many hops of indirect impact to traverse (default 3, 1-20). Requires the project to be indexed; returns an error object if the target is not found.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathNoProject-relative file path to analyze, as an alternative to symbol.
depthNoHow many hops of indirect impact to traverse. Default 3.
symbolNoSymbol name to analyze. Provide this OR path, not both.
Behavior5/5

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

With no annotations, the description carries the full disclosure burden and does so well: it specifies the report structure, the shape of impact lists, error behavior for missing targets, the indexed-project prerequisite, and depth semantics. No contradiction with annotations because none exist.

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

Conciseness5/5

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

Dense but structured: purpose first, output shape second, invocation constraints third. Every clause contributes necessary information for selecting and calling the tool.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

In the absence of an output schema, the description enumerates all report fields and list item shapes, explains unknown imports, and covers error and precondition behavior. An agent has enough to invoke the tool and interpret its result correctly.

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?

All three parameters are fully described in the input schema, so the baseline is 3. The description restates the one-of exclusivity, symbol/path meanings, and depth default/range without adding genuinely new semantic information beyond 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?

Opens with a specific verb and resource: analyze the blast radius of changing a symbol or file. The ImpactReport output and pre-modification use case make it identifiable against sibling tools like ctx_dependencies or ctx_dependents.

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?

Explicitly instructs to use the tool before modifying code to estimate what else must be checked or updated. It does not mention when not to use it or name sibling alternatives, but the use context is clear enough for an agent.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/halloffame12/CTX'

If you have feedback or need assistance with the MCP directory API, please join our Discord server