MCP-1C: Define MCP tool schemas, routing, and bounded response contracts
Summary
Lock the tool contracts before transport work starts so the MCP layer has stable, typed request/response models and bounded outputs for host clients with tool and token limits.
Scope
- typed request/response models for the MCP tool surface
- shared success/error envelope
- serializers for memory records, contradiction candidates, procedural matches, and forgetting reports
get_memory(memory_type, record_id) routing
- explicit store-first-then-contradiction-check ordering for
remember_fact
- truncation controls for large forgetting reports
Acceptance Criteria
- all tools return machine-readable structured output
- errors are stable and typed
- forgetting preview/run responses cap
decisions and report truncation
recall_procedures is explicitly backed by ProceduralStore.get_best_procedure_matches()
recall_episodes covers recent, session, and time_range without extra recall tools
Dependencies
MCP-1C: Define MCP tool schemas, routing, and bounded response contracts
Summary
Lock the tool contracts before transport work starts so the MCP layer has stable, typed request/response models and bounded outputs for host clients with tool and token limits.
Scope
get_memory(memory_type, record_id)routingremember_factAcceptance Criteria
decisionsand report truncationrecall_proceduresis explicitly backed byProceduralStore.get_best_procedure_matches()recall_episodescoversrecent,session, andtime_rangewithout extra recall toolsDependencies