MCP server: two-pass Wenyan compression for URLs, files, diffs, logs
caveman-mcp has 5 tools with explicit registrations and visible schemas. All tools have descriptions (194-250 chars, within baseline range) and input parameters with type definitions. However, critical gaps reduce quality: (1) Parameter descriptions are minimal or missing context. CondenseURLArgs.URL has description 'Webpage URL to fetch and condense' but lacks format/validation hints. (2) No output schema documentation, Result struct is returned but not described in tool definitions. (3) No error handling guidance, tools return raw errors without recovery hints. (4) All tools accept optional skip_llm boolean but lack explanation of when/why to use it. (5) condense_git and condense_log have mutually exclusive parameters (text|path|pr_url) but descriptions don't state this clearly. (6) No pagination, limits, or result size constraints documented. Naming is clear and verb-forward (condense_*), following pattern:tool conventions. Schemas are present but incomplete per pattern:tool-description baseline (100% of A+ tools document return types; this server does not).
Read a local file (md/pdf/docx/html/txt), extract text, and condense to Wenyan. Returns compressed text with stats.
Condense git diffs, logs, blame, or GitHub PRs to Wenyan. Provide one of: text (raw), path (file), pr_url (GitHub PR URL).
Parse and condense error logs and stack traces (Go/Python/JS/Java/Rust). Deduplicates repeated errors. Provide text or path.
Condense raw text to Wenyan ultra-compressed form. Returns compressed text with stats.
Fetch a webpage, extract main content, and condense it to ultra-compressed Wenyan classical Chinese (mechanical pre-pass + LLM). Returns compressed text with stats.
No output schema documentation. Tools return Result struct with fields (Compressed, OriginalChars, CompressedChars, Ratio, Method) but tool definitions do not document this structure. LLMs cannot plan downstream operations or extract fields reliably.
Mutually exclusive parameters not documented. condense_git requires exactly one of (text, path, pr_url) and condense_log requires exactly one of (text, path), but parameter descriptions do not state this constraint. LLMs may pass multiple or none, causing runtime errors.
No error recovery guidance. Tools return raw errors (e.g., 'extract URL %s: %w') without actionable next steps. Per pattern:recovery-guide, errors should tell LLM what to do: 'URL fetch failed. Verify URL is public and accessible, or try a different source.'
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | D | 53 | 2026-07-28+ | v2 |
skip_llm parameter lacks context. All tools accept skip_llm boolean but descriptions do not explain when to use it, what the trade-off is (speed vs quality), or when LLM pass is unavailable (e.g., if LLM_API_KEY not set). LLMs cannot reason about this parameter.
No input validation constraints documented. condense_file accepts 'Absolute path to file' but does not specify allowed extensions, max file size, or security boundaries (e.g., no path traversal). Per pattern:constrained-input, format and range constraints must be explicit.