Private on-prem RAG system for clinical documents with MCP server integration
Two tools with minimal documentation. query_rag has a 50-char description (acceptable baseline) but lacks parameter descriptions and output schema documentation. ingest_document has a 180-char description with example paths (violates best practice of avoiding example values in descriptions) but also lacks parameter descriptions and output schema. Neither tool declares input schema types explicitly in the code, schemas are inferred from function signatures. No error handling guidance, no permission declarations, no output structure documentation. Both tools perform I/O operations (HTTP calls to external API) but lack timeout/retry guidance or error recovery patterns.
Ingest a text file into the clinical RAG system. The file_path must be an absolute path on the local machine where the MCP server is running. Example: C:\Users\stela\Coding\projects\clinical-rag\data\samples\file.txt
Ask a question over indexed clinical documents.
No input parameter descriptions. 'question' and 'file_path' parameters lack descriptions explaining what values are expected, format constraints, or length limits. LLMs cannot infer parameter semantics from names alone.
No output schema documentation. Tools return strings but do not document the structure, fields, or format of responses. LLMs cannot plan downstream operations or extract structured data.
Example file paths in description (ingest_document). Descriptions include 'C:\Users\stela\Coding\projects\clinical-rag\data\samples\file.txt', LLMs tend to reuse example values literally rather than adapting to actual context. Use parameter constraints (regex pattern, length) instead.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | F | 43 | 2026-07-28+ | v2 |
No error handling or recovery guidance. Tools call external HTTP APIs (localhost:8000) with 60-second timeouts but provide no error messages, retry logic, or guidance for LLM recovery. A timeout or 500 error returns nothing actionable.
No permission declarations or security scoping. ingest_document modifies state (writes to vector database) but does not declare required permissions (e.g., 'write:documents'). No audit trail or access control visible.