Self-contained MCP server exposing hybrid document search as tools for AI agents
Three well-named, read-only tools with clear descriptions and proper input schemas. search_publications and get_publication have excellent descriptions (150 - 200 chars) that explain WHEN to use each and what to expect. All parameters are typed and described. Output schemas are documented in descriptions. However, no error handling guidance (e.g., 'If doc_id not found, try list_topics()'), no parameter constraints (top_k accepts 1 - 20 but no enum/min/max in schema), and no tool annotations (readOnlyHint missing). Descriptions could be more concise for LLM token efficiency. Overall solid foundation with room for schema formalization.
Return the full text and metadata of one publication by its doc_id. Use this after search_publications when a passage is promising but truncated, or when the user asks to summarize a specific publication in full. The doc_id comes from search_publications or list_topics results.
List what the corpus contains: document count and every publication's id, title, date and url. Use this when the user asks what the corpus covers, which publications are available, or when you need a valid doc_id and search_publications has not returned one.
Search the indexed publication corpus and return the most relevant passages. Use this tool whenever the question is about topics, positions, facts or trends covered by the indexed publications (e.g. "what does this corpus say about AI agents in the enterprise?"). Prefer it over get_publication for any topical question; only fall back to get_publication when a returned passage needs its full surrounding document. Each result contains the passage text, its BM25 relevance score, and the source publication (doc_id, title, url, date). Cite title + url when using a passage in an answer.
No tool annotations (readOnlyHint) declared. All three tools are read-only but lack explicit annotation in schema, forcing LLMs to infer safety from descriptions alone.
Parameter 'top_k' lacks min/max constraints in schema. Description states 'max 20' but JSON Schema has no maximum property, allowing LLMs to pass invalid values.
No error recovery guidance. get_publication raises ValueError for invalid doc_id but description does not guide LLM to call list_topics() first or explain the error.
Output schemas not formally documented in JSON Schema. Descriptions mention 'passage text, BM25 score, source publication' but no structured schema definition visible for return types.
Inferred effective spec: 2026-07-28+.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | C | 62 | 2026-07-28+ | v2 |
Descriptions are verbose (150 - 200 chars) and include usage guidance that could be condensed. Baseline for A+ tools is 50 - 200 chars; these are at the upper bound and waste tokens on LLM reasoning.