Find circular dependencies
find_circular_dependenciesDetects circular dependencies (import cycles) in a source directory using Tarjan's algorithm, reporting each cycle with severity based on module count.
Instructions
Detects import cycles using Tarjan's algorithm. Returns each cycle with a severity based on how many modules it spans.
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": {
"directory": "<directory>"
},
"name": "find_circular_dependencies"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| directory | Yes | Absolute or relative path to the source directory to analyse |