MCP server exposing CAST agent_memories as tools. A long-running stdio MCP server using the mcp Python SDK. Exposes tools for memory search, write, validate, and list operations with FTS5 full-text search and optional cosine similarity re-ranking via Ollama embeddings.
Four tools with complete JSON schemas and basic descriptions, but significant gaps in parameter documentation and error guidance. All tools have descriptions (10-80 chars), but most are too brief to guide LLM selection. Parameter descriptions exist but lack constraints, ranges, and format guidance. No error handling patterns visible. Schema completeness varies: memory_search and memory_write have reasonable structure; memory_validate and memory_list lack depth. No tool annotations (readOnlyHint/destructiveHint). Naming is clear and verb-based (search, write, validate, list), following conventions. However, descriptions fail to explain WHEN to use each tool or what happens on failure.
List all memories for an agent, sorted by importance.
Search CAST agent memories using FTS5 and optional cosine similarity re-ranking.
Check memory staleness by age and decay rate.
Write or update a memory in the CAST agent memory system.
Parameter descriptions lack constraints and format guidance. 'agent' defaults to 'shared' but no explanation of what agents are or how to discover them. 'type' filter accepts 5 enum values (user, feedback, project, reference, procedural) but description does not list them. LLMs cannot infer valid values from names alone.
Tool descriptions are too brief (40-80 chars) to guide LLM selection. memory_validate says 'Check memory staleness by age and decay rate' but does not explain when to call it, what 'staleness' means, or what the output indicates. Descriptions should be 50-200 chars and answer: what does it do, when to use it, what does it return?
No error handling guidance. Code shows graceful degradation (Ollama unavailable → FTS5-only fallback, cast.db missing → error response), but tool descriptions do not document failure modes or recovery steps. LLMs cannot plan around failures without explicit error documentation.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | D | 55 | 2026-07-28+ | v2 |
Output schemas not documented. memory_search returns scored results with relevance ranking, but the response structure is not declared in the tool definition. LLMs cannot plan downstream calls without knowing what fields to expect (e.g., does it return memory_id, content, importance?).
No tool annotations. memory_write is destructive (modifies state) but lacks destructiveHint. memory_search and memory_validate are read-only but lack readOnlyHint. Annotations help LLMs reason about side effects and retry safety.