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.

McNemar 配对检验

act_diag_mcnemar
Read-only

McNemar 配对检验 同一批样本用两种方法判阴阳,要看两种方法的阳性率是否有差异(配对卡方) McNemar 卡方值与 p 值

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": {
      "b": "<b>",
      "c": "<c>"
    },
    "name": "act_diag_mcnemar"
  }
}

Input Schema

NameRequiredDescriptionDefault
bYes方法1阳性、方法2阴性的例数(不一致格 b)
cYes方法1阴性、方法2阳性的例数(不一致格 c)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.5/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 output includes the McNemar chi-square statistic and p-value, which is useful behavioral information. It does not disclose whether continuity correction is applied, how small discordant counts are handled (exact vs. asymptotic), or any input validation behavior — relevant for a statistical test where these choices change results.

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 — essentially two clauses that front-load the test name and the analytic question, followed by the output. No filler. It reads slightly as a run-on fragment rather than structured sentences, but nothing 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 simple two-integer-input test with no output schema, the description covers the purpose, the data shape, and the returned values (chi-square and p-value), which is most of what an agent needs. The remaining gap — small-sample/exact-test caveats and how to interpret the statistic — is minor for a tool whose schema is fully documented.

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 both parameters (b and c) are documented in-schema as the discordant cells. The description's framing of two methods judging positive/negative reinforces that only discordant pairs are needed, but it adds no notation, constraints (e.g., non-negative integers, concordant pairs not required), or interpretation guidance beyond the schema. 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 the specific test (McNemar 配对检验) and states the exact inferential question: whether two methods applied to the same samples yield different positive rates, framed as 配对卡方. This is clear enough for an agent to identify the tool, but it does not distinguish it from closely related siblings such as act_diag_kappa (agreement) or act_diag_paired_equiv, which an agent could easily confuse with a paired binary comparison.

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?

The usage condition is implied rather than stated: '同一批样本用两种方法判阴阳' tells the agent the data shape (paired binary outcomes from two methods), which is genuinely useful context. However, there is no explicit when-to-use vs. alternative guidance, no mention of when a different test (e.g., kappa for agreement, paired equivalence) would be preferred, and no stated preconditions such as requiring discordant-pair counts.

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