Skip to main content
Glama

create_ab_test

Create A/B tests for campaigns by defining variants for subject, content, send time, or from name. Send a sample percentage first, then automatically send the winning variant to the rest.

Instructions

Create an A/B test on a campaign with two or more variants. A sample percentage is sent first; the winner goes to the remainder once selected.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
typeYesWhat to test
variantsYesTest variants (2–5)
campaign_idYesCampaign to test
winner_metricNoMetric used to pick the winner (default open_rate)
sample_percentageNoPercent of the audience used for the test (default 20)
Behavior4/5

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

The description discloses a key behavioral trait not captured by annotations: a sample percentage is sent first and the winner is sent to the remainder only after selection. This is useful context for an agent. However, it leaves ambiguous whether winner selection is automatic or requires a separate tool call, which is a minor transparency gap.

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 two sentences, front-loaded with the primary purpose and no redundant filler. Every word contributes to understanding the tool's behavior.

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

Completeness3/5

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

The description covers the core process but does not mention what the tool returns (e.g., an A/B test ID) or explicitly direct the caller to use select_ab_test_winner for winner selection. Given there is no output schema, this missing information leaves some ambiguity about the full workflow and how to proceed after creation.

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?

While parameter schema coverage is 100%, the description adds meaning by explaining the role of sample_percentage and the staged send behavior. It also confirms the variants requirement ('two or more variants'). This goes beyond the basic schema descriptions.

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's function: 'Create an A/B test on a campaign with two or more variants.' It uses a specific verb and resource, and distinguishes it from sibling tools like select_ab_test_winner by focusing on creation rather than winner selection.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies usage through the name and lifecycle mention ('the winner goes to the remainder once selected'), but it does not explicitly state when to use this tool versus alternatives. There is no direct reference to select_ab_test_winner for the subsequent step, leaving the workflow partially implied.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Misar-AI/misarmail-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server