ab_test
A/B Test Significance (two-proportion z-test) — Conversion rates, lift, z-score, p-value and significance for two variants.
This record as markdown: /tools/com-wingmanprotocol-agent-gateway/ab-test.md
What ab_test does on Gateway
AI agents call ab_test to retrieve information from Gateway without modifying anything. It is typically the context-gathering step in research, monitoring, and reporting workflows, before the agent takes action elsewhere.
| Parameter | Type | Required | Description |
|---|---|---|---|
confidence | number | — | Confidence level 0..1 (default 0.95) |
visitors_a | number | Yes | Visitors in variant A |
visitors_b | number | Yes | Visitors in variant B |
conversions_a | number | Yes | Conversions in variant A |
conversions_b | number | Yes | Conversions in variant B |
Parameters from the server's own tool schema.
Why ab_test is rated Low
This is a pure statistical calculator that retrieves/analyzes provided conversion rate data and returns computed results (lift, z-score, p-value). It has no side effects, does not persist data, does not execute code or commands, and does not modify or delete anything. It fits squarely in the Read category as an analytical query tool.
From the tool's definition Tool performs statistical analysis (two-proportion z-test) to calculate z-score, p-value, and significance. It computes metrics from input data without modifying, creating, deleting, or executing external operations.
Attacks that exploit this kind of access
The rule that runs ab_test safely
PolicyLayer is an MCP gateway: it sits between your AI agents and Gateway, and checks every tool call against a rule you set before the call runs. Nothing changes on the server itself. For ab_test, this is the rule to start with:
ab_test is read-only, so it stays allowed. Everything else on the server is denied unless you say otherwise.
The button opens the PolicyLayer dashboard: create your workspace, connect Gateway, apply this rule, and every ab_test call is checked against it from then on.
Questions about ab_test
A/B Test Significance (two-proportion z-test) — Conversion rates, lift, z-score, p-value and significance for two variants. It is categorised as a Read tool in the Gateway MCP Server, which means it retrieves data without modifying state.
ab_test accepts 5 parameters: confidence, visitors_a, visitors_b, conversions_a, conversions_b. Required: visitors_a, visitors_b, conversions_a, conversions_b. The full parameter table on this page comes from the server's own tool schema.
Register the Gateway MCP server in PolicyLayer and add a rule for ab_test: allow, deny, rate-limit, or require approval. Point your MCP client at the PolicyLayer proxy URL and the rule is enforced on every call, before it reaches Gateway. Nothing to install.
ab_test is a Read tool with low risk. Read-only tools are generally safe to allow by default.
Yes. Add a rate_limit block to the ab_test rule in your PolicyLayer policy. For example, setting max: 10 and window: 60 limits the tool to 10 calls per minute. Rate limits are tracked per agent session and reset automatically.
Set action: deny in the PolicyLayer policy for ab_test. The AI agent will receive a policy violation error and cannot call the tool. You can also include a reason field to explain why the tool is blocked.
ab_test is provided by the Gateway MCP server (https://wingmanprotocol.com/mcp). PolicyLayer sits as a proxy in front of this server to enforce policies before tool calls reach the server.
More on Gateway, and thousands of servers like it.
This server
Across the catalogue