Skip to main content
Glama

Add an A/B variant

add_variant

Add the next A/B variant (B, C or D; max 4) to a step. Fields you omit are copied from variant A, so sending only subject tests a subject line. Prospects are split between active variants at send time; compare them with get_campaign_stats.

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": {
      "id": "<id>",
      "step_id": "<step_id>"
    },
    "name": "add_variant"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesCampaign id (uuid).
bodyNo
activeNo
step_idYesStep id from list_steps.
subjectNo
content_formatNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare this is a non-readOnly, non-idempotent, non-destructive write, so the safety profile is covered. The description adds genuinely important behavior beyond that: the maximum of four variants, the default inheritance of omitted fields from variant A, and the fact that prospects are split across active variants at send time. Those are non-obvious mutation semantics an agent would otherwise get wrong.

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?

Three sentences, front-loaded with the action and its cap, followed by the omission rule and the distribution/stats note. Every sentence carries information an agent needs, with no restatement of the name or schema fields.

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 and a six-parameter mutation tool, the description covers the essential unknowns: variant limits, default field inheritance, and how variants share traffic. It is slightly incomplete on what happens when the four-variant cap is already reached and on permission requirements.

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 only 33% and only id and step_id carry inline descriptions, so the description must compensate. The inheritance rule ("fields you omit are copied from variant A") effectively defines how every optional field behaves when absent and is demonstrated with the subject-only case. It does not explain the active flag or the plain/html content_format enum, leaving one meaningful gap.

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 uses a specific verb and resource, "Add the next A/B variant (B, C or D; max 4) to a step," and clarifies what it is not: it appends a new variant rather than editing one. The naming of allowed variant letters and the four-variant cap lets an agent distinguish it from update_variant and delete_variant without opening a schema.

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?

It gives concrete usage guidance: "sending only subject tests a subject line," which tells the agent how to call it with minimal input, and it points to get_campaign_stats for comparison after sending. It lacks an explicit when-not-to-use statement (for example, use update_variant to change an existing variant), which keeps it short of a 5.

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.