Skip to main content
Glama

util_t_test

Read-only

t-test (one-sample, two-sample Welch/Student, paired) with rank-test check — Hypothesis test for means. a= comma-separated numbers (required); add b= for a two-sample test (Welch by default, equal_var=true for Student) or paired=true for a paired test; without b= it is a one-sample test against mu= (default 0). alternative=two-sided|greater|less, confidence=95. Returns t, df, p, confidence interval of the difference, Cohen d / Hedges g with magnitude, a nonparametric cross-check (Mann-Whitney U or Wilcoxon signed-rank), per-sample stats, SIGNIFICANT/NOT_SIGNIFICANT verdict and assumption notes. Offline; matches scipy. Price: $0.002 USDC (Base, via x402).

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": {
      "a": "<a>",
      "b": "<b>"
    },
    "name": "util_t_test"
  }
}

Input Schema

NameRequiredDescriptionDefault
aYes12.1,11.8,13.0,12.5,12.9,11.6
bYes11.2,11.9,10.8,11.5,11.1,12.0

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior4/5

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

Annotations declare a safe read-only computation, and the description adds genuinely useful behavior beyond them: 'Offline', scipy parity claims, the Google-style SIGNIFICANT/NOT_SIGNIFICANT verdict, assumption notes, and a per-call price of $0.002 USDC via x402. Those cost and execution-context details are exactly what annotations cannot express.

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 core selection logic (a required, b optional, paired flag) is front-loaded and the return-value list is compact. The single run-on semicolon-chained paragraph is dense, but nearly every clause carries information an agent needs.

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?

There is no output schema, and the description compensates by enumerating the returned statistics, which is a strength. But for a tool that requires two numbers and offers several hypothesis-test modes, the mismatch between the advertised optional/variant parameters and the actual two-string schema leaves a real gap for correct invocation.

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

Parameters2/5

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

The description explains the comma-separated number format for a and the role of b well beyond the schema's bare examples. However, it advertises parameters that do not exist in the input schema (paired, equal_var, mu, alternative, confidence), and it says b is optional while the schema marks both a and b as required — an agent following the description will construct calls the schema rejects.

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 method ('t-test') and enumerates its exact variants (one-sample, two-sample Welch/Student, paired) plus a rank-test cross-check. That is enough for an agent to distinguish it from siblings like util_anova or util_chi_square without opening any schema.

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?

It gives concrete selection rules: supply b= for two-sample, paired=true for paired, omit b= for one-sample against mu=. It does not name alternative sibling tools (ANOVA, chi-square) or say when a t-test is the wrong choice, so the routing guidance is clear but not exclusionary.

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