check_complexity
Analyze Python function cyclomatic complexity to identify code that may be difficult to maintain or test, helping developers refactor complex logic.
Instructions
Analyze cyclomatic complexity of Python functions
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": "check_complexity"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max_complexity | No | Maximum allowed complexity, 0 = no limit (default: 0) | |
| min_complexity | No | Minimum complexity to report (default: 1) | |
| path | Yes | Path to Python code to analyze | |
| show_details | No | Include detailed metrics (default: true) |