Embedded SQLite engine for Chinese long-form novel memory management. Exposes 20 novel-specific MCP tools for episodic, semantic, procedural, emotional, and reflective memory sectors.
NovelMemory has 20 well-structured tools with complete JSON schemas and detailed descriptions in Chinese. Naming follows verb_noun convention (novel_query, novel_store_summary, etc.). All tools have descriptions (avg ~150 chars) and input schemas with typed properties. However, output schemas are not documented, LLMs cannot predict response structure for downstream chaining. Parameter descriptions are present but sometimes dense (e.g., novel_foreshadowing_density mixes multiple concerns). Error handling and recovery guidance are absent. No tool annotations (readOnlyHint/destructiveHint) despite clear risk stratification (READ_ONLY, WRITE, DESTRUCTIVE). Missing idempotency guidance for write tools. Schemas lack explicit validation constraints (e.g., chapter ranges, enum enforcement in code).
获取章节摘要 —— 查询单个章节或一段范围内的章节摘要信息
获取角色状态 —— 查询指定角色在某一章节时的完整状态(性格、能力、外貌、持有物等)
查询伏笔计划兑现度(ADR-0004 S4 / ADR-0010)—— 按章节/单元/卷三种 scope 返回 actual vs expected 对比。expected=计划伏笔数(status=planned)、actual=已兑现数(status=realized),均来自 foreshadowing_actions_log。未计划任何伏笔时 expected=0、不告警。warning 含 density_below_target / density_above_target 二级警告,用于审校端判断已规划的伏笔是否按计划兑现。unit.foreshadowing_density 降级为规划参考、不参与计算。
查询伏笔状态 —— 获取当前所有伏笔(已埋设/已回收)的列表及其详情
查询事件单元(ADR-0004 S2 + B+F S1 拆字段)—— 按 unit_id 取单元元信息,或给章号反查所在单元。返回 unit 含 unit_number / title / chapter_start / chapter_end / core_question / irreversible_change 等核心字段(chapter_start/end 为 integer,替代旧 chapter_range 字符串)
失效事实 —— 将一条或多条事实标记为失效(is_valid=0),不删除原记录
Output schemas not documented. LLMs cannot predict response structure for chaining tools (e.g., what fields does novel_query return? Is it paginated?). Forces agents to guess or fail mid-chain.
No tool annotations (readOnlyHint, destructiveHint, idempotentHint) despite clear risk stratification in metadata (READ_ONLY, WRITE, DESTRUCTIVE). Agents cannot determine which tools are safe to retry or have side effects.
No error handling or recovery guidance. Tools lack descriptions of failure modes, retryability, or what the agent should do if a call fails (e.g., 'chapter not found, try novel_chapter_summary to list available chapters').
Inferred effective spec: <=2025-11-25.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | C | 62 | <=2025-11-25 | v2 |
记录伏笔动作 —— 在伏笔动作日志中记录某章对伏笔的触及(埋设、强化、回收等),用于密度计算和进度追踪
通用记忆查询 —— 根据自然语言描述从小说记忆库中检索相关信息,支持按记忆分区过滤
查询真人写作范例 —— 按写作手法 × 情感氛围组合从 novel-style-reference 语料库中检索真人小说写作范例,用于在写作时参考真人作家的技法决策和行文节奏
注册伏笔 —— 在全书伏笔注册表中登记一条伏笔,供后续章节引用和密度追踪
强化记忆 —— 提升指定记忆条目的 salience 权重,使其在后续查询中获得更高排序优先级
查询角色关系 —— 获取两个角色之间的关系描述及其随章节的演变
章节回滚 —— 删除指定章节及之后的所有记忆数据(包括摘要、事实、情感、伏笔动作日志等),用于重写场景
语义记忆检索 —— 使用自然语言查询从小说记忆库中语义检索相关信息,结合精确匹配和向量相似度,适合模糊概念查询
存储章节首尾片段与开/结手法 + 锚点 —— 在 novel_store_summary 已入库后追加 ChapterBrief 信息(首尾片段 + 开篇/结尾手法 + 创作锚点 3 字段),供后续章节预检按需聚合返回
存储角色情感 —— 记录某角色在指定章节的情感状态
存储事实三元组 —— 以主语-谓语-宾语的形式记录一条小说世界观事实,并标注生效章节范围
存储世界观/写作规则 —— 将一条世界观设定或写作规则写入对应的记忆分区
存储章节摘要 —— 将一个章节的摘要、涉及角色和关键事件写入记忆库
获取写作上下文 —— 为即将撰写的章节聚合所有必要的前情提要、角色状态、待回收伏笔等信息;返回字段含 previous_chapter_briefs(前 3 章首尾片段+开/结手法)与 previous_chapter_anchors(前 3 章锚点声明,老章节缺字段时回落 null)
Parameter constraints not enforced in schema. novel_foreshadowing_density accepts chapter/unit_id/volume but description says 'three select one', no oneOf constraint. novel_store_chapter_brief has optional anchor_* fields but no guidance on when they are required.
Descriptions in Chinese may limit LLM comprehension in English-first agents. While culturally appropriate for the domain, descriptions should be in English for maximum compatibility with multilingual LLMs.