Skip to main content
Glama

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

学习曲线(样本量够不够)

act_learning_curve
Read-only

学习曲线(样本量够不够) 想知道「再加多少样本模型才会变好」,或判断模型是过拟合还是欠拟合 不同训练集规模下的表现曲线

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": {
      "labels": "<labels>",
      "proba": "<proba>"
    },
    "name": "act_learning_curve"
  }
}

Input Schema

NameRequiredDescriptionDefault
probaYes预测概率,与 labels 等长。内部以 ≥0.5 判为正类算准确率。返回 20%/40%/60%/80%/100% 五个训练比例下的准确率及跳过的档位(样本太少时该档位不可算)。
labelsYes真实标签,0/1。本接口按数组**顺序**取前 k 例当训练集,所以请先把样本随机打乱再传 —— 否则曲线反映的是数据排列,不是数据量。

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / labels / description
      Previous value: -"真实标签,0/1 二分类"New value: +"真实标签,0/1。本接口按数组**顺序**取前 k 例当训练集,所以请先把样本随机打乱再传 —— 否则曲线反映的是数据排列,不是数据量。"
    • changedInput schema / properties / proba / description
      Previous value: -"模型预测概率,与 labels 等长"New value: +"预测概率,与 labels 等长。内部以 ≥0.5 判为正类算准确率。返回 20%/40%/60%/80%/100% 五个训练比例下的准确率及跳过的档位(样本太少时该档位不可算)。"
  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 fully covered and the description does not contradict it. Beyond that, the description adds only task framing; it does not disclose that the output is five accuracy points at fixed training fractions (that lives in the schema) or the ≥0.5 positive-class threshold.

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?

Very compact and front-loaded with the decision it supports. The leading phrase repeats the title verbatim, which is mild redundancy, but no sentence is wasted.

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 two-parameter, fully documented, non-mutating computation tool this is close to sufficient: purpose, use case, and parameter behavior are all covered somewhere in the definition. The remaining gap is that no output schema exists and the description never states what shape the result takes (curve object vs. table of accuracies), which the agent must infer.

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 itself carries the operative semantics — equal-length arrays, the ≥0.5 classification rule, the 20/40/60/80/100% training fractions, skipped tiers, and the requirement to shuffle rows first. The description adds nothing about the only two parameters, 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 names a specific analytic object — a curve of performance across different training-set sizes — and frames it with the question it answers ("how many more samples before the model improves"). It does not name a sibling it is not (e.g., calibration_curve or act_cv_scores), so differentiation from closely related curve/diagnostic tools is left to the agent.

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 two concrete triggering conditions: deciding whether more samples would help, and diagnosing over- vs under-fitting. It offers clear context for when to reach for this tool, but no exclusions or named alternatives for the adjacent tasks.

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.