← marginal docs

generate_variants

MCP tool · subject line generation for email A/B tests

generate_variants prepares subject line options for an email marketing experiment. An AI agent can start from a campaign brief, expand seed lines, or pass finished copy straight through — marginal tags each variant for later performance analysis.

When to use it

Example (brief)

{
  "brief": {
    "product": "Linen throw blanket",
    "audience": "Cart abandoners from the last 7 days",
    "goal": "Recover checkout",
    "brand_voice_notes": "Warm, premium, not pushy"
  },
  "count": 3
}

Example (your copy)

{
  "source_variants": ["Your cart is saved", "Still thinking about it?"],
  "count": 2
}

Next step

Pass returned variants to launch_test to send a split test. See the full agent workflow.