Squawk for backtests — static leakage/lookahead-bias detector for trading/ML strategy code, exposed over MCP.
leakguard-mcp exposes 5 well-named, read-only tools with clear descriptions (avg 95 chars). All tools have input schemas with typed parameters and descriptions. However, output schemas are not formally documented, responses are inferred from code (e.g., lint_code returns {ok, parse_error, findings}). Error handling is basic: lint_file catches OSError/UnicodeDecodeError but returns unstructured error dicts. No pagination, no per-item success/failure tracking, and no guidance for recovery. Parameter descriptions are adequate but lack format constraints (e.g., 'pattern' in lint_paths should specify glob syntax). Tool composition is sound, each tool has one responsibility, but output chaining is weak (e.g., explain_rule returns 'known' field with rule IDs, but no tool accepts a list of rule IDs for batch explanation).
Long-form rationale and canonical fix pattern for one rule id (e.g. 'LG001').
Scan a source string for leakage patterns. Returns {ok, parse_error, findings}.
Scan a single file on disk. Returns {ok, parse_error, findings} or an error dict.
Scan every file matching a glob. Returns {path: {ok, parse_error, findings}}.
Full rule catalog with id, name, severity, and one-line summary.
Output schemas not formally documented. lint_code, lint_file, lint_paths return {ok, parse_error, findings} but no schema is visible in tool registration. Agents cannot plan downstream operations or validate response structure.
Error handling lacks recovery guidance. lint_file returns {ok: false, error: '...'} on file read failure, but does not suggest next steps (e.g., 'Check file path or permissions'). Agents cannot self-correct.
Parameter 'pattern' in lint_paths lacks format constraints. Description says 'Glob pattern to match files' but does not specify glob syntax, recursive behavior, or limits. Agents may pass invalid patterns.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | D | 57 | 2026-07-28+ | v2 |
No pagination or result limits. lint_paths can return unbounded results for broad globs (e.g., '**/*.py'). Large result sets blow context windows. No limit parameter or cursor guidance.
explain_rule returns 'known' field with rule ID list but no tool accepts batch rule IDs. Agents cannot efficiently explain multiple rules, must call explain_rule N times.