Skip to main content
Glama
Ian3738
by Ian3738

test_anova

Run ANOVA (one-way, factorial, repeated measures, ANCOVA, mixed) with effect sizes, Levene's test, and post-hoc comparisons via estimated marginal means.

Instructions

ANOVA in all its usual forms, with effect sizes (eta squared, partial eta squared, omega squared), Levene's test and post-hoc comparisons via estimated marginal means.

  • one-way / factorial: dv plus between=['factor1','factor2']

  • ANCOVA: add covariates=['age']

  • repeated measures: within=['time'] plus id='subject' (data must be in long format)

  • mixed: both between and within, plus id

Set nonparametric=true for Kruskal-Wallis (between) or Friedman (within) with post-hoc tests, and welch=true for a Welch ANOVA when variances differ. The fitted model is saved for use with model_diagnostics.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dvYesNumeric dependent variable.
idNoParticipant identifier column, required for within-subjects designs.
dataYesDataset name in the session.
typeNoSum-of-squares type: 2 or 3. Type 3 matches SPSS.
plotsNoInclude a box plot by the first factor.
welchNoAlso run a Welch ANOVA (one-way between-subjects only).
digitsNoDecimal places.
withinNoWithin-subjects (repeated measures) factor columns; requires `id`.
betweenNoBetween-subjects factor columns.
posthocNoPost-hoc adjustment: tukey, bonferroni, holm, sidak, fdr, or none.tukey
save_asNoName for the fitted model in the session.
covariatesNoContinuous covariates, turning the analysis into an ANCOVA.
nonparametricNoAlso run Kruskal-Wallis (between) or Friedman (within).

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv0.1.0

TDQS

A5/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and discharges it well: it discloses effect sizes, Levene's test, post-hoc via estimated marginal means, the nonparametric/Welch alternatives, and the side effect that the fitted model is saved for model_diagnostics. It also specifies data-shape requirements, going well beyond the schema.

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

Conciseness5/5

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

The description is compact, front-loaded with the main output features, and structured as a scannable bullet list of design recipes. No sentence is filler; the final sentence about saving the model adds necessary cross-tool context.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a complex 13-parameter tool with no output schema or annotations, the description covers all major design families, parameter combinations, the long-format requirement, and the model_diagnostics handoff. An agent has enough to configure a correct ANOVA call and route the results appropriately.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Although schema coverage is 100%, the description adds design-level semantics by showing how dv, between, within, covariates, and id combine for each ANOVA family. It also maps nonparametric and welch booleans to concrete tests, giving the agent decision rules the schema alone does not provide.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states the tool performs ANOVA across multiple designs ('one-way / factorial', 'ANCOVA', 'repeated measures', 'mixed'), with outputs and variants. This clearly separates it from sibling tests such as test_ttest and test_categorical, and the planned contrasts among designs make the purpose unmistakable.

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

Usage Guidelines5/5

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

It gives explicit when-to-use guidance for each design: 'dv plus between', 'add covariates', 'within plus id', 'both between and within', plus 'nonparametric=true' for Kruskal-Wallis/Friedman and 'welch=true' when variances differ. It also warns that repeated-measures data must be in long format, which is a direct prerequisite.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Ian3738/r-stats-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server