find_long_functions
Identify functions that exceed a specified line-count threshold to flag complexity in a codebase. Filter by directory and file pattern to target long functions for review.
Instructions
Find functions that exceed a line count threshold (complexity indicator).
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": "find_long_functions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| directory | No | Subdirectory to search | |
| file_glob | No | Filter by file pattern | |
| threshold | No | Line count threshold (default: 50) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| check | Yes | ||
| total | Yes | ||
| matches | Yes |