Skip to main content
Glama

novel_draft

Append each current writing segment to a human-readable draft mirror while the program tracks word count and returns nextAction to continue or ask the user when prompted.

Instructions

实时聊天写作的草稿镜像(只追加;AI 不读、不改、不管理):把当前正在写的这一段正文交给它,程序会追加到独立目录 <书库>/.novel-writer/drafts/<书>/ 并自行累计字数。返回 nextAction="continue" 就继续写下一段;返回 "ask_user" 就把 question 原样用提问工具问用户(combinedText 一起贴上),他回答前不要继续写。镜像只交给人看——不要读它、不要改它、不要自己判断何时提问,那由程序按字数阈值决定。

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "action": "<action>",
      "book": "<book>",
      "text": "<text>"
    },
    "name": "novel_draft"
  }
}

Input Schema

NameRequiredDescriptionDefault
bookYes书名(与 novels/ 下的目录名一致)。
rootNo章节库根目录。
textYes这一段正文(只传这一段,不要整章)。重复段落也照写,程序不去重。
actionYes只有一个动作:commit(提交这一段正文)。镜像只追加,不提供读 / 改 / 清。
chapterNo章标识(章号 / 第NN章 / 标题),只用来命名镜像文件;省略则「未命名章」。

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv7.3.0

TDQS

A4.4/5.0
Behavior4/5

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

Because no annotations are supplied, the description carries the entire burden of disclosure, and it does that well: it covers append-only semantics, program-side word counting, the fact that the mirror is visible only to humans, and the nextAction protocol. It omits only smaller details such as what the write returns besides nextAction, or what happens on failure. The rich contract makes a 4 appropriate.

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 write/no-read constraint is front-loaded in the first clause, and the nextAction handling follows immediately. The redundancy is mild but defensible: the warning not to read or modify the mirror appears twice, reflecting how critical that guardrail is, though the second statement restates rather than extends the first.

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

Completeness5/5

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

No output schema and no annotations exist, so the description must explain the return contract on its own, and it does: nextAction values continue and ask_user, the question and combinedText fields, and how to relay them to the user. Combined with the append-only semantics, nothing an agent needs to call the tool correctly or interpret its result is missing.

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 coverage is 100%, and the schema already documents the meaning of book (matching the directory name), text (only this paragraph, no deduplication), chapter (naming the mirror file), and the single action enum value commit, which makes the baseline 3. The description echoes the paragraph-scoping rule but adds no new syntax, format, or constraint beyond what the schema states.

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

Purpose5/5

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

The description states a specific verb and resource — a mirror tool that appends the current paragraph to a per-book draft file — and explicitly marks itself as append-only, from which it follows that the AI neither reads nor modifies it. This clearly distinguishes it from the sibling tools novel_read, novel_chapters, and novel_delete_book, so an agent can tell what it does without opening any schema.

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

Usage Guidelines5/5

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

It gives explicit when-to-use rules: hand over only the paragraph being written now, then act on the returned nextAction. It also supplies negative guidance — do not read, modify, or clear the mirror, and do not decide on your own when to ask the user. The requirement to pass the question and combinedText verbatim to the user-question tool, and to stop writing until the user answers, is spelled out fully.

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