Skip to main content
Glama

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

加权 Kappa(有序一致性)

act_weighted_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": {
      "ratings1": "<ratings1>",
      "ratings2": "<ratings2>"
    },
    "name": "act_weighted_kappa"
  }
}

Input Schema

NameRequiredDescriptionDefault
weightsNo加权方式:linear(默认)或 quadratic
ratings1Yes评价者 1 的等级序列(有序整数/字符串,与 ratings2 等长)。weights 默认 linear(也可 quadratic);等级顺序会影响力重。
ratings2Yes评价者 2 的等级序列,长度必须等于 ratings1。同一对评分顺序错位会算出完全不同的 kappa。

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / ratings1 / description
      Previous value: -"评价者 1 的等级序列"New value: +"评价者 1 的等级序列(有序整数/字符串,与 ratings2 等长)。weights 默认 linear(也可 quadratic);等级顺序会影响力重。"
    • changedInput schema / properties / ratings2 / description
      Previous value: -"评价者 2 的等级序列,与 ratings1 等长"New value: +"评价者 2 的等级序列,长度必须等于 ratings1。同一对评分顺序错位会算出完全不同的 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 safety is covered and the bar is lower. The description adds one genuine behavioral detail beyond the annotations: it returns both the weighted Kappa value and an interpretation of agreement strength. It says nothing about sample-size constraints, how ties or missing levels are handled, or what happens with mismatched lengths.

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 short with no filler, and the scenario precedes the computed output, so it is front-loaded reasonably. But the text runs together without punctuation and opens by restating the title, making the intent slightly harder to parse than a single clean sentence would be.

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 three parameters, full schema coverage, and safety covered by annotations, the core is adequate, and naming the output (Kappa value plus strength interpretation) fills the gap left by having no output schema. It still omits practical preconditions such as minimum number of rated items and how ordered levels are mapped to numeric scores, which matter for a weighted Kappa.

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 coverage is 100% and the per-parameter descriptions are unusually rich, already explaining the linear/quadratic weight choice, the default, the equal-length requirement, and that ordering affects the weights. The description adds essentially no parameter meaning beyond that, 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 a specific statistical operation (weighted Kappa for ordinal agreement) and the scenario it serves: two raters, ordinal levels such as mild/moderate/severe. The 'ordered' qualifier implicitly separates it from nominal-agreement siblings like act_diag_kappa, but no sibling is actually named, 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 implied by the scenario description (two raters, ordinal ratings), which is enough for an agent to know when it applies. However, it never states when NOT to use it (e.g., nominal data, more than two raters) and points to no alternative tool, so the agent must infer the boundary itself.

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.