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.

加权 Kappa 一致性(列联表输入)

act_diag_kappa
Read-only

加权 Kappa 一致性(列联表输入) 已整理成交叉表,要算两名评价者的一致性或两次检测的符合率 Kappa 值、置信区间与一致率

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": {
      "matrix": "<matrix>"
    },
    "name": "act_diag_kappa"
  }
}

Input Schema

NameRequiredDescriptionDefault
matrixYes方阵列联表(二维整数数组,行=评价者1、列=评价者2)。行列须同一套类别且顺序一致,否则 kappa 会被错算。
weight_typeNo加权方式:linear(默认)或 quadratic

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / matrix / description
      Previous value: -"方阵列联表,二维整数数组,行=评价者1、列=评价者2"New value: +"方阵列联表(二维整数数组,行=评价者1、列=评价者2)。行列须同一套类别且顺序一致,否则 kappa 会被错算。"
  2. Added

TDQS

B3.3/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 of this pure-computation tool is covered. The description's contribution is the mention that the output includes a Kappa value, a confidence interval and an agreement rate, which is useful context not in the annotations. It says nothing about error behavior for malformed/non-square matrices beyond what the schema already warns about.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

It is a single short sentence and front-loaded with the operation, so it is not bloated. However, it opens by repeating the title verbatim ('加权 Kappa 一致性(列联表输入)'), which duplicates structured data rather than earning its place, and the rest is a slightly run-on clause.

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?

With only two parameters, full schema coverage and no output schema, the description covers what an agent needs at a minimum: what is computed and what comes back. The main remaining gap for this statistical tool is routing versus act_weighted_kappa and the explicit square/same-category prerequisite, neither of which is stated here.

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 both parameters (matrix and weight_type, including the linear/quadratic options and the square-matrix ordering warning) are already fully documented in the schema. The description adds no parameter-level meaning of its own and never mentions the weighting choice, 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 specific verb and resource (compute weighted Kappa agreement) and pins down the input form (a pre-tabulated contingency table), plus what the result contains (Kappa value, confidence interval, agreement rate). It implicitly separates it from a raw-ratings variant via '已整理成交叉表' / '列联表输入', but never names the sibling act_weighted_kappa, so the differentiation is left to inference.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is only implied: '已整理成交叉表' indicates this tool is for data that is already cross-tabulated, which suggests using something else when you have raw pair ratings. There is no explicit when-not clause, no named alternative, and no stated prerequisite that the matrix be square with identical category ordering (that constraint lives only in the schema).

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