analyze_complexity
Evaluate cyclomatic and cognitive complexity in your codebase to identify overly complex functions and improve maintainability.
Instructions
Evaluate cyclomatic and cognitive complexity
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": "analyze_complexity"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Directory or file path to analyze | |
| reportFormat | No | summary | |
| maxComplexity | No | Maximum allowed complexity |