find_complexity
Lists functions and methods whose cyclomatic complexity exceeds a set threshold, helping identify code that is harder to test and more likely to hide bugs.
Instructions
List functions and methods with cyclomatic complexity above a threshold. Higher complexity = harder to test, more likely to hide bugs.
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": "find_complexity"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| repo_path | Yes | ||
| threshold | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||