MCP server that exposes knowledge base retrieval and web search tools via FastMCP (stdio transport). Integrates with SmartDesk's private knowledge base using ChromaDB semantic search and DuckDuckGo web search.
Two tools with basic schemas and descriptions, but significant gaps in parameter documentation and output structure. 'retrieve' has a reasonable description (156 chars) but lacks parameter descriptions for 'kb_id' and 'query'. 'web_search' similarly has a description (127 chars) but minimal parameter guidance. Neither tool documents return schema structure explicitly in the tool definition. No error handling guidance, no parameter constraints (enums, ranges), and no indication of idempotency or side effects. Output descriptions mention 'chunks', 'evidence', 'relevance_ok' but these are buried in prose rather than formally specified. Parameter types are present in JSON schema but descriptions are minimal or absent.
Search a SmartDesk knowledge base for relevant document chunks. Args: kb_id: ID of the knowledge base to search (integer). query: Natural-language search query. Returns a dict with: chunks — list of matching text strings evidence — list of {"text": str, "source": str} for citation relevance_ok — True when the top result is below the cosine distance threshold (0.8); False signals low-confidence results.
Search the public web using DuckDuckGo (no API key required). Args: query: Search query string. num_results: Maximum number of results to return (default 5). Returns a dict with: results — list of {"title": str, "url": str, "snippet": str} evidence — list of {"text": str, "source": str} for citation
Parameter descriptions missing or minimal. 'kb_id' and 'query' in retrieve lack descriptions; 'query' and 'num_results' in web_search lack actionable guidance on format/constraints.
Output schema not formally documented. Both tools return dicts with 'chunks'/'results', 'evidence', and optional fields, but no JSON Schema or structured type definition is visible in tool registration.
No error handling guidance. Tools do not document what happens on failure (e.g., invalid kb_id, network timeout, no results). LLM has no recovery path.
No parameter constraints. 'num_results' defaults to 5 but lacks min/max bounds; 'kb_id' is integer but no range specified; 'query' is unbounded string.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | D | 51 | 2026-07-28+ | v2 |
Tool descriptions do not indicate idempotency or side effects. 'retrieve' is read-only (good), but 'web_search' does not state whether repeated calls with same query return identical results or may vary.