Skip to main content
Glama

Two-way ANOVA / 双因素方差分析

two_way_anova
Read-only

Two-way ANOVA / 双因素方差分析 | USE WHEN: two factors: main effects and interaction | ALIASES: 双因素方差分析, two-way ANOVA, 交互作用, 主效应, 两个因素 | RETURNS: 主效应与交互

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": {
      "group_a": "<group_a>",
      "group_b": "<group_b>",
      "values": "<values>"
    },
    "name": "two_way_anova"
  }
}

Input Schema

NameRequiredDescriptionDefault
valuesYes观测值(一维数值数组,与 group_a、group_b 逐行对应、等长)。字段名也可用 y;三者行序错位不会报错但结论完全不同。
group_aYes因素 A 的水平标签(逐观测一维数组,与 group_b、values 等长)。本接口是**长表口径**:三个数组按行对应同一观测。
group_bYes因素 B 的水平标签(逐观测一维数组,与 group_a、values 等长)。

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / required
      Previous value: -[
      -  "group_a",
      -  "group_b"
      -]New value: +[
      +  "group_a",
      +  "group_b",
      +  "values"
      +]
  2. Changed3 schema fields changed
    • changedInput schema / properties / group_a / description
      Previous value: -"因素 A 水平"New value: +"因素 A 的水平标签(逐观测一维数组,与 group_b、values 等长)。本接口是**长表口径**:三个数组按行对应同一观测。"
    • changedInput schema / properties / group_b / description
      Previous value: -"因素 B 水平"New value: +"因素 B 的水平标签(逐观测一维数组,与 group_a、values 等长)。"
    • changedInput schema / properties / values / description
      Previous value: -"观测值"New value: +"观测值(一维数值数组,与 group_a、group_b 逐行对应、等长)。字段名也可用 y;三者行序错位不会报错但结论完全不同。"
  3. 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 only 'RETURNS: 主效应与交互' and says nothing about statistical assumptions (normality, balance, equal variances), handling of unbalanced or missing data, or the shape of the returned statistics. Useful but thin beyond the annotations.

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?

The pipe-delimited structure front-loads the tool name and the USE WHEN condition before aliases and return value, which is easy to scan. The bilingual repetition and the alias list add some bulk without adding selection-relevant information.

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?

All three parameters are fully documented in the schema and the read-only nature is covered by annotations, so the basics are complete. However, for a statistical method whose correctness depends on assumptions and design balance, and with no output schema, the description omits what the results contain and what preconditions must hold.

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 the schema itself already explains the long-table convention, equal-length row alignment, the 'y' alias, and the consequence of misaligned rows. The description adds no parameter-level 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 procedure ('Two-way ANOVA / 双因素方差分析') and its scope (two factors, main effects and interaction), so an agent can identify the resource precisely. It does not differentiate itself against plausible siblings such as linear_mixed_model, which is the only gap keeping it below 5.

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: two factors: main effects and interaction' clause gives a clear positive selection condition — two categorical factors with interest in both main effects and their interaction. There is no explicit when-not guidance or named alternative (e.g. for one factor or for random effects), so it stops short of a 5.

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