archy_cycles
Detects import cycles in Python projects by computing Tarjan strongly connected components, returning cycles sorted by size, with options to set minimum cycle size and focus on internal modules.
Instructions
Find import cycles (Tarjan SCCs of size >= min_size, plus self-loops) in a Python project. Returns cycles sorted largest-first.
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": "archy_cycles"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| min_size | No | ||
| internal_only | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |