Find functions, classes, or files exceeding a line-count threshold. Useful for decomposition audits, code quality checks, and enforcing size limits during code review. Results are ordered by line count. Args: min_lines: Minimum line count to flag. Default: 50. kind: Opt
(
min_lines: int = 50,
kind: Optional[str] = None,
file_path_pattern: Optional[str] = None,
limit: int = 50,
repo_root: Optional[str] = None,
)
| 393 | |
| 394 | @mcp.tool() |
| 395 | def find_large_functions_tool( |
| 396 | min_lines: int = 50, |
| 397 | kind: Optional[str] = None, |
| 398 | file_path_pattern: Optional[str] = None, |
| 399 | limit: int = 50, |
| 400 | repo_root: Optional[str] = None, |
| 401 | ) -> dict: |
| 402 | """Find functions, classes, or files exceeding a line-count threshold. |
| 403 | |
| 404 | Useful for decomposition audits, code quality checks, and enforcing |
| 405 | size limits during code review. Results are ordered by line count. |
| 406 | |
| 407 | Args: |
| 408 | min_lines: Minimum line count to flag. Default: 50. |
| 409 | kind: Optional filter: Function, Class, File, or Test. |
| 410 | file_path_pattern: Filter by file path substring (e.g. "components/"). |
| 411 | limit: Maximum results. Default: 50. |
| 412 | repo_root: Repository root path. Auto-detected if omitted. |
| 413 | """ |
| 414 | return find_large_functions( |
| 415 | min_lines=min_lines, kind=kind, file_path_pattern=file_path_pattern, |
| 416 | limit=limit, repo_root=_resolve_repo_root(repo_root), |
| 417 | ) |
| 418 | |
| 419 | |
| 420 | @mcp.tool() |
nothing calls this directly
no test coverage detected