Skip to main content
Glama

impact_analysis

Analyze the impact of changing a module by tracing its importers and transitive dependencies. Flags high-risk hubs to guide safe refactoring.

Instructions

What could break if you change target? Walks the import graph backwards to list direct importers and the full transitive blast radius, and flags whether the target is a high-risk hub. Use before editing/refactoring a module.

Args: target: Module or file to analyze, e.g. "app/core/db.py" or "app.core.db". If omitted, returns the highest-impact modules to pick from. path: Repo root. language: 'auto', 'python', or 'js'/'ts'.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
targetNo
pathNo.
languageNoauto

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

With no annotations, description fully discloses behavior: walks import graph backwards, lists direct and transitive importers, flags high-risk hubs. However, does not mention potential performance implications for large graphs or that it is read-only.

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?

Description is very concise and well-structured. Opens with a question to engage, then explains functionality, usage recommendation, and parameter details. Every sentence is meaningful with no redundancy.

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?

Given that output schema exists (not shown but context indicates true), description covers inputs and behavior adequately. With 3 optional parameters and no annotations, it explains the tool's purpose and inputs well. Could mention that it is read-only or safe to run.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0%, so description adds significant value. It explains each parameter: target (module/file, default returns highest-impact modules), path (repo root), language (auto, python, js/ts). Provides examples and clarifies behavior when omitted.

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?

Description clearly states it walks import graph backwards to list importers and blast radius, and flags high-risk hubs. It is specific about the action (impact analysis) and resource (target module). Distinguishes from sibling tools like dependency_graph by focusing on backward analysis and change 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?

Explicitly says 'Use before editing/refactoring a module.' Also mentions that omitting target returns highest-impact modules. Provides clear context but does not explicitly contrast with sibling tools or state when not to use.

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/kannajune/mcp-architect'

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