Skip to main content
Glama

Full manuscript draft (all chapters in one call, shared context) / 一键出全文(分章生成 + 章间上下文)

full_draft_writer

Full manuscript draft (all chapters in one call, shared context) / 一键出全文(分章生成 + 章间上下文) | USE WHEN: the user wants a complete first draft in ONE call instead of stitching outline + section_writer repeatedly; chapters are generated in sequence and each later chapter sees the earlier ones so terminology and numbers stay consistent | ALIASES: 一键出全文, 整篇初稿, 直接出初稿, 全文草稿, full draft, whole manuscript, write the entire paper | RETURNS: full_text(整篇,按投稿顺序装配:前置件→摘要→正文→声明)+ presentation_order + front_matter(中文标题/作者单位/基金/中图分类号/中英文关键词与英文摘要…

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": {
      "title": "<title>"
    },
    "name": "full_draft_writer"
  }
}

Input Schema

NameRequiredDescriptionDefault
dataNo自由数据,注入所有章节的 prompt
langNozh | en;不传按标题语言推断(中文标题→zh)
statsNo统计方法(对应面板「统计方法」,如「二元Logistic回归,7:3随机拆分内部验证」)
titleYes论文题目(与 topic 等价,二者给一个即可)
topicNo研究主题(与 title 等价)
designNo研究设计(RCT/队列/…)
paramsNo补充参数
controlNo对照措施
resultsNo真实统计结果原文(N、效应量、95%CI、P)。与 stats_payload 二选一;都不给时结果章只出占位骨架且不编造数字
data_csvNo原始数据 CSV/TSV 文本(首行列名,必须包含分组列)。给了它 + group_col,平台会**按这份原始数据逐格复算表1**,把稿中与数据不符的格(含超出显示位数舍入容差的差异)抓出来并列为阻断项。与 data_rows 二选一。
keywordsNo中文关键词(3–6 个,顿号/分号分隔)。对应面板「关键词」;不传则关键词段留〔待补〕,PMC 文献检索也失去检索词。
outcomesNo结局指标(主要+次要)
sectionsNo要写的章节,默认 [introduction, methods, results, discussion, abstract](摘要放最后,它要概括全文)
data_rowsNo结构化数据行([{列名: 值}])。与 data_csv 二选一;调用方已解析成 JSON 时用它。
group_colNo分组列名(data_csv / data_rows 里的列名,如 group)。不给则不做分组统计、表1 数值复算会如实 ran=false。
populationNo研究对象
sample_sizeNo样本量(对应面板「总样本量 N」;写成事实数字,如 1926。不传则方法/结果/摘要的数字只能来自 results 或留占位)
interventionNo干预措施(药物组成/剂量/疗程)。**引言与方法都围绕它展开**
main_outcomeNo主要结局定义(如「住院期间是否发生泌尿系脓毒症(二分类)」)。对应网页面板「主要结局定义」;不传则结果/摘要把结局写成泛称,审稿人无法判断主结局是什么。
stats_payloadNo结构化统计载荷,形状同 act_results_paragraph 的 params(table_one/univariable/multivariable/subgroup/roc),别名 p/or/hr/ci 均接受;服务端归一化后自动组织成结果章正文
research_factsNo研究数据契约 —— **就是网页面板「一键生成初稿」上填的那一栏**。外部 agent 看不到网页输入框,只能通过这个对象把面板字段交上来;不传时模型只拿到标题与设计,正文会出现占位符或自行编造的数字(这不是平台没数据,是这次调用没交数据)。形状与网页版完全一致,键全部可选但建议至少给 total_n / outcome_def / methods。
stats_softwareNo统计软件名称+版本(如「SPSS 26.0」)。传了原样写入方法学;不传则留〔待补〕标记并由 compliance 报高危项
ethics_approvalNo伦理委员会名称+批件号(如「我院伦理委员会(批件号:KY2021-001)」)。不传则留〔待补〕标记并报高危项

Output Schema

