MCP server for local embedding generation and semantic search using ONNX models, with tool indexing and semantic routing capabilities
Server provides 4 embedding/search tools with basic descriptions and partial schemas. Tool names follow verb_noun convention (embed_text, search_embeddings, manage_index). Descriptions exist but are brief (40-80 chars, below the 194-char baseline). Input schemas are visible with type declarations, but parameter descriptions are minimal and lack constraints (enums, ranges, format specs). Error handling returns JSON with error fields but lacks recovery guidance. No output schema documentation. Missing tool annotations (readOnlyHint/destructiveHint). Cancellation tokens exposed as parameters (anti-pattern). Overall: functional but below production baseline.
Generate embeddings for text input using a local ONNX model.
Check embedding model availability, cache info, and download status.
Create, save, load, or clear an embedding index.
Semantic search over an indexed collection using embeddings.
Cancellation tokens exposed as tool parameters. CancellationToken is a C# runtime object, not a user-facing input. Should be handled server-side, not passed by LLM.
Parameter descriptions lack constraints. 'topK' has no range (1-100?). 'action' in manage_index accepts free-form string instead of enum (create|save|load|clear). 'modelName' has no format guidance.
No output schema documentation. Tools return JSON but LLM cannot predict field names/types. E.g., embed_text returns {text, dimensions, embedding} but this is not formally documented.
Inferred effective spec: <=2025-11-25.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | D | 50 | <=2025-11-25 | v2 |
Tool descriptions too brief (40-80 chars vs 194-char baseline). Missing WHEN to use, prerequisites, and state-modification warnings. E.g., manage_index description does not warn that 'clear' is destructive.
Error responses lack recovery guidance. 'Index not found' error does not suggest calling manage_index to create one (though code comment hints at this). LLM cannot infer next step.