refactor_priority
Ranks untested complexity hotspots in a Python repo by combining cyclomatic complexity, line count, callers, and coverage, so you know which function to refactor first.
Instructions
Rank the top N untested complexity hotspots in a Python repo. Combines cyclomatic complexity, line count, caller count, and test coverage into one composite score. Use this to answer 'what should I refactor 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": {
"repo_path": "<repo_path>"
},
"name": "refactor_priority"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| repo_path | Yes | ||
| min_priority | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||