Skip to main content
Glama

三域医研 · 科研算法引擎 (SanYu Research Engine)

技术路线图 SVG(CONSORT/PRISMA/标书用)

act_figdraw_roadmap
Read-only

技术路线图 SVG(CONSORT/PRISMA/标书用) 需要一张技术路线图或流程图放进标书/论文,不想手画 SVG 源码

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>",
      "nodes": "<nodes>"
    },
    "name": "act_figdraw_roadmap"
  }
}

Input Schema

NameRequiredDescriptionDefault
nodesYes节点数组,每项 `{"label": "立项", "subtitle": "可选副标题", "details": ["要点1", "要点2"], "time": "第 1-6 月", "children": ["子节点文字"]}`。**只有 label 必给**;subtitle/details/time/children 都是引擎真读的字段(details 画成节点内要点列表,children 画成从节点垂下的分支)。横向排布时按数组顺序从左到右,不认 id / level。⚠️ 图类型也在这里定:`nodes[0].roadmap_type` = tech_roadmap(默认)/ con
styleNo配色风格,默认 nature;也接受 cyan / blue / green / medical / purple。
titleYes路线图标题,**必填**(空字符串直接 400「标题不能为空」)。会画在 SVG 顶部居中。
directionNo排布方向:horizontal(默认,从左到右)/ vertical(从上到下)。节点多(>4)或文字长时用 vertical 更不容易出界。
roadmap_typeNo⚠️ **顶层这个字段只被原样回显,不决定画什么图**。真正生效的是 `nodes[0].roadmap_type`(源码 figdraw.py:1362 从节点里取)。要画 CONSORT 流程图请在第一个节点里写 roadmap_type=consort;只在顶层写会得到一张技术路线图 + 一个写着 consort 的响应字段。

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changed
    • changedInput schema / properties / direction / description
      Previous value: -"排布方向:horizontal(默认)或 vertical"New value: +"排布方向:horizontal(默认,从左到右)/ vertical(从上到下)。节点多(>4)或文字长时用 vertical 更不容易出界。"
    • changedInput schema / properties / nodes / description
      Previous value: -"节点列表,每项 {id, label, level};level 表示第几层"New value: +"节点数组,每项 `{\"label\": \"立项\", \"subtitle\": \"可选副标题\", \"details\": [\"要点1\", \"要点2\"], \"time\": \"第 1-6 月\", \"children\": [\"子节点文字\"]}`。**只有 label 必给**;subtitle/details/time/children 都是引擎真读的字段(details 画成节点内要点列表,children 画成从节点垂下的分支)。横向排布时按数组顺序从左到右,不认 id / level。⚠️ 图类型也在这里定:`nodes[0].roadmap_type` = tech_roadmap(默认)/ con"
    • changedInput schema / properties / nodes / items / type
      Previous value: -"string"New value: +"object"
    • changedInput schema / properties / roadmap_type / description
      Previous value: -"类型:tech_roadmap(默认)/ consort / prisma"New value: +"⚠️ **顶层这个字段只被原样回显,不决定画什么图**。真正生效的是 `nodes[0].roadmap_type`(源码 figdraw.py:1362 从节点里取)。要画 CONSORT 流程图请在第一个节点里写 roadmap_type=consort;只在顶层写会得到一张技术路线图 + 一个写着 consort 的响应字段。"
    • changedInput schema / properties / style / description
      Previous value: -"配色风格,默认 nature"New value: +"配色风格,默认 nature;也接受 cyan / blue / green / medical / purple。"
    • changedInput schema / properties / title / description
      Previous value: -"路线图标题"New value: +"路线图标题,**必填**(空字符串直接 400「标题不能为空」)。会画在 SVG 顶部居中。"
    • changedInput schema / required
      Previous value: -[
      -  "title"
      -]New value: +[
      +  "title",
      +  "nodes"
      +]
  2. Added

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=false, so the safety profile is covered and the description only needs to add output behavior. It hints the result is SVG source but never says explicitly that the tool returns SVG markup, nor does it mention failure modes (title validation, the roadmap_type pitfall), all of which live in the schema instead.

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?

A single compact sentence with the resource up front and the use case trailing it. It is slightly redundant since the first half restates the title verbatim, but nothing is padded or buried.

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 tool with five parameters, nested node objects and no output schema, the description is thin: it never states the return type (SVG text vs. file), size or layout limits, or that unsupported roadmap types silently degrade to a technical roadmap. The schema compensates for field-level detail but not for the calling 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% and the node/style/direction/roadmap_type fields are documented in detail there, including the warning that only nodes[0].roadmap_type takes effect. The description itself adds no parameter meaning beyond what the schema already provides, so baseline 3 applies.

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 concrete output (an SVG technical roadmap/flowchart) and the context it serves (grant proposals, papers). It is distinguishable at the level of 'roadmap/flowchart figure,' but it never contrasts itself with the sibling figure tools (consort_flowchart, prisma_flowchart, technical_roadmap), so an agent must rely on the name alone to choose.

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?

'需要一张技术路线图或流程图放进标书/论文' gives a clear triggering situation, and '不想手画 SVG 源码' implies the agent should reach for this instead of hand-authoring markup. There are no exclusions or named alternatives, so the agent gets context but no routing rules.

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.