MCP Server for Maximal Marginal Relevance (MMR) Diversity-Aware Vector Reranking. Implements Carbonell & Goldstein MMR algorithm to balance relevant context retrieval while eliminating repetitive passages.
Single tool 'rerank_mmr' has a well-written description (168 chars, within 10-1024 range) explaining the MMR algorithm and its purpose. However, the tool definition is inferred from client.py rather than explicitly registered in mcp_server.py. The mcp_server.py stub returns a hardcoded 'mmr_reranker_ready' status and never actually invokes the rerank_mmr method. Input schema is present with proper types (array, integer) and descriptions for all three parameters. No output schema is documented. The tool lacks error handling guidance, input validation, and recovery instructions. Per HARD SCORING RULE: inferred tool definitions cap at 50; combined with missing output schema, error handling, and non-functional server stub, the overall score reflects a non-production implementation.
Reranks candidates using Maximal Marginal Relevance (MMR) algorithm. Score(d) = lambda * Sim(d, query) - (1 - lambda) * max_{s in selected} Sim(d, s). Balances relevant context retrieval while eliminating repetitive passages.
Tool definition inferred from client.py, not explicitly registered in MCP server. mcp_server.py stub returns hardcoded status and never calls rerank_mmr().
No output schema documented. LLMs cannot plan downstream operations or extract returned fields (id, mmr_score). Violates pattern:tool requirement.
No error handling or recovery guidance. Missing validation for vector dimensions, empty candidates, invalid top_k. No actionable error messages for LLM self-correction.
Parameter 'candidates' expects array of objects with 'id' and 'vector' fields, but no schema constraint enforces this structure. LLMs may pass malformed candidates.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | F | 45 | 2026-07-28+ | v2 |
No bounds on numeric parameters. 'top_k' default is 3 but no min/max specified. 'query_vec' and candidate vectors have no dimension constraints, risking dimension mismatch errors.