Size Thresholds
check_thresholdsAnalyze a file or directory to find files and functions that exceed line-count thresholds. Set limits, depth, or file constraints to control returned violations.
Instructions
Finds files/functions exceeding size thresholds. Use limit to control output.
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": {
"path": "<path>"
},
"name": "check_thresholds"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | File or directory to analyze; must be inside the allowed roots | |
| limit | No | Max violations returned per list (default 20) | |
| max_depth | No | Max directory depth to descend (default unlimited) | |
| max_files | No | Stop after scanning this many files (default unlimited) | |
| extensions | No | Only scan these extensions, e.g. [".ts", ".py"] (default all supported) | |
| include_hidden | No | Include dotfiles and dot-directories (default false) | |
| max_file_lines | No | Flag files longer than this many lines (default 300) | |
| ignore_patterns | No | Extra gitignore-style patterns to exclude, relative to path | |
| max_function_lines | No | Flag functions longer than this many lines (default 100) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| _meta | No | ||
| summary | Yes | ||
| thresholds | Yes | ||
| violations | Yes |