MCP server + proxy that cuts cloud LLM costs 36-42% by indexing context locally with Ollama and giving agents precision retrieval tools instead of raw dumps.
Context Guardian has 11 tools with significant definition gaps. Only index_content has a visible, complete schema in src/mcp/server.ts. The remaining 10 tools (log_search, file_read, grep, summary, repo_map, file_tree, symbol_find, git_diff, test_failures, run_checks) are imported but their definitions are inferred from benchmark files, not visible in the actual tool registration code. Most tools lack parameter descriptions and output schemas. Descriptions are present but generic (10-50 chars), below the 50-200 char LLM-optimized baseline. No error handling guidance, no parameter constraints (enums, ranges), no output schema documentation. Tool names follow verb_noun convention (good), but lack specificity about what data they operate on (e.g., 'grep' vs 'grep_indexed_content').
Read and retrieve indexed file content
Display file tree structure from indexed content
Retrieve and analyze git diffs from indexed content
Search indexed content using grep-like pattern matching
Index raw text content (logs, code, config, etc.) into the Context Guardian store for later retrieval. Call this first before using log_search, grep, file_read, or summary.
Search indexed logs by keyword or pattern
Generate a map/overview of repository structure from indexed content
10 of 11 tools have no visible input schemas. Tool definitions are inferred from benchmark files (run-oss-benchmark.ts), not explicitly registered in server.ts.
Descriptions for 10 tools are under 50 characters and lack LLM-optimized context. E.g., 'Search indexed logs by keyword or pattern' (44 chars) does not explain WHEN to use it, what it returns, or how it differs from grep. Baseline: 50-200 chars for optimal LLM selection.
Inferred effective spec: <=2025-11-25.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | F | 42 | <=2025-11-25 | v2 |
Execute and retrieve results from indexed check/lint output
Generate summaries of indexed content
Find symbols (functions, classes, variables) in indexed code
Analyze test failures from indexed logs and output
No parameter descriptions visible for any tool except index_content. LLMs cannot infer what 'pattern' means in grep, what 'limit' does in log_search, or what output format summary produces. Every parameter needs a description.
No output schemas documented for any tool. LLMs cannot plan downstream calls or extract required fields. E.g., does log_search return {matches: [{line, content, source}]} or {results: string[]}? Undocumented outputs force LLMs to guess.
No error handling guidance. If a search returns no results, or a file is not indexed, tools should return actionable recovery hints (e.g., 'No matches found. Try index_content() first' or 'Pattern syntax error: use grep -E for extended regex'). Currently no error classification or recovery paths.