Skip to main content
Glama

Ab Test

ab_test
Read-onlyIdempotent

Run a two-proportion A/B significance test with a plain-language verdict. FREE.

Typical input {"conversions_a": 120, "visitors_a": 2400, "conversions_b": 156, "visitors_b": 2380} returns {"rate_a_pct": 5.0, "rate_b_pct": 6.55, "relative_lift_pct": 31.1, "z_score": ..., "p_value": ..., "significant_at_95": true, "verdict": "B beats A — statistically significant"}.

Use when exactly two variants each have a trial count and a conversion count. Not for continuous outcomes such as revenue per user, and not for three or more variants. Errors: on invalid, missing, or malformed input this tool never raises a protocol error — it returns {"error": ""} (for example {"error": "need visitors > 0 and 0 <= conversions <= visitors"}). Every call is read-only and idempotent, so after correcting the input it is always safe to retry.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
visitors_aYesVisitors in variant A; must be at least 1.
visitors_bYesVisitors in variant B; must be at least 1.
conversions_aYesConversions in variant A; 0 or more, at most visitors_a.
conversions_bYesConversions in variant B; 0 or more, at most visitors_b.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

TDQS

A4.7/5.0
Behavior4/5

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

Annotations already provide readOnlyHint, idempotentHint, and destructiveHint. The description reinforces these with 'Every call is read-only and idempotent' and adds extra behavioral context: the tool never raises a protocol error on bad input but returns an error object. This gives the agent a clear expectation of the tool's failure mode, which is beyond what annotations alone offer.

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 well-structured: a single-sentence purpose statement, a concise example, usage guidelines, error behavior, and a concluding note on idempotency. Every sentence adds useful information; there is no filler. The most critical information (purpose and when to use) appears first, fitting the front-loading principle.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's moderate complexity (statistical test with four integer parameters), the description is complete. It covers what the tool does, when to use it (and when not), error handling, and a sample output that illustrates the return fields (rate_pct, p_value, verdict, etc.). The presence of an output schema (per context signals) further reduces risk, but the description alone already paints a clear picture.

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

Parameters4/5

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

The input schema has 100% description coverage, so each parameter is already documented. The description adds value by providing a typical input example (e.g., '{

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 clearly states the tool 'Run a two-proportion A/B significance test with a plain-language verdict.' This is a specific verb (Run) and resource (A/B significance test), with an explicit output characteristic (plain-language verdict). The example input/output further clarifies the goal, and the tool is distinct from sibling tools like cohort_retention or correlation.

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?

The description explicitly states when to use: 'Use when exactly two variants each have a trial count and a conversion count.' It also gives exclusion criteria: 'Not for continuous outcomes such as revenue per user, and not for three or more variants.' Additionally, it explains error-handling behavior ('returns {

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.

TDQS

A4.7/5.0
Disambiguation5/5

Each tool has a clearly distinct purpose: A/B testing, cohort retention, correlation, CSV profiling, trend forecasting, funnel analysis, and growth rates. There is no overlap or ambiguity between them.

Naming Consistency5/5

All tool names follow a consistent lower_snake_case pattern with descriptive names (ab_test, cohort_retention, correlation, csv_profile, forecast_trend, funnel_report, growth_rates). The naming is uniform and predictable.

Tool Count5/5

With 7 tools, the server is well-scoped for a data analysis toolkit. It covers a range of common tasks without being too sparse or overwhelming.

Completeness4/5

The set covers key analysis tasks (A/B test, correlation, cohort retention, funnel, growth, forecast, profiling). However, it lacks a tool for continuous hypothesis testing (e.g., t-test) and basic descriptive statistics, which are minor gaps for the domain.

Resources