complexity_analyze
Measure cyclomatic complexity in a project directory to flag overly complex functions that exceed a configurable threshold.
Instructions
Analyze cyclomatic complexity of functions and identify overly complex code
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": "complexity_analyze"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| api_key | No | API key for Pro/Enterprise | |
| directory | Yes | Project directory to analyze | |
| threshold | No | Complexity threshold to flag |