MCP server providing tools for indexing and querying Rust code symbols using rust-analyzer integration
Cratographer provides 2 tools with explicit definitions in src/main.rs. Both tools have clear descriptions and properly defined JSON Schema input parameters with type annotations. However, critical gaps in parameter descriptions, missing output schema documentation, and lack of error recovery guidance significantly limit production readiness. Tool names follow verb_noun convention ('find_symbol', 'enumerate_file') which is good, but descriptions lack context about when to use each tool versus the other, and no guidance on multi-step workflows. Parameter descriptions exist but are minimal and lack constraints or dependency hints.
List all symbols defined in a specific file
Find all occurrences of a Rust symbol (struct, enum, trait, function, method, impl) by name. Searches both project and library files. Can apply symbol filter: all, types, functions, or implementations.
Output schemas are not documented. Neither tool's response structure is specified in code or comments. LLMs cannot plan downstream calls or extract field names without documented return types.
Missing input schema documentation in parameter descriptions for 'mode', 'include_library', 'filter' parameters. The description says 'exact', 'fuzzy', or 'prefix' as examples but does not state these are the ONLY valid options or whether they must be lowercase. This invites hallucinated values from LLMs.
No error recovery guidance in tool descriptions. Error handling code in check_init_state() returns custom error codes (-32001, -32002) but tool descriptions do not explain how the LLM should respond to initialization errors or what to do if the server is not ready.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-22 | D | 53 | 2026-07-28+ | v2 |
| 2026-03-09 | F | 0 | - | v1 |
Parameter 'filter' in find_symbol lacks enum constraint in schema. The description mentions 'types', 'implementations', 'functions', or 'all' but the JSON Schema shows type 'string' with no enum declaration. LLMs will guess at valid values.
Parameter 'mode' in find_symbol has no constraint. Description mentions 'exact', 'fuzzy', 'prefix' but schema is bare string type. No enum, no pattern, no validation message if invalid mode is passed.
enumerate_file description (21 characters) is minimal and does not explain when to call it versus find_symbol, what the output structure is, or whether it is useful as a discovery tool before searching. LLMs cannot reason about tool selection with such sparse documentation.
No documentation of what find_symbol returns. Does it return symbol locations, definitions, usages, or all three? Are line numbers, file paths, and symbol kinds included? LLMs cannot extract or chain results without knowing the response structure.
No pagination or result limits documented. If a symbol appears in 1000 places in a large codebase, does find_symbol return all 1000 results? No limit, no offset, no total count documented. This could blow the context window.
Tool descriptions do not clarify expected input format or constraints. For 'file_path' parameter in enumerate_file, the description says 'absolute path' but does not specify if it must exist, what happens if it doesn't, or if relative paths are rejected.