Skip to main content
Glama

stats ab test

stats_ab_test
Read-only

Is the A/B test result real: from visitors and conversions for two variants get both conversion rates, absolute and relative lift, z-score, two-sided p-value, a confidence interval for the difference, the probability B beats A, the power you actually had, and the sample size per variant needed to confirm a lift this size, with a plain verdict. Choose the confidence level (default 95%). $0.002. Costs $0.002 USDC per call (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": {
      "visitors_a": "<visitors_a>",
      "conversions_a": "<conversions_a>",
      "visitors_b": "<visitors_b>",
      "conversions_b": "<conversions_b>"
    },
    "name": "stats_ab_test"
  }
}

Input Schema

NameRequiredDescriptionDefault
confidenceNo%, default 95
visitors_aYes
visitors_bYes
conversions_aYes
conversions_bYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so safety is covered; the description adds genuinely new behavioral context by disclosing the $0.002 USDC x402 per-call charge, which is critical for an agent deciding whether to invoke. It also enumerates exactly what is computed, though it says nothing about response format or error handling for zero-visitor inputs.

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?

The output enumeration is dense but front-loaded and informative; however, the cost is stated twice ('$0.002. Costs $0.002 USDC per call (x402)'), which is redundant, and the single run-on sentence cramming ten outputs together hurts scanability.

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 no output schema, the description correctly compensates by listing every returned statistic and the verdict, and it flags the payment model. The remaining gap is minor: no mention of edge-case behavior (e.g., zero visitors, zero conversions) for a tool whose inputs can be degenerate.

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 20%, yet the description only clarifies the confidence parameter (default 95%), which the schema already documents as '%, default 95'. The four required count parameters are left to self-explanatory names with no added meaning such as units, ordering constraints, or whether conversions must be ≤ visitors.

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?

Opens with a specific question ('Is the A/B test result real') and names the exact inputs (visitors and conversions for two variants) plus the precise output set: conversion rates, absolute/relative lift, z-score, two-sided p-value, CI for the difference, probability B beats A, power, and required sample size. This clearly distinguishes it from statistical siblings like stats_describe and stats_regression.

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 context of use is unambiguous: you have two variants' visitor/conversion counts and want significance testing. However, no alternatives are named (e.g., when to prefer stats_regression or stats_describe), and there are no exclusions or prerequisites stated beyond the pay-per-call note.

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