Skip to main content
Glama

Stats.Grouped

stats.grouped
Read-onlyIdempotent

Cluster-aware group statistics across executions.

REQUIREMENT (read first): each execution must have been run with an evaluation plan that STORED per-SUBJECT accuracies for at least 3 subjects — e.g. leave-one-subject-out (LOSO) or grouped CV over

= 3 subjects. Session groups within one subject (multi-session single-subject runs) are refused with nimbus.stats.non_subject_groups — those are not independent subjects. A plain single-subject CV run with no subject/session grouping stores no group stats and fails with nimbus.stats.insufficient_groups.

What it does: pools the per-subject accuracies each run's evaluation plan stored, then reports the between-group summary — mean accuracy with a t-interval and a one-sample t-test vs chance. Responses label groupKind, real groupKeys (subject ids like S01 when stamped or recoverable), perGroup (key + accuracy pairs), overall.pooledExecutionIds, and kindBreakdown / overall.kindBreakdown (per_subject vs loso etc. with n + mean — #470; between-group pooled mean is unchanged).

Input Schema

NameRequiredDescriptionDefault
chanceNoChance level in [0, 1]; default 1/nClasses per execution.
execution_idsYes1–25 executions (from execution.run) to pool. Runs without subject group stats are reported with nulls but do not fail the request — unless NONE qualifies (``nimbus.stats.insufficient_groups``) or only session groups are present (``nimbus.stats.non_subject_groups``).

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / execution_ids / description
      Previous value: -"1–25 executions (from execution.run) to pool. Runs\nwithout stored group stats (fewer than 3 groups) are reported\nwith nulls but do not fail the request — unless NONE of them\nhas group stats (then ``nimbus.stats.insufficient_groups``)."New value: +"1–25 executions (from execution.run) to pool. Runs\nwithout subject group stats are reported with nulls but do not\nfail the request — unless NONE qualifies\n(``nimbus.stats.insufficient_groups``) or only session groups\nare present (``nimbus.stats.non_subject_groups``)."
  2. Changed1 schema field changed
    • changedInput schema / properties / execution_ids / description
      Previous value: -"1–25 executions (from execution.run) to pool. Runs\nwithout stored group stats (fewer than 3 groups) are reported\nwith nulls but do not fail the request."New value: +"1–25 executions (from execution.run) to pool. Runs\nwithout stored group stats (fewer than 3 groups) are reported\nwith nulls but do not fail the request — unless NONE of them\nhas group stats (then ``nimbus.stats.insufficient_groups``)."
  3. Added

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive, but the description adds substantial behavioral context: the pooled-vs-between-group semantics, the exact error codes raised (nimbus.stats.non_subject_groups, nimbus.stats.insufficient_groups), and the fact that non-qualifying runs return nulls rather than failing the whole request. That is real disclosure beyond the structured safety hints.

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 opening line is well front-loaded and the 'read first' requirement block is deliberately prioritized. It is dense rather than padded, though the final sentence enumerating response labels and the '#470' ticket parenthetical are verbose and partly redundant with the output schema.

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 statistically complex tool with strict preconditions, the description covers the requirement, failure modes, and pooling semantics, and an output schema already exists so return fields need not be re-explained. An agent has everything needed to decide whether to call it and to interpret success vs error.

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%: execution_ids already documents the 1–25 range and the null-reporting/failure behavior, and chance documents the [0,1] range and 1/nClasses default. The description adds nothing new about the parameters themselves (its 'responses label...' sentence concerns outputs, not inputs), so the baseline 3 applies.

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 opens with a specific verb+resource ('Cluster-aware group statistics across executions') and then spells out the exact computation: pooling per-subject accuracies stored by each run's evaluation plan and reporting a between-group mean with a t-interval and one-sample t-test vs chance. No sibling tool (protocol.export_stats, execution.results) covers grouped/cluster statistics, so the agent can identify this tool unambiguously.

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 REQUIREMENT block gives explicit preconditions: executions must have stored per-subject accuracies for >= 3 subjects, session groups within one subject are refused, and single-subject CV fails. It clearly states when the tool applies and when it errors, but never names an alternative tool for the cases it rejects (e.g. what to use for single-subject or session-group stats).

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.