Skip to main content
Glama

novel_lexicon

Register must-use terms, proper nouns, and author-preferred wording per book or globally so AI drafts with your vocabulary instead of generic substitutes. Audit finished chapters to verify coverage.

Instructions

必用词表:登记「某场景必须使用的专有名词 / 作者习惯用词」,让 AI 优先用表内词写作,而不是退回自己惯用的通用说法。两层存储(书级同名覆盖全局):全局层 _global 放跨书惯用词,书级层放本书专名。action:list=查看(默认合并两层)/ add=批量登记(terms 数组或 text 文本,一次可几百条)/ update=改单条(含改名 newTerm、单条停用)/ delete=删除(terms 指定,或 all=true 清空某层)/ import=文本批量导入(text=每行一条:词 或 词|类型|场景|替身1,替身2|备注,可用 replace=true 整层覆盖)/ scan=从本书正文提取候选词供挑选 / audit=成稿用词审计(必用词覆盖率 + 通用替身词命中的行号与原句,只读)/ export=导出词条 JSON / toggle=开/关某一层。字段:term 词条、kind 类型(专名/偏好词/称呼/场景词/口头禅/其他)、scene 适用场景(本章大纲方向行含该词时优先注入)、avoid 通用替身词(正文里出现它即等于没用必用词,审计据此定位)、aliases 等价写法(算命中)、note 用法说明、priority=high 高优先。**开关「必用词优先」(lexiconFirst)默认开启;开启且词表非空时,开写包会把它作为硬清单注入。**写完一章用 action=audit 复核。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
allNodelete 用:清空该层全部词条(须显式传 true)。
bookNo书名(scope=global 时可省略)。
kindNo类型(专名/偏好词/称呼/场景词/口头禅/其他,也可自定义)。
noteNo用法/搭配说明。
rootNo章节库根目录。
termNoupdate/delete 用:目标词条。
textNoimport/add 用:批量文本,每行一条(`#` 开头为注释)。
avoidNo通用替身词:正文出现即等于没用必用词(审计据此报行号)。
forceNo写操作(add/import/update/delete/toggle)用:目标层文件损坏时确认丢弃其内容并覆盖。默认 false——损坏层一律拒写以免静默清空原条目(也可在用 overwrite=true 时等价确认)。
limitNolist/scan 用:返回条数上限(默认 list 200 / scan 60)。
queryNolist 用:按词条/备注/场景子串过滤。
sceneNo适用场景标签;本章大纲方向行含该词时该条优先注入。
scopeNo作用层:book=本书(写操作默认)/ global=全局层 / all=两层合并(list 默认;update 时先书级后全局)。
termsNoadd/delete 用:词条数组(可一次几百条;add 时每项也可写成 `词|类型|场景|替身|备注`)。
actionYes要执行的操作。
offsetNolist 用:起始偏移(默认 0)。
aliasesNo等价写法(审计同样算命中)。
chapterNoaudit 用:章号 / 文件名 / 标题子串,或 all=全书;省略=审计最后一章。
enabledNotoggle 用:整层开关;update 用:单条启停。
newTermNoupdate 用:把词条改成新名字(原名不存在时不动)。
replaceNoimport 用:true=整层替换(默认 false=合并追加)。
priorityNohigh=高优先(注入与审计排序靠前)。
overwriteNoadd/import 用:同名词条是否覆盖(默认 true)。

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv6.3.0

TDQS

A3.9/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the full behavioral burden and largely delivers: it discloses the two-layer storage with override semantics, the lexiconFirst default-on injection as a hard list, and safety behavior around mutations (force=false refuses to write to a corrupted layer to avoid silently wiping existing entries; overwrite defaults to true). It marks audit as read-only ('只读'). It omits permission/auth context and return-shape detail for write actions, keeping it short of a 5.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The purpose and storage model are front-loaded, then actions are enumerated, then fields, then the lexiconFirst/injection note. For a 23-parameter, nine-action tool the length is defensible. It is a dense wall of text without formatting breaks, and the field enumeration partly duplicates the schema, so it is efficient but not maximally tight.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

There is no output schema and no annotations, so the description must do heavy lifting for a 23-param tool; it covers the storage model, per-action semantics, defaults (lexiconFirst on, overwrite true), failure handling (force), and audit output meaning (coverage plus line numbers and original sentences). It is close to complete, though return formats for list/export/scan are only lightly sketched, which is a minor gap given the absence of an output schema.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so all 23 parameters are already documented in the schema, and the description's '字段:…' listing (term, kind, scene, avoid, aliases, note, priority) largely restates that. It does add modest cross-parameter meaning by tying parameters to actions (update 含改名 newTerm、单条停用; delete terms 或 all=true 清空某层; import replace=true 整层覆盖). Per the rubric, 100% coverage sets a baseline of 3, and the added value is only marginal.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb+resource: a '必用词表' registry that stores scene-specific proper nouns and habitual words so the AI prefers them over generic phrasing. It clearly explains the two-layer storage (book-level overriding global _global) and enumerates all nine actions, so the tool's function is unambiguous. It stops short of explicitly distinguishing itself from the sibling novel_keywords, so it is clear but not fully differentiated.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Each action carries inline usage guidance (list=查看, add=批量登记, audit=成稿用词审计, scan=从本书正文提取候选词), and it gives an explicit workflow cue: '写完一章用 action=audit 复核.' It also states that lexiconFirst defaults to on and that the list is injected as a hard checklist when non-empty. It never names when NOT to use this tool or routes the agent to a specific sibling (e.g., novel_keywords), so it lacks exclusion guidance.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.