Skip to main content
Glama

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

ROC 曲线绘制(给定 FPR/TPR)

act_chart_roc
Read-only

ROC 曲线绘制(给定 FPR/TPR) 已经算好了 ROC 的坐标点(FPR/TPR),只需要画成出版级图;要算 AUC 请用 act_roc SVG 源码(字段 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": {
      "fpr_list": "<fpr_list>",
      "tpr_list": "<tpr_list>"
    },
    "name": "act_chart_roc"
  }
}

Input Schema

NameRequiredDescriptionDefault
titleNo图标题
fpr_listYes假阳性率序列(一维数组,0~1 单调不减,从 0 到 1)。与 tpr_list 等长;曲线由点连成,点太少会呈折线。
tpr_listYes真阳性率序列(一维数组,0~1 单调不减)。与 fpr_list 等长、逐点对应。
auc_valueNo图例上要显示的 AUC 值(本接口不重算 AUC)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / properties / fpr_list / description
      Previous value: -"假阳性率序列,0~1 递增,与 tpr_list 等长"New value: +"假阳性率序列(一维数组,0~1 单调不减,从 0 到 1)。与 tpr_list 等长;曲线由点连成,点太少会呈折线。"
    • removedInput schema / properties / publication_ready
      Removed value: -{
      -  "description": "出版级排版",
      -  "type": "boolean"
      -}
    • changedInput schema / properties / tpr_list / description
      Previous value: -"真阳性率序列,0~1 递增,与 fpr_list 等长"New value: +"真阳性率序列(一维数组,0~1 单调不减)。与 fpr_list 等长、逐点对应。"
  2. Added

TDQS

A3.8/5.0
Behavior4/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 safety is covered. The description adds real value beyond them: it discloses that output is publication-grade and returned as SVG source in a `svg` field, and that AUC is not recomputed here. It does not describe failure modes or validation errors for malformed point sequences.

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?

Compact and front-loaded: capability first, then precondition, then the redirect. The restated title at the start of the sentence is mild redundancy, but nothing else is wasted.

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 four-parameter, two-required drawing tool with no output schema, the description covers intent well and hints at the `svg` return field. It still leaves the agent unsure of the concrete return shape (SVG string vs. file reference) and of how point count affects the rendered curve.

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 all four parameters are already documented in the schema, including the monotonicity and equal-length constraints. The description's remark that AUC is only displayed and not recalculated restates what the `auc_value` property description already says, adding no new meaning; 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 specific verb and resource — draw an ROC curve (出版级图) from already-computed FPR/TPR coordinate lists — and distinguishes this from computing AUC. The distinction is slightly muddied by routing to 'act_roc', a name that does not appear in the sibling list, so the agent must still infer which sibling actually computes AUC.

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?

It gives an explicit precondition (you already have the FPR/TPR points, no computation needed) and an explicit exclusion with a redirect (if you need AUC, go elsewhere). No guidance is given on point density beyond the schema note, and the named alternative is not resolvable in the sibling set.

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.