Skip to main content
Glama
Replaced by its MCP Registry listing

This endpoint is listed in the official MCP Registry as 三域医研 · 科研算法引擎 (SanYu Research Engine). If you published it, claim ownership there.

箱线图(出版级 SVG)

act_chart_boxplot
Read-only

箱线图(出版级 SVG) 有两组或多组连续变量要做组间分布对比图,需要能直接放进论文的矢量图 SVG 源码(字段 svg),可直接嵌入稿件或转 PDF/EPS

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": {
      "data": "<data>"
    },
    "name": "act_chart_boxplot"
  }
}

Input Schema

NameRequiredDescriptionDefault
dataYes**对象数组**,每项 `{"name": "组名", "values": [数值…]}` —— 注意是 name/values 两个键,且 values 是该组的**全部原始逐例值**(不是均值±SD)。写成 `{"A": [1,2,3]}` 这种「组名→数值」的映射对象会 422 invalid_params。箱线图需要原始值才能画四分位与离群点,给均值+SD 画不出来。每组建议 ≥5 例。
titleNo图标题,默认 Box Plot
x_labelNoX 轴标签,默认 Groups
y_labelNoY 轴标签,默认 Values
comparisonsNo两两比较标注,每项 `{"group1":"A","group2":"B","p_value":0.02}`。p 值**原样标注不做换算也不做多重校正**(要校正请先自己算好再传);group 名必须与 data 里的 name 完全一致,否则该条标注静默不显示。
show_pointsNo是否叠加原始散点,默认 true。样本量小(每组 <10)时强烈建议保留,否则看不出分布形状。
color_schemeNo配色,默认 cyan;可选 blue / green / medical / purple / nature。
publication_readyNo出版级排版(更粗线条、更大字号、去背景网格),默认 false。

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changed
    • changedInput schema / properties / color_scheme / description
      Previous value: -"配色,默认 cyan"New value: +"配色,默认 cyan;可选 blue / green / medical / purple / nature。"
    • changedInput schema / properties / comparisons / description
      Previous value: -"两两比较标注数组,每项 {\"group1\":\"A\",\"group2\":\"B\",\"p_value\":0.02}。p 值原样标注不做换算;组名必须与 data 里的组名一致。"New value: +"两两比较标注,每项 `{\"group1\":\"A\",\"group2\":\"B\",\"p_value\":0.02}`。p 值**原样标注不做换算也不做多重校正**(要校正请先自己算好再传);group 名必须与 data 里的 name 完全一致,否则该条标注静默不显示。"
    • changedInput schema / properties / data / description
      Previous value: -"逐例数据,每项含 group(分组名)与 value(数值)。至少要有一组,每组建议 ≥3 例"New value: +"**对象数组**,每项 `{\"name\": \"组名\", \"values\": [数值…]}` —— 注意是 name/values 两个键,且 values 是该组的**全部原始逐例值**(不是均值±SD)。写成 `{\"A\": [1,2,3]}` 这种「组名→数值」的映射对象会 422 invalid_params。箱线图需要原始值才能画四分位与离群点,给均值+SD 画不出来。每组建议 ≥5 例。"
    • changedInput schema / properties / publication_ready / description
      Previous value: -"出版级排版(更粗的线、更大字号)"New value: +"出版级排版(更粗线条、更大字号、去背景网格),默认 false。"
    • changedInput schema / properties / show_points / description
      Previous value: -"是否叠加散点,默认 true"New value: +"是否叠加原始散点,默认 true。样本量小(每组 <10)时强烈建议保留,否则看不出分布形状。"
    • changedInput schema / properties / title / description
      Previous value: -"图标题"New value: +"图标题,默认 Box Plot"
  2. Changed1 schema field changed
    • changedInput schema / properties / comparisons / description
      Previous value: -"两两比较标注,每项 {group1, group2, p_value}"New value: +"两两比较标注数组,每项 {\"group1\":\"A\",\"group2\":\"B\",\"p_value\":0.02}。p 值原样标注不做换算;组名必须与 data 里的组名一致。"
  3. Added

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, openWorldHint=false and destructiveHint=false, so the safety profile is covered. The description adds genuinely new behavioral information: the return is SVG source code in the field `svg`, directly embeddable in a manuscript or convertible to PDF/EPS — useful since no output schema exists. It does not say whether a file is written to disk or how large/inlined the SVG payload is.

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?

It is a single compact sentence with no padding, and the use condition precedes the output detail. The only waste is the opening phrase duplicating the title, which contributes nothing the caller does not already see.

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?

With no output schema, the description correctly fills that gap by naming the `svg` field and its downstream uses, and the fully documented input schema carries all parameter semantics. For an 8-parameter, single-required-field chart generator it is nearly complete; a note on payload size or statelessness would close the remaining gap.

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 schema already spells out the data shape, the comparisons object shape, defaults for title/labels/color_scheme, and the p-value pass-through caveat. The description adds no parameter-level meaning beyond mentioning the `svg` output field, so the 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 names the specific chart type (box plot / 箱线图) and its scope (between-group distribution comparison for two or more continuous variable groups), plus the output form (publication-grade SVG source). This is more than a restatement of the name, though it does begin by echoing the title verbatim and never explicitly contrasts itself with the many sibling chart tools.

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?

A clear usage condition is given: two or more groups of continuous values being compared for distribution, when a vector figure suitable for a manuscript is needed. It stops short of exclusions (e.g., when a bar/error plot or a statistical test tool would be more appropriate instead), so it is clear context without 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