MCP server providing AKC cognitive tools — distillation, constitution, self-improvement
AKC MCP has 8 tools with mixed quality. Naming is verb-forward (record_, distill, extract_, amend_, skill_, rules_) but some are vague (distill_identity, extract_insight lack object clarity). Descriptions exist but are verbose (200-300 chars) and include implementation details ('Requires X-Anthropic-Key header') rather than user intent. Input schemas are present for most tools but sparse: record_episode has 2 params with types/descriptions; distill has 2 params; distill_identity, extract_insight, distill_rules, amend_constitution, skill_stocktake, rules_stocktake have ZERO input parameters defined (empty {}). Output schemas are entirely undocumented, no tool declares what it returns. Error handling is minimal: _require_api_key() returns a generic message, but no guidance on recovery or retry logic. No tool declares idempotency, destructiveness, or read-only hints. Security: API key is passed via X-Anthropic-Key header (good server-side injection pattern) but descriptions expose this implementation detail to users.
Generate a constitutional amendment from experience. Uses accumulated constitutional patterns to propose amendments to the ethical principles. Does NOT write to disk. Requires X-Anthropic-Key header.
Distill recent episodes into learned patterns. Analyzes episode logs from the past N days and extracts recurring behavioral patterns. By default runs in dry-run mode (no files written). Set write=True to persist extracted patterns to knowledge.json. Requires X-Anthropic-Key header (uses your API key for LLM calls).
Generate an updated identity from accumulated knowledge patterns. Returns the proposed identity text. Does NOT write to disk — the caller decides whether to approve and persist. Requires X-Anthropic-Key header.
Distill universal behavioral rules from skills. Two-stage pipeline: free-form analysis -> structured rules. Returns generated rules as text. Does NOT write to disk. Requires X-Anthropic-Key header.
Extract behavioral skills from learned patterns. Synthesizes knowledge patterns into reusable skill documents. Returns generated skills as text. Does NOT write to disk. Requires X-Anthropic-Key header.
Six of eight tools (distill_identity, extract_insight, distill_rules, amend_constitution, skill_stocktake, rules_stocktake) have zero input parameters defined.
No tool declares output schema. LLMs cannot plan downstream calls or extract structured data. LLMs need to know what fields to expect.' All tools return unstructured strings.
Descriptions expose implementation details ('Requires X-Anthropic-Key header') instead of user intent. Descriptions are 200-300 chars (above 194-char baseline) and verbose. State WHAT the tool does, WHEN to use it, and any prerequisites.'
Inferred effective spec: <=2025-11-25.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | F | 43 | <=2025-11-25 | v2 |
Record an episode to the daily log. Use this after each significant action (post, comment, interaction). record_type: "post", "comment", "interaction", "insight", etc. data: key-value pairs describing the episode. Requires X-Anthropic-Key header in HTTP mode.
Audit rules for duplicates and quality issues. Scans all rule files and uses LLM to detect semantic redundancy. Also checks structural quality. Requires X-Anthropic-Key header.
Audit skills for duplicates and quality issues. Scans all skill files and uses LLM to detect semantic redundancy. Also checks structural quality. Requires X-Anthropic-Key header.
No tool declares destructiveness, idempotency, or read-only hints.
Error handling is minimal. _require_api_key() returns a generic message with no recovery guidance.