Integration layer bridging OpenClaw agents with MemPalace memory system and Claw-Code enhanced execution framework. Provides permission-aware tool execution, cost tracking, and knowledge graph management.
Server has 19 tools with basic descriptions and parameter schemas, but significant gaps limit production readiness. All tools have descriptions (10-100 chars, mostly 50-80), and most parameters are typed. However, output schemas are entirely undocumented, LLMs cannot predict response structure. Error handling is absent; no guidance on retryability, user-fixable vs fatal errors, or recovery paths. Parameter descriptions lack constraints (enums, ranges, formats). No tool annotations (readOnlyHint, destructiveHint, idempotentHint) despite clear risk levels. Naming is consistent (verb_noun pattern) but generic, 'mempalace_kg_query' vs 'mempalace_kg_search' distinction unclear. No pagination guidance for list tools. Composition is reasonable (single responsibility per tool), but chaining IDs are not documented in responses.
File verbatim content into a wing/room drawer.
Check if content already exists in the palace before filing.
Remove a drawer by ID.
Read your recent diary entries (in AAAK).
Write to your personal agent diary in AAAK format.
Find tunnels (paths) between two wings in the palace graph.
Get the AAAK compression dialect specification.
No output schemas documented. LLMs cannot predict response structure (fields, types, nesting). All 19 tools return JSON strings via json.dumps(), but response format is opaque.
No tool annotations (readOnlyHint, destructiveHint, idempotentHint). Risk levels are declared in metadata but not exposed to LLM. Destructive tools (delete_drawer, kg_invalidate) lack confirmation/dry-run patterns.
Parameter descriptions lack constraints. 'direction' in kg_query accepts 'both|outgoing|incoming' but no enum declared. 'limit' in search has no min/max bounds. LLMs may pass invalid values.
Inferred effective spec: <=2025-11-25.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | F | 49 | <=2025-11-25 | v2 |
Get the full wing -> room -> count taxonomy tree.
Get palace graph statistics.
Add a triple to the knowledge graph.
Invalidate (mark as outdated) a triple in the knowledge graph.
Query the knowledge graph for facts about an entity.
Get knowledge graph statistics.
Get the timeline of statements for an entity in the knowledge graph.
List rooms within a specific wing.
List all wings with their drawer counts.
Semantic search across all drawers, optional wing/room filter.
Get total drawers, wing/room breakdown, and palace health.
Traverse the palace graph from a starting node.
No error handling guidance. Tools return json.dumps() of handler results with no documented error cases, retryability, or recovery paths. LLMs cannot distinguish transient vs fatal failures.
List tools (list_wings, list_rooms, search) lack pagination guidance. No documented limit caps, no next_cursor or offset/page parameters, no total count in response. Large result sets risk context window exhaustion.