Skip to main content
Glama

A/B test: significance, interval and sample size

evaluate_ab_test
Read-onlyIdempotent

Fixed-horizon statistics for a two-group conversion A/B test from counts: rates, absolute and relative difference (variant minus control), two-sided pooled two-proportion z-test p-value, Newcombe hybrid score (Wilson) confidence interval for the difference, and the sample size per group for a stated baseline rate, minimum detectable effect, alpha and power. Assumes independent groups evaluated once; no correction for peeking, sequential or multiple testing; no exact test; not a business recommendation.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "evaluate_ab_test"
  }
}

Input Schema

NameRequiredDescriptionDefault
observedNo
planningNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior5/5

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

Beyond the read-only and idempotent annotations, the description adds important behavioral context: the test is fixed-horizon, assumes independent groups evaluated once, has no correction for peeking or multiple testing, uses no exact test, and is not a business recommendation. These are exactly the caveats an agent needs before choosing and interpreting the tool.

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 front-loaded with the fixed-horizon scope and then lists outputs and assumptions compactly. It is dense but every sentence carries useful information, with no filler or repetition.

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 statistical tool with no output schema, the description does a strong job explaining expected outputs, assumptions, and exclusions. The main remaining gap is that it does not specify how the optional observed and planning parameter groups may be combined or what happens when only one is provided.

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?

The schema already documents most leaf fields such as visitors, conversions, confidence level, alpha, baseline rate, and minimum detectable effect. The description adds useful directional meaning with "variant minus control" and explains sample-size inputs conceptually, but it does not clarify how the top-level observed and planning objects map to outputs or whether either can be supplied alone.

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

Purpose4/5

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

The description clearly states that this is fixed-horizon statistics for a two-group conversion A/B test from counts, and it enumerates the main outputs: rates, difference, p-value, confidence interval, and sample size. It does not explicitly differentiate itself from sibling tools, but the purpose is otherwise specific and unambiguous.

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 clear usage boundaries by saying the test is fixed-horizon, assumes independent groups evaluated once, and excludes peeking, sequential or multiple testing, exact tests, and business recommendations. It does not name alternative tools, but the when-not guidance is explicit.

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