Skip to main content
Glama

ScorpTech x402 Tools

Hypothesis Test

hypothesis_test
Read-onlyIdempotent

Run a statistical significance test and get the statistic, p-value, effect size, confidence interval and a plain-English verdict — results match scipy.stats. Tests: Welch / Student two-sample t, paired t, one-sample t, one-proportion z, A/B test of two conversion rates (pooled z, lift, CI of the difference), chi-square goodness of fit and independence (Yates for 2×2, Cramér's V), one-way ANOVA (η²), Kruskal–Wallis, Mann–Whitney U (exact for small samples, rank-biserial r), Wilcoxon signed-rank (exact / permutation / normal), Pearson and Spearman correlation (Fisher-z CI) and Fisher's exact test. Two-sided or one-sided alternatives. Returns JSON with: test, name, statistic, statisticName, pValue, rateA, rateB, difference. Price: $0.003 USDC per successful call (x402, Base or Solana). Same tool over HTTPS: POST https://scorptech.it.com/api/x402/v1/hypothesis-test

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": {
      "test": "<test>"
    },
    "name": "hypothesis_test"
  }
}

Input Schema

NameRequiredDescriptionDefault
aNoSample A (or x for correlations, or the differences for wilcoxon)
bNoSample B (or y)
muNoHypothesised mean (one-sample t)
p0No
testYes
alphaNo
tableNoContingency table (rows of counts) for chi-square-independence / fisher-exact (2×2)
yatesNochi-square-independence: Yates continuity correction for 2×2 tables
groupsNoanova / kruskal-wallis: array of samples, or an object of named samples
trialsNo
trialsANo
trialsBNo
expectedNochi-square-gof expected counts or proportions (default: uniform)
observedNochi-square-gof observed counts
successesNo
successesANo
successesBNo
alternativeNotwo-sided
equalVarianceNot-test: Student (true) instead of Welch (false)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive, open-world behavior, so the safety profile is covered. The description adds genuinely useful context beyond that: results match scipy.stats, the verdict is plain-English, and there is a per-call charge ($0.003 USDC via x402 on Base or Solana) plus an HTTPS alternative endpoint. It does not mention error behavior for mismatched parameter sets (e.g. supplying a/b for an anova test), which is a real gap for a 14-branch dispatcher.

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?

Front-loaded with the value proposition and return fields, which is good, but the middle is a long run-on enumeration of test families with parenthetical statistics, and the pricing/URL tail is appended without separation. Most content earns its place, but the single-paragraph packing hurts scannability.

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 tool with 19 parameters, 14 test modes, no output schema, and near-zero sibling differentiation, the description does substantial work: it lists the supported tests and explicitly names the returned JSON fields (test, name, statistic, pValue, rateA, rateB, difference). The missing piece is per-test parameter requirements, which would make it fully self-sufficient.

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 only 47% across 19 parameters, so the description needs to compensate and it partly does — it names pooled z, lift, CI of the difference, Yates for 2×2, Cramér's V, η², rank-biserial r, and exact/permutation/normal variants for Wilcoxon. However it never states which parameters each test actually requires (a, b, groups, table, trialsA/trialsB, successesA/successesB, observed/expected), which is the main ambiguity for a 19-parameter dispatcher. Marginal help beyond the schema.

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?

States a specific verb and resource ('Run a statistical significance test') and then enumerates the exact test families supported (Welch/Student t, paired t, proportion z, A/B, chi-square, ANOVA, Kruskal–Wallis, Mann–Whitney, Wilcoxon, Pearson/Spearman, Fisher exact). An agent can tell unambiguously what this tool computes versus a generic regex or arithmetic sibling.

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

Usage Guidelines3/5

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

Usage is implied by the test list — the agent infers that 'ab-test' is used for conversion-rate comparisons — but there is no explicit when-to-use / when-not-to-use guidance or statement about choosing between, say, t-test versus mann-whitney. The mapping from test family to required parameters is left largely to the schema.

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