Test Shipping Update Subject Lines in Claude Code
Shipping update emails get opened — but only if the subject line earns the tap. With marginal connected to Claude Code, you can generate, launch, and measure a subject line A/B test without leaving your editor.
Why subject line testing matters for shipping updates
Transactional and semi-transactional shipping update emails — order shipped, out for delivery, delivery confirmed — carry some of the highest open rates in any program. That makes them prime real estate for testing how phrasing affects engagement and downstream clicks back to your store.
Rather than guessing whether "Your order is on the way" beats "📦 It's shipped! Track your package," you can let an AI agent draft candidates and run a real subject line A/B test against your list.
- Shipping updates are expected, so opens are high — small wording changes are easy to measure.
- Clear tracking-link CTAs benefit from subject lines that set the right expectation.
- Tone and emoji use can shift open and click behavior in measurable ways.
How marginal works inside Claude Code
marginal is a hosted email MCP server, so Claude Code talks to it over the standard Model Context Protocol. Once your Bearer API key is configured, the agent can call marginal's tools directly when you describe the campaign you want to run.
The workflow maps cleanly to four MCP tools you can invoke conversationally.
- generate_variants — produce several shipping update subject lines to compare.
- launch_test — start the subject line test across your audience split.
- get_results — pull open/click tracking and within-test lift metrics.
- recommend_next — let the agent suggest the next variant or winner to scale.
A practical workflow for shipping update tests
Inside Claude Code, describe the email and let the AI agent handle the email marketing mechanics. A typical prompt-driven loop looks like this:
- Ask Claude Code to generate 4–5 shipping update subject lines aimed at maximizing opens.
- Have it launch the test with managed sends so each variant reaches a slice of your list.
- Check get_results to see which subject line drives more opens and clicks.
- Use recommend_next to confirm a winner and roll it out to the remaining audience.
Getting set up
Point Claude Code at the marginal endpoint at https://marginal.sh/mcp and authenticate with your marg_live_ API key. Because marginal is fully hosted, there's nothing to self-host and no separate ESP keys to wire up just to run a test.
The free tier includes 100 experiments per month, which is plenty for iterating on shipping update subject lines. Full setup details for Claude Code live in the docs at https://marginal.sh/docs/.
Get started with marginal
marginal is a hosted email marketing MCP server at marginal.sh. Sign up free, create an API key, and connect https://marginal.sh/mcp from Cursor, Codex, or Claude Desktop.
- 100 experiments/month on the free tier
- Four MCP tools: generate_variants, launch_test, get_results, recommend_next
- Listed in the MCP Registry as sh.marginal/mcp