analyze_imports
Analyze Python import dependency graphs to identify circular dependencies, orphan modules, hub modules, and instability scores for understanding project architecture.
Instructions
Analyze Python import dependency graph. Returns module metrics, circular dependencies (cycles), orphan modules, hub modules, and instability scores. Use to understand project architecture.
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": {
"path": "<path>"
},
"name": "analyze_imports"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Root directory of the Python project to analyze. |