get_complexity
Identify functions exceeding line or parameter thresholds, producing compact output to prioritize refactoring without scanning every file.
Instructions
List functions/methods above complexity thresholds (too many lines or params). Ultra-compact output to help prioritize what to refactor without reading every file.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_complexity"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| min_lines | No | Minimum lines in function body to flag (default: 30) | |
| min_params | No | Minimum parameter count to flag (default: 4) | |
| file_pattern | No | Glob pattern to limit analysis (e.g. "src/**/*.ts"). Omit to scan all source files. |