NameRequiredDescriptionDefault
costNo
resultYes业务字段,键见 description 的 RETURNS 段
successYes
data_sourceYeslocal_computation|external_corpus|llm_generated|user_data|pending
engine_statusYesok|queued|error|unavailable|not_run

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "cost": {
      +      "type": "integer"
      +    },
      +    "data_source": {
      +      "description": "local_computation|external_corpus|llm_generated|user_data|pending",
      +      "type": "string"
      +    },
      +    "engine_status": {
      +      "description": "ok|queued|error|unavailable|not_run",
      +      "type": "string"
      +    },
      +    "result": {
      +      "additionalProperties": true,
      +      "description": "业务字段,键见 description 的 RETURNS 段",
      +      "type": "object"
      +    },
      +    "success": {
      +      "type": "boolean"
      +    }
      +  },
      +  "required": [
      +    "success",
      +    "engine_status",
      +    "data_source",
      +    "result"
      +  ],
      +  "type": "object"
      +}
  2. Changed8 schema fields changed
    • addedInput schema / properties / data_csv
      Added value: +{
      +  "description": "原始数据 CSV/TSV 文本(首行列名,必须包含分组列)。给了它 + group_col,平台会**按这份原始数据逐格复算表1**,把稿中与数据不符的格(含超出显示位数舍入容差的差异)抓出来并列为阻断项。与 data_rows 二选一。",
      +  "type": "string"
      +}
    • addedInput schema / properties / data_rows
      Added value: +{
      +  "description": "结构化数据行([{列名: 值}])。与 data_csv 二选一;调用方已解析成 JSON 时用它。",
      +  "items": {
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • addedInput schema / properties / group_col
      Added value: +{
      +  "description": "分组列名(data_csv / data_rows 里的列名,如 group)。不给则不做分组统计、表1 数值复算会如实 ran=false。",
      +  "type": "string"
      +}
    • addedInput schema / properties / keywords
      Added value: +{
      +  "description": "中文关键词(3–6 个,顿号/分号分隔)。对应面板「关键词」;不传则关键词段留〔待补〕,PMC 文献检索也失去检索词。",
      +  "type": "string"
      +}
    • addedInput schema / properties / main_outcome
      Added value: +{
      +  "description": "主要结局定义(如「住院期间是否发生泌尿系脓毒症(二分类)」)。对应网页面板「主要结局定义」;不传则结果/摘要把结局写成泛称,审稿人无法判断主结局是什么。",
      +  "type": "string"
      +}
    • addedInput schema / properties / research_facts
      Added value: +{
      +  "description": "研究数据契约 —— **就是网页面板「一键生成初稿」上填的那一栏**。外部 agent 看不到网页输入框,只能通过这个对象把面板字段交上来;不传时模型只拿到标题与设计,正文会出现占位符或自行编造的数字(这不是平台没数据,是这次调用没交数据)。形状与网页版完全一致,键全部可选但建议至少给 total_n / outcome_def / methods。",
      +  "properties": {
      +    "auc_train": {
      +      "description": "训练集模型效能(如「0.794(95%CI 0.752-0.836)」)。",
      +      "type": "string"
      +    },
      +    "auc_valid": {
      +      "description": "验证集模型效能(如「0.782(95%CI 0.738-0.826)」)。",
      +      "type": "string"
      +    },
      +    "design": {
      +      "description": "研究设计(如「单中心回顾性队列」「基础研究(ARRIVE)」)。决定方法学措辞。",
      +      "type": "string"
      +    },
      +    "ethics": {
      +      "description": "伦理委员会名称 + 批件号(如「我院伦理委员会(批件号:2025KY118)」)。不传则声明区留〔待补〕并报高危项。",
      +      "type": "string"
      +    },
      +    "event_n": {
      +      "description": "结局事件数(如 218)。用于事件率与终点分析。",
      +      "type": "string"
      +    },
      +    "factors": {
      +      "description": "独立影响因素(真实多因素回归结果)。对应面板「独立影响因素」。写入后结果章只能使用这些效应量,不得另行编造。",
      +      "items": {
      +        "properties": {
      +          "ci": {
      +            "desc": "95%CI(如 1.12-3.05)",
      +            "required": false,
      +            "type": "string"
      +          },
      +          "effect": {
      +            "desc": "效应量数值(如 1.85)",
      +            "required": false,
      +            "type": "string"
      +          },
      +          "measure": {
      +            "desc": "效应量类型:OR / HR / RR / β",
      +            "required": false,
      +            "type": "string"
      +          },
      +          "name": {
      +            "desc": "变量名(如「SOFA 评分」)",
      +            "required": true,
      +            "type": "string"
      +          },
      +          "p": {
      +            "desc": "P 值(如 0.003 或 <0.001)",
      +            "required": false,
      +            "type": "string"
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "forbidden": {
      +      "description": "本研究**没做、正文禁止出现**的统计方法(如「Cox回归、RCS、竞争风险」)。留空则按研究设计智能判断。",
      +      "type": "string"
      +    },
      +    "methods": {
      +      "description": "统计方法(如「二元Logistic回归,7:3随机拆分内部验证」)。",
      +      "type": "string"
      +    },
      +    "outcome_def": {
      +      "description": "主要结局定义(如「住院期间是否发生泌尿系脓毒症(二分类)」)。",
      +      "type": "string"
      +    },
      +    "total_n": {
      +      "description": "总样本量 N(如 1926)。作为全文数字铁律:各章只允许用这个 N。",
      +      "type": "string"
      +    }
      +  },
      +  "type": "object"
      +}
    • changedInput schema / properties / sample_size / description
      Previous value: -"样本量"New value: +"样本量(对应面板「总样本量 N」;写成事实数字,如 1926。不传则方法/结果/摘要的数字只能来自 results 或留占位)"
    • changedInput schema / properties / stats / description
      Previous value: -"统计方法"New value: +"统计方法(对应面板「统计方法」,如「二元Logistic回归,7:3随机拆分内部验证」)"
  3. Changed2 schema fields changed
    • addedInput schema / properties / ethics_approval
      Added value: +{
      +  "description": "伦理委员会名称+批件号(如「我院伦理委员会(批件号:KY2021-001)」)。不传则留〔待补〕标记并报高危项",
      +  "type": "string"
      +}
    • addedInput schema / properties / stats_software
      Added value: +{
      +  "description": "统计软件名称+版本(如「SPSS 26.0」)。传了原样写入方法学;不传则留〔待补〕标记并由 compliance 报高危项",
      +  "type": "string"
      +}
  4. Added

TDQS

A4.4/5.0
Behavior4/5

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

Annotations only supply generic hints (readOnlyHint=false, idempotentHint=false, openWorldHint=true), so the description must carry the real behavioral load — and it does disclose the key trait that chapters are generated sequentially with each later chapter seeing earlier ones for terminology/number consistency. It also describes the assembly order of the returned full_text. It does not mention runtime cost or that omitted inputs yield placeholder sections, though the schema parameters cover the latter extensively.

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?

Pipe-delimited and front-loaded: purpose, then USE WHEN, then ALIASES, then RETURNS — an agent can parse it in one pass. Minor waste from repeating the bilingual title verbatim at the start and from a truncated RETURNS fragment, but nothing that impedes selection.

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?

For a 23-parameter, nested-object, one-shot manuscript generator, the description covers the decisive facts an agent needs: one call vs. many, sequential context sharing, and the shape/order of the returned full text. An output schema exists, so the description is not obliged to enumerate return fields, and the parameters document their own contracts in depth.

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% across 23 parameters, with unusually rich per-parameter text (e.g. results vs. stats_payload precedence, data_csv + group_col triggering cell-level recomputation, sample_size as a numeric 'iron law'). The top-level description adds essentially nothing about parameters beyond the general shared-context framing, so the schema does the work and baseline 3 applies.

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?

States a specific verb+resource ('Full manuscript draft, all chapters in one call, shared context') and immediately makes the scope concrete against a named sibling ('instead of stitching outline + section_writer repeatedly'). The bilingual title plus the RETURNS clause make it unambiguous what artifact comes back (full_text assembled in submission order).

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?

The USE WHEN clause gives an explicit selection condition ('the user wants a complete first draft in ONE call') and names the alternative workflow (outline + section_writer repeatedly) that this tool replaces. The alias list further routes fuzzy user phrasings ('整篇初稿', 'whole manuscript') to this tool rather than to section_writer.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources