detect_architectural_cycles
Detect circular import dependencies in TypeScript projects to identify tight coupling and unpredictable module initialization order before refactoring.
Instructions
Detects circular import dependencies — A imports B which imports C which imports A. Cycles cause unpredictable module initialization order and indicate tight coupling. Use to answer: are there circular dependencies I need to break before refactoring?
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": {
"project_root": "<project_root>"
},
"name": "detect_architectural_cycles"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_root | Yes | Absolute path to the TypeScript project root (must contain tsconfig.json) |