complexity
Identify complex code in a project by retrieving cyclomatic complexity metrics for symbols, sorted from highest to lowest, with optional filters.
Instructions
Show complexity metrics for symbols in the project, sorted by 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": {
"project_id": "<project_id>"
},
"name": "complexity"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | Filter to specific file (relative path) | |
| limit | No | Maximum results | |
| project_id | Yes | Project ID | |
| min_cyclomatic | No | Minimum cyclomatic complexity to show |