Skip to main content
Glama

DeLong test (compare two AUCs) / 两条 ROC 的 AUC 比较(DeLong)

delong_auc_compare
Read-only

DeLong test (compare two AUCs) / 两条 ROC 的 AUC 比较(DeLong) | USE WHEN: compare two ROC AUCs from the same subjects and test whether the difference is significant | ALIASES: DeLong, 两个AUC比较, 哪个指标更好, AUC差异, compare AUC, 曲线下面积比较 | RETURNS: 两 AUC 及差值 P 值

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "labels": [
        0,
        1,
        0,
        1,
        1,
        0
      ],
      "scores1": [
        0.1,
        0.9,
        0.2,
        0.8,
        0.7,
        0.3
      ],
      "scores2": [
        0.2,
        0.7,
        0.3,
        0.6,
        0.8,
        0.4
      ]
    },
    "name": "delong_auc_compare"
  }
}

Input Schema

NameRequiredDescriptionDefault
labelsYes真实标签 0/1,长度 = scores1 = scores2。两个类别各至少 2 例,否则 400(AUC 方差无定义)。
scores1Yes指标 1 的风险分数(一维数值数组,可为任意实数)。与 scores2、labels 三者等长;AUC 只看排序不看绝对尺度。
scores2Yes指标 2 的风险分数(一维数值数组)。与 scores1 等长。返回两个 AUC 及其差值是否显著(相关 ROC 的 DeLong 检验)。

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / properties / labels / description
      Previous value: -"真实标签 0/1"New value: +"真实标签 0/1,长度 = scores1 = scores2。两个类别各至少 2 例,否则 400(AUC 方差无定义)。"
    • changedInput schema / properties / scores1 / description
      Previous value: -"指标 1 的分数"New value: +"指标 1 的风险分数(一维数值数组,可为任意实数)。与 scores2、labels 三者等长;AUC 只看排序不看绝对尺度。"
    • changedInput schema / properties / scores2 / description
      Previous value: -"指标 2 的分数"New value: +"指标 2 的风险分数(一维数值数组)。与 scores1 等长。返回两个 AUC 及其差值是否显著(相关 ROC 的 DeLong 检验)。"
  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. The description adds that the test is for correlated/paired ROCs and that a P value for the difference is returned, but says nothing about assumptions, output shape, or failure behavior beyond what the schema already states for the 400 case.

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 (USE WHEN / ALIASES / RETURNS) front-load the decision-relevant content and are easy to scan. The bilingual title is duplicated verbatim at the head of the description, which is minor redundancy but wastes first-token position.

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 three-array, no-output-schema tool, the definition covers trigger, aliases, and the shape of the return (two AUCs plus a difference P value). It could say more about interpretation (sign/direction of difference, one- vs two-sided) but nothing needed to invoke it correctly is missing.

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%, with each array's role, length-matching requirement, and the minimum-two-per-class rule documented in the schema. The description only adds the 'same subjects' pairing constraint, which the schema partially conveys via equal length, 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?

States a specific verb and resource: 'compare two ROC AUCs from the same subjects and test whether the difference is significant', naming the DeLong procedure. This implicitly separates it from the single-AUC sibling roc_auc, though it never names that alternative.

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 a clear triggering condition (two AUCs measured on the same subjects, asking whether the difference is significant). No explicit when-not conditions or named alternatives are given, so it stops short of the top score.

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