MCP server that exposes Readium's functionality for document analysis
The server has ONE tool (analyze_docs) with a complete input schema and non-trivial description. However, the description is generic and lacks LLM-optimized clarity about WHEN to use this tool vs alternatives. The schema is present and comprehensive, but the tool's single responsibility is somewhat ambiguous, it analyzes 'documentation from a local directory, Git repo, or URL', which are three distinct sources. Parameter descriptions exist but lack format/constraint guidance for critical fields like 'path' (is it a file URI? A local path? GitHub SSH URL?). Output schema is structured (returns text blocks) but undocumented in the tool definition itself, LLMs must infer the structure from code. Error handling is present (try/catch with isError flag) but does not guide recovery (no suggestions for what to do if analysis fails). No tool annotations (readOnlyHint, idempotentHint) despite this being a read-only operation. Overall: functional but below production quality; lacks the polish and LLM-optimization of A-grade tools.
Analyze documentation from a local directory, Git repo, or URL using Readium. Returns a summary, tree structure, and content.
Tool name 'analyze_docs' does not clearly distinguish from similar documentation tools. Lacks verb clarity, does it 'get', 'search', 'summarize', or 'index'? Current name is ambiguous.
Parameter 'path' lacks format specification. Description says 'The path to a local directory, Git repository, or URL to analyze' but does not clarify: Is it a file:// URI? A relative path? A GitHub HTTPS URL? A Git SSH URL? LLMs will guess and fail.
Parameter descriptions lack constraints. 'url_mode' has no enum or valid options listed. 'max_file_size' has no guidance on units or safe bounds. 'exclude_dirs' and 'exclude_ext' have no examples. LLMs cannot infer valid values.
Tool description does not explain WHEN to use this tool. It says what it does but not why or when an LLM should call it. A 54-pattern analysis prompt needs context: 'Use this when the user asks to understand a codebase structure, API documentation, or project layout.'
Inferred effective spec: <=2025-11-25.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-22 | D | 51 | <=2025-11-25 | v2 |
| 2026-03-09 | D | 52 | - | v1 |
Output schema is unstructured from the tool definition perspective. The tool returns {'content': [...], 'isError': bool} with text blocks, but this structure is not documented in the tool definition, LLMs must reverse-engineer it from code or error.
Error handling does not guide recovery. When analysis fails, the tool returns {'content': [error_text], 'isError': true} with no suggestions. LLMs receive a stack trace and have no guidance on retry, alternatives, or root cause.
No tool annotations. This is a read-only, idempotent operation, it should declare readOnlyHint=true and idempotentHint=true to let clients optimize caching and plan generation.
Tool responsibility is unclear. Analyzing 'a local directory, Git repo, OR URL' are three distinct use cases with different implementations. Consider splitting: analyze_local_docs, analyze_git_repo, analyze_url_docs. Or rename to clarify scope.