MCP Server for semantic prompt caching with character n-gram Jaccard similarity deduplication
Two tools with minimal descriptions (both under 100 chars) and sparse parameter documentation. Schemas present but lack parameter descriptions, critical for LLM understanding. No error handling guidance, no output schema documentation, no security considerations. Tool names are verb-based but descriptions do not explain WHEN to use each tool or what distinguishes them. Parameter 'model' is optional but its purpose and valid values are undocumented. No mention of TTL, similarity threshold, or cache behavior in tool descriptions.
Check semantic cache for similar cached prompt response.
Store prompt and response in semantic cache.
Parameter descriptions missing. 'model' parameter in both tools lacks description of its purpose, valid values, and whether it filters or tags cache entries. LLMs cannot infer intent from name alone.
Tool descriptions too brief (both ~60 chars). Do not explain WHEN to use lookup_cache vs store_cache, what similarity threshold means, or how TTL affects results. Descriptions must answer: what does it do, when should the LLM call it, what does it return?
No output schema documented. lookup_cache returns JSON with 'cache_hit', 'similarity', 'matched_prompt', 'response', 'cached_model' fields, but this structure is not declared in the tool definition. LLMs cannot plan downstream calls without knowing response shape.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | F | 45 | 2026-07-28+ | v2 |
No error handling guidance. If lookup_cache finds no match, it returns None (converted to null JSON). If store_cache succeeds, it returns 'OK'. No guidance on what errors are possible, whether they are retryable, or what the LLM should do next.
Semantic similarity threshold (0.82 default) and TTL (3600s default) are hardcoded in client.py but not exposed as tool parameters or documented in tool descriptions. LLMs cannot control cache behavior or understand why a 'similar' prompt was or was not matched.