Skip to main content
Glama

Diogenes Context Compression, Code Patching & Deterministic Solver MCP

Welch's t-Test, Two-Proportion z-Test & Bayesian A/B Eval Judge

evaluate_ab_statistical_significance
Read-onlyIdempotent

Computes Welch's two-sample t-test or two-proportion z-test, returning two-tailed p-values, Cohen's d effect size, relative lift %, and Bayesian P(Treatment > Control). Use when determining whether a prompt change, model benchmark, or A/B experiment produced a statistically significant improvement; for evaluating single algebraic formulas or NPV/IRR cashflows, use evaluate_deterministic_math instead. Read-only edge call (32 KB, 60 RPM): accepts 'control_json' ('treatment_json' defaults to 'standard'), supports '?demo=true' or L402 (15 sats), and returns HTTP 400 if invalid.

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": {
      "control_json": "<control_json>",
      "treatment_json": "<treatment_json>"
    },
    "name": "evaluate_ab_statistical_significance"
  }
}

Input Schema

NameRequiredDescriptionDefault
control_jsonYesJSON string or object for the baseline control arm (e.g. '{"conversions":142,"total":1000}' or '{"samples":[12,15,14]}').
treatment_jsonYesJSON string or object for the candidate treatment arm (e.g. '{"conversions":186,"total":1000}').
significance_levelNoType-I error alpha threshold for statistical significance; defaults to 'alpha_0_05' when omitted.

Output Schema

NameRequiredDescriptionDefault
p_valueYesTwo-tailed frequentist p-value.
verdictYesExperiment decision ('SIGNIFICANT_TREATMENT_WIN', 'SIGNIFICANT_CONTROL_WIN', or 'INCONCLUSIVE_UNDERPOWERED').
test_typeYesStatistical test applied ('welch_two_sample_t_test' or 'two_proportion_z_test_and_bayesian').
relative_lift_pctYesPercentage lift of treatment over control.
bayesian_prob_treatment_superiorYesPosterior probability P(Treatment > Control) from 0.0 to 1.0.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, and closed-world, so safety is covered. The description still adds real operational context: a 32 KB edge call, 60 RPM rate limit, '?demo=true' or L402 payment at 15 sats, and HTTP 400 on invalid input. Return format is left to the output schema, which exists, so the remaining gap is minor.

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?

Dense but front-loaded: the operation and outputs come first, then the usage routing, then the operational constraints. Every clause carries information, though the parenthetical parameter/query string snippets are cramped and contribute to the misleading parameter claims.

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?

With an output schema present and rich annotations, the description covers purpose, alternatives, rate limits, payment, and error behavior. The only shortfall is that the treatment_json/demo clauses introduce ambiguity an agent cannot resolve from the schema, which is required-but-required contradiction territory.

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?

Schema coverage is 100%, so the schema already documents all three parameters and their enum. Worse, the description introduces misleading parameter claims: 'treatment_json defaults to standard' contradicts the schema, where treatment_json is required with no default, and '?demo=true' is a query parameter that does not appear in the input schema at all.

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 (computes) and specific statistical resources (Welch's two-sample t-test, two-proportion z-test), and enumerates the concrete outputs (two-tailed p-values, Cohen's d, relative lift, Bayesian P(Treatment > Control)). This is far beyond a restatement of the name and lets an agent know exactly what comes back.

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?

Explicitly names the trigger scenarios (prompt change, model benchmark, A/B experiment improvement) and explicitly routes the wrong case to a named alternative: 'for evaluating single algebraic formulas or NPV/IRR cashflows, use evaluate_deterministic_math instead'. That is a textbook when/when-not/alternative statement.

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