Create our own MCP Server to interact with Mongodb Database
Single tool 'get_docs' has a reasonable name and description (145 chars), but critical gaps undermine quality. Input schema is present with two string parameters, both described. However, output schema is completely undocumented, the tool returns 'text from the documentation' but no structured schema is defined. The tool lacks error handling guidance (what if SERPER_API_KEY is missing? what if all fetches timeout?). No parameter constraints (library enum, query length limits). The description includes example values ('Chroma DB', 'langchain') which LLMs may reuse literally. No pagination support despite potentially returning large documentation text. Tool is read-only (good), but lacks idempotent/readonly annotations. Overall: functional but below production baseline.
Search the docs for a given query and library. Supports langchain, openai, llama-index. Args: query: The query to search for (e.g. "Chroma DB") library: The library to search in (e.g. "langchain") Return: text from the documentation.
Output schema completely undocumented. Tool returns 'text from the documentation' but no structured schema is defined. LLMs cannot plan downstream operations or extract specific fields.
No error handling guidance. Tool calls external APIs (SERPER, web fetch) with 30s timeouts but provides no recovery instructions. What should LLM do if SERPER_API_KEY is missing or all fetches timeout?
Library parameter lacks enum constraint. Accepts 'langchain', 'openai', 'llama-index' but no formal enum in schema, LLM may hallucinate invalid library names.
Example values in description ('Chroma DB', 'langchain'). LLMs tend to reuse examples literally rather than adapting to context, causing failed searches.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | F | 46 | 2026-07-28+ | v2 |
No pagination or result limiting. Tool concatenates all fetched documentation into a single text response, risking context window exhaustion and token waste.