Skip to main content
Glama

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

Cramér's V(列联表关联强度)

act_cramers_v
Read-only

Cramér's V(列联表关联强度) 卡方检验显著了,还要说明「关联有多强」;Cramér's V 是卡方的效应量 Cramér's V 与关联强度分级

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": {
      "table": "<table>"
    },
    "name": "act_cramers_v"
  }
}

Input Schema

NameRequiredDescriptionDefault
tableYes列联表,二维整数数组,每行一个行类别(如 [[30,10],[12,28]])。至少 2×2;单元格期望频数过小时 Cramér's V 不稳定,需改用精确检验。

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / table / description
      Previous value: -"列联表,二维整数数组,每行一个行类别"New value: +"列联表,二维整数数组,每行一个行类别(如 [[30,10],[12,28]])。至少 2×2;单元格期望频数过小时 Cramér's V 不稳定,需改用精确检验。"
  2. Added

TDQS

A3.6/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

The annotations already establish the safety profile (readOnlyHint=true, destructiveHint=false, openWorldHint=false), so the description does not need to explain that profile. The description adds only that the tool outputs Cramér's V plus a graded interpretation, and it does not state how the strength levels are computed, how many levels there are, or what the output object looks like. The note that small expected cell counts make the statistic unstable appears only in the schema, not in the description.

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?

The description is brief, but it is not structured well: it restates 'Cramér's V' three times, the parenthetical title duplicates the tool title, and the trailing fragment 'Cramér's V 与关联强度分级' reads as keyword padding rather than a sentence. Its short length is good, but several clauses are redundant.

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 one-parameter statistical tool with safety already covered by annotations, the description conveys the key facts: what statistic it computes, when to use it, and that a strength interpretation comes with it. The main remaining gap is the lack of a described return shape in the absence of an output schema, but the hinted grading partially compensates.

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?

There is only one required parameter, and the schema fully documents it: the table must be a 2D integer array, at least 2x2, with a warning about small expected frequencies. The description adds no meaning beyond what the schema describes, which is the expected baseline when schema coverage is 100%.

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 identifies the tool as the chi-square effect size computing Cramér's V for contingency tables and also mentions a strength grading. That is enough to distinguish it from diagnostic test tools like act_diag_kappa or act_diag_mcnemar, but it never uses a clean verb phrase such as 'compute', so the action is inferred rather than stated.

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 description gives a concrete condition for invoking the tool: it is relevant after a chi-square test has reached significance, when the association strength still needs to be quantified. However, it names no alternative tool and gives no explicit case in which this tool should not be used, so the exclusions remain implicit.

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.