Skip to main content
Glama

Persuasion Taxonomy

Plan an A/B test

plan_ab_test
Read-onlyIdempotent

Plan an A/B test for marketing copy. It takes the current conversion rate, the smallest lift worth detecting and the daily traffic, and returns how many visitors each version needs and how many days to run. It also frames the test as two different answers to the same reader question, so the result teaches you something you can reuse, and not just that "B won". It answers questions like how long to run a test, how much traffic it needs, whether a test is worth running, or what to test next.

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": {
      "baseline_conversion_rate_percent": "<baseline_conversion_rate_percent>",
      "minimum_detectable_lift_percent": "<minimum_detectable_lift_percent>",
      "daily_visitors": "<daily_visitors>"
    },
    "name": "plan_ab_test"
  }
}

Input Schema

NameRequiredDescriptionDefault
powerNo
questionNoThe reader question both versions answer, each in its own way.
versionsNoHow many versions, counting the original.
version_aNoHow version A answers it.
version_bNoHow version B answers it.
confidenceNo
daily_visitorsYesHow many visitors a day enter the test, across all versions.
minimum_detectable_lift_percentYesThe smallest relative lift worth detecting, in percent. 20 means a 20% lift, like going from 3% to 3.6%.
baseline_conversion_rate_percentYesThe current conversion rate, in percent, so 3 means 3% and 0.8 means 0.8%.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • removedInput schema / additionalProperties
      Removed value: -false
  2. First observed

TDQS

A4.1/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, non-destructive and closed-world, so the safety profile is covered. The description adds useful behavioral content beyond them by describing the return values (sample size per version, run duration) and the intent of the reader-question framing, though there is no output schema to compare against and no detail on how power/confidence trade off against the estimate.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Purpose and inputs/outputs are front-loaded and every sentence carries substantive information about scope or argument. The framing sentence ("teaches you something you can reuse, and not just that 'B won'") is slightly editorial but still adds rationale for the question/version parameters rather than pure filler.

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 nine-parameter statistical tool with no output schema, the description does the important work: it states what is computed and what is returned. Gaps remain around the omitted optional parameters (power, confidence, versions) and how they change the answer, but the core contract is clear enough to invoke the tool correctly.

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?

Schema coverage is 78%, so the baseline is 3, but the description meaningfully reinforces the three required parameters by name and explains the direction of the calculation. It also explains the conceptual role of the question/version_a/version_b inputs ("two different answers to the same reader question"), which the schema only partially conveys via the enum field description; optional power, confidence and versions parameters get no mention.

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 opens with a specific verb and resource ("Plan an A/B test for marketing copy") and then defines the exact computation: inputs of baseline conversion rate, minimum detectable lift and daily traffic, outputs of visitors per version and days to run. That scope makes it clearly distinct from read_ab_test_result (which reports results) or plan_marketing_copy (which drafts copy) without needing to name them.

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 closing sentence gives concrete situations for use: "how long to run a test, how much traffic it needs, whether a test is worth running, or what to test next." It provides clear context but stops short of explicit exclusions or naming an alternative tool for adjacent tasks such as reading an existing test's outcome.

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.