Personal markdown book knowledge base with MCP server for retrieving imported Markdown book slices using hybrid search (BM25 + vector embeddings)
Knowshelf provides two read-only tools with complete JSON schemas and detailed descriptions in Chinese. Both tools have proper input schemas with type definitions, required fields, and constraints (e.g., minLength, maxItems). Descriptions are substantive (150-250 chars) and explain WHEN to use each tool and dependencies between them. However, output schemas are not documented, LLMs cannot predict response structure. Parameter descriptions are present but could be more explicit about format/constraints. No error handling guidance, no tool annotations (readOnlyHint), and no pagination support despite query potentially returning many results.
列出所有已导入且 active 的书籍 id 和 title。
按 question 检索书籍切片。若用户提到一本书,先用 listAllBooks 确认是否已导入,再用 bookID 限定单本书;未匹配到书籍时不要编造 bookID。rewrittenQueries 可增强 BM25/向量召回,hypotheticalAnswer 是假设答案或预回答,用于让向量检索更好匹配文档切片。
Output schemas not documented. LLMs cannot predict response structure (fields, types, nesting) for either tool. This forces agents to guess at downstream field names and risks context loss.
No pagination support on query tool. If a search returns hundreds of results, the response will bloat context and degrade LLM reasoning. No limit parameter default, no cursor/offset, no total count.
No error handling guidance. If query returns no results, or bookID is invalid, or question is empty after trim, the tool provides no recovery hints. LLMs cannot self-correct.
Tool annotations missing. Both tools are read-only but lack readOnlyHint annotation. This prevents clients from optimizing caching, retry logic, or safety checks.
Inferred effective spec: 2026-07-28+.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | C | 61 | 2026-07-28+ | v2 |
Parameter descriptions lack explicit format/constraint guidance. 'question' says minLength=1 and trim behavior in schema but not in description text. LLMs cannot read JSON Schema, they rely on description prose.