Context-efficient code retrieval over MCP: four tools chosen by measurement, no index files, no daemon, offline by default
retrieval-mcp defines 7 code-search tools with basic schemas and descriptions. All tools are READ_ONLY and follow verb_noun naming (search_exact, read_source, inspect_symbol, find_symbol, find_callers, trace_dependencies, search_concept). However, descriptions are terse (10-50 chars), lack WHEN/WHY guidance, and omit output schema documentation. Parameters have types but lack detailed constraints or format guidance. No error handling guidance visible. Tool definitions appear in experiments/tool_reachability.py (test harness), not in the main source, this suggests tool registration may be inferred rather than explicitly visible in the server code.
Find all callers of a specific function or method
Find all definitions of a symbol across the codebase
Inspect a specific symbol definition in source code
Read and return the contents of a source file
Search for code matching a semantic concept or description
Search for exact string matches in source code
Trace dependencies and imports for a given file or symbol
Descriptions are under 20 characters and lack WHEN/WHY context. E.g., 'Search for exact string matches in source code' (50 chars) does not explain when to use search_exact vs search_concept, or what output structure to expect.
Output schemas are not documented. LLMs cannot plan downstream tool calls or extract required fields (e.g., does find_symbol return file paths, line numbers, symbol definitions?). This violates the documented output schema requirement.
Parameter descriptions lack format guidance and constraints. 'query' and 'symbol' parameters have minimal descriptions; no guidance on regex support, case sensitivity, or maximum length. 'limit' lacks min/max bounds (baseline: 1 - 100 or 1 - 365).
Inferred effective spec: 2025-06-18+.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | D | 50 | 2025-06-18+ | v2 |
Tool definitions appear only in experiments/tool_reachability.py (test harness), not in the main Rust source. Cannot verify explicit tool registration in the server implementation.
No error handling guidance. Tools may fail (file not found, symbol not found, timeout on large codebases) but descriptions do not explain recovery steps or error categories (retryable vs user-fixable).