Skip to main content
Glama

novel_fix_plan

Turns style diagnosis into a prioritized revision checklist with line references, current and target values, source anchors, and rewrite directions; also verifies, marks, and audits contract violations.

Instructions

改稿台:把风格诊断变成按优先级排好的待办清单——每条含原句位置(行号区间 + 原文)、当前值与目标值、可参照的原著锚段、以及改写方向。action=plan 生成清单 / verify 对当前正文复测(看哪些已回到带内)/ mark 标记单项(需 itemId + state)/ audit 严格对账(只报能举证的违约:必用词、禁用词、套话、原地打转、大纲兑现、章末收束、裸台词、伏笔账)/ audit_brief 生成给**独立 AI(无写作上下文)**的审计任务书 / audit_verify 复核它交回的 claims(编造的行号与原文会被判废)。只给方向不给句子:本插件不生成正文。

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": {
      "book": "<book>",
      "chapter": "<chapter>"
    },
    "name": "novel_fix_plan"
  }
}

Input Schema

NameRequiredDescriptionDefault
bookYes书名。
rootNo章节库根目录。
stateNomark 时必填:done=已处理 / skip=跳过。
actionNoplan=生成待办清单(默认);verify=对当前正文复测;mark=标记单项;audit=严格对账(只跑可机器判定的契约,每条带行号与原文);audit_brief=生成独立审计任务书;audit_verify=复核审计者交回的 claims。
claimsNoaudit_verify 时必填:审计者交回的声明数组,每条 { contract, line, text, why }。text 必须是该行原文的连续子串——插件会逐条复核,编造的会被判 rejected。
itemIdNomark 时必填:要标记的待办 id(取自 plan 返回的 items[].id)。
chapterYes要改的章节(章号 / 文件名 / 标题子串)。

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv7.2.0
    • changedInput schema / properties / action / description
      Previous value: -"plan=生成待办清单(默认);verify=对当前正文复测;mark=标记单项(需同时传 itemId 与 state)。"New value: +"plan=生成待办清单(默认);verify=对当前正文复测;mark=标记单项;audit=严格对账(只跑可机器判定的契约,每条带行号与原文);audit_brief=生成独立审计任务书;audit_verify=复核审计者交回的 claims。"
    • changedInput schema / properties / action / enum
      Previous value: -[
      -  "plan",
      -  "verify",
      -  "mark"
      -]New value: +[
      +  "plan",
      +  "verify",
      +  "mark",
      +  "audit",
      +  "audit_brief",
      +  "audit_verify"
      +]
    • addedInput schema / properties / claims
      Added value: +{
      +  "description": "audit_verify 时必填:审计者交回的声明数组,每条 { contract, line, text, why }。text 必须是该行原文的连续子串——插件会逐条复核,编造的会被判 rejected。",
      +  "items": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "contract": {
      +        "description": "契约 id(audit 返回的 contracts[].id 之一,如 lexicon / banned / slop / loop / outline / ending / bare_dialogue / plot)。",
      +        "type": "string"
      +      },
      +      "line": {
      +        "description": "1-based 行号。",
      +        "type": "number"
      +      },
      +      "text": {
      +        "description": "该行的原文连续子串(不得改字、不得跨行拼接)。",
      +        "type": "string"
      +      },
      +      "why": {
      +        "description": "为什么算违约(≤40 字)。",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "contract",
      +      "line",
      +      "text"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
  2. Addedv5.0.0

TDQS

B3.3/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose two meaningful traits: it never produces prose (only direction), and audit reports only violations that can be evidenced, with fabricated line numbers/text rejected during audit_verify. What it omits is what the mark action actually mutates or persists, whether the plan is saved between calls, and whether any state file is written — significant gaps for a tool whose mark mode changes state.

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

Conciseness3/5

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

It is front-loaded with the core purpose and packed into a small footprint, so nothing is buried. But a large fraction of the text is a slash-delimited replay of the six action modes that reproduces the enum descriptions in the schema almost verbatim, and the run-on punctuation makes the mode list harder to scan than a structured list would be.

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

Completeness3/5

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

For a 7-parameter, six-mode tool with no output schema, the description usefully sketches the return shape for plan items. It does not describe what verify, mark, audit, audit_brief, or audit_verify return, nor the preconditions for those modes, leaving the agent to guess at a substantial part of the contract.

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 the schema already defines every parameter, including the enums and the claims object shape, which establishes a baseline of 3. The description mostly restates the action enum and the itemId/state requirement rather than adding format, constraints, or edge-case meaning beyond the schema.

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 opening clause states a specific verb and resource: it converts a style diagnosis into a prioritized todo list, and it spells out the item shape (line range + original text, current vs target value, anchor paragraph, rewrite direction). It is clearly differentiable from generation-style siblings via the closing guarantee that it only gives direction, never sentences. It stops short of naming the diagnostic siblings (novel_diagnose / novel_style_check) it depends on, so the boundary is implied rather than stated.

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

Usage Guidelines3/5

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

It enumerates all six action modes with their purposes, which does give real intra-tool routing guidance (plan → verify → mark as a workflow, audit_brief → audit_verify as a two-party loop). However, that mode rundown largely duplicates the action enum descriptions already present in the schema, and there is no guidance on when to use this tool instead of the sibling style/diagnosis tools, nor any stated prerequisite that a diagnosis must exist first.

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