A FastAPI-based server providing document ingestion, retrieval-augmented generation (RAG), and chat summarization capabilities using Google Vertex AI and FAISS vector search
This server has severe definition quality issues. Tool names lack clear action verbs (e.g., 'mcp_server', 'mcp_upload' are generic; 'summarize_chat' is acceptable). Most critically, 5 of 7 tools have incomplete or missing input schemas in the visible code. Parameter descriptions are present but minimal (10-50 chars, below the 72-char baseline). Output schemas are not documented. Error handling is absent, no recovery guidance, no error categorization. The server appears to be a FastAPI wrapper around RAG operations but lacks the structured, LLM-optimized definitions required for reliable agent integration.
Ingests a PDF document by extracting text, creating embeddings, and storing in FAISS vector database
MCP endpoint that handles document queries and chat summarization requests with structured context
MCP endpoint for uploading documents with metadata and source tracking
Queries documents and generates an answer using Google Vertex AI based on retrieved context
Queries the FAISS vector database to retrieve documents similar to a given question
Summarizes a chat log using Google Vertex AI's Gemini model
Uploads a document file and ingests it into the vector database
Generic tool names lack action verbs. 'mcp_server' and 'mcp_upload' do not convey what the tool does; LLMs cannot infer intent from the name alone. Should be 'query_documents_with_context' and 'ingest_document_with_metadata'.
Output schemas are not documented. Tools return JSON responses (e.g., 'answer', 'sources', 'metadata') but LLMs have no formal schema to parse results or plan downstream calls. Document return types for all tools.
Parameter descriptions are minimal (10-50 chars, well below 72-char baseline). E.g., 'upload_doc' file param: 'The file to upload (UploadFile)' lacks context on file types, size limits, or expected format. Descriptions must explain WHAT, WHEN, and WHY.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | F | 37 | 2026-07-28+ | v2 |
No error handling or recovery guidance. Tools return generic JSON or HTTP errors with no actionable next steps. E.g., 'No documents found' is present in query_doc but other tools lack error messages. Implement error categorization (retryable, user-fixable, fatal) and recovery hints.
Tool 'query_doc' has no visible input schema in source code. Parameter 'question' is inferred from request.json parsing, not formally declared.