Most complex files
most_complex_filesIdentify complex files by cyclomatic complexity to pinpoint refactoring targets without reading the entire codebase.
Instructions
Ranks modules by cyclomatic complexity so you can find refactoring targets without reading the codebase.
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": "most_complex_files"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | How many files to return (1-50) | |
| directory | Yes | Absolute or relative path to the source directory to analyse |