Skip to main content
Glama

Write one proposal chapter / 写标书单章(按章节注入补充材料)

proposal_write_section

Write one proposal chapter / 写标书单章(按章节注入补充材料) | USE WHEN: the user asks for a single chapter (立项依据 / 研究方法 / 创新点 / 经费预算) or wants one rewritten; read the materials first and pass freshly dictated materials as a draft — the draft overrides the stored value per key | ALIASES: 写某一章, 重写章节, 立项依据, 研究内容, 研究方法, 技术路线, 创新点, 经费预算, 研究基础, proposal section | RETURNS: 该章正文 content(同时已写入标书)+ used_materials(本章真实用上的材料键,空=没吃到材料)+ generation_time

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": {
      "proposal_id": "<proposal_id>",
      "chapter": "<chapter>"
    },
    "name": "proposal_write_section"
  }
}

Input Schema

NameRequiredDescriptionDefault
titleNo课题名称(不传则用库里标书标题)
chapterYes章节 key(只认 enum 里的值)。中文对照:basic_info 课题基本信息 / background 立项依据 / literature_review 研究现状 / research_gap 研究不足 / objectives 研究目标 / contents 研究内容 / methods 研究方法 / innovation 创新点 / inclusion_criteria 纳排标准 / sample_size 样本量估算 / tech_route 技术路线 / feasibility 可行性分析 / research_basis 研究基础 / clinical_translation
materialsNo本次临时补充材料(形状同 act_proposal_materials_fill 的 materials)。传了就覆盖库里的同名键,不传只用库里已保存的
proposal_idYes标书 id
research_design_typeNo研究设计代码(取值同 act_proposal_create 的 13 个)。不传则用标书库里已存的设计类型 —— 这是本章提示词走临床轨还是基础轨的唯一依据,别自行判定

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. Added

TDQS

A4.1/5.0
Behavior4/5

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

Adds real behavior beyond the annotations: the draft 'overrides the stored value per key' and the result is '同时已写入标书' (also written back to the proposal), which correctly reflects the non-idempotent, non-readOnly annotations. A note on idempotency across repeat calls would push it higher.

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 sections are front-loaded with purpose, then USE WHEN, ALIASES, and RETURNS. Efficient overall, though the long ALIASES list and bilingual duplication add some bulk without much decision value.

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?

For a 5-param tool with an output schema, annotations, and a nested materials object, the definition covers triggers, the material-override behavior, and the write-back side effect. Return values needn't be detailed given the output schema exists, so coverage is nearly complete.

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 baseline is 3. The description reinforces the materials override semantics and adds the 'read materials first' instruction, but this largely repeats what the materials schema field already states, adding little new meaning.

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 and resource ('Write one proposal chapter'), and the 'one chapter' scoping implicitly distinguishes it from the sibling proposal_write_all. The chapter examples (立项依据 / 研究方法 / 创新点 / 经费预算) anchor the resource concretely.

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?

The 'USE WHEN' clause gives explicit trigger conditions (user asks for a single chapter or wants a rewrite) and even sequences the prerequisite ('read the materials first'). It stops short of naming when NOT to use or pointing to proposal_write_all for multi-chapter requests, so it is clear context but not full alternative routing.

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