analyze_complexity
Analyze code complexity including cyclomatic complexity, cognitive complexity, nesting depth, and maintainability index.
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": {
"code": "<code>"
},
"name": "analyze_complexity"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | The code snippet to analyze | |
| language | No | Programming language (optional, auto-detected if omitted) |