code_complexity
Analyze source code complexity by calculating cyclomatic complexity and other metrics. Supports multiple programming languages with Python as default.
Instructions
Calculate cyclomatic complexity and other code metrics.
Parameters:
code — Source code to analyze complexity of.
language — Programming language (default: 'python').
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": "code_complexity"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | ||
| language | No | python |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |