Your agent writes fifty drafts. Preflight picks which one ships.

Preflight decide picks the real winner 7 times out of 10, 14% more often than Claude Fable 5.2. 72.3% (402/556) against 63.3% (352/556) on 139 real Meta image ad pairs.

One endpoint, 3 tools, private to your account. evolve writes stronger messaging or image briefs and ranks them. decide compares versions side by side and returns a prediction_id. report grades real outcomes and rebates 100% of verified requests.

# 1. Install the Agent Skills (Claude Code, Cursor, Codex):
npx skills add MikeKovetsky/preflight

# 2. Connect the hosted MCP server (OAuth 2.1, free $10 balance):
claude mcp add --transport http preflight https://preflight.tech/api/mcp

# Optional: static API key instead of OAuth:
# claude mcp add --transport http preflight https://preflight.tech/api/mcp --header "Authorization: Bearer $PREFLIGHT_API_KEY"

preflight-mcp v0.16.0 · Streamable HTTP · OAuth 2.1 & Bearer keys · Claude, ChatGPT, Cursor, Codex & CI

Write new versions with evolve

Picking benchmarked · written copy not measured with real people yet
Request · curl
curl -s https://preflight.tech/api/mcp \
  -H "Authorization: Bearer $PREFLIGHT_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -d '{
    "jsonrpc": "2.0", "id": 1, "method": "tools/call",
    "params": {
      "name": "evolve",
      "arguments": {
        "surface": "ad_copy",
        "audience": "US B2B finance leads at 50-500 person companies",
        "baseline_assets": ["Close your books in 3 days, not 3 weeks"],
        "verified_facts": ["Month-end close in 3 days"]
      }
    }
  }'

you send

Variants to beat in baseline_assets, who it is for, and optional verified_facts / banned_claims.

1 to 15 variants

you get

Ranked final_winners and a prediction_id receipt. Winner must beat baseline in a fresh 4-answer check (evolve benchmark).

~$0.20 per loop

Try it without a key

The free report tool, on the live endpoint
Request
Responsenot run yet
Press Run to call the live endpoint.

What decide returns

Side-by-side forced choice in both orders, 4 checks on the top pair

verdict_status

Preflight compares two variants side by side, in both orders, and forces a choice. You get a ranked list, verdict_status (DECISIVE_WIN when all 4 answers on the top two agree, TIED_LOW_SIGNAL when it is too close to call), the reason and suggested changes.

2+ variants (images, URLs, or text)

prediction_id

Returned on every decide and evolve run with pre-registered variant hashes. Pass it back to report after your live test settles to grade accuracy and claim a 100% credit rebate.

100% rebate via report

3 tools

Generated from the live tools/list

decide

Compare 2 to N variants side by side and pick the likely winner. Returns a prediction_id receipt for outcome rebates.

~$0.07 per request
11 parameters

Pick the likely winner among 2..N user-facing variants using blind forced-choice pairwise comparison. Two variants are shown side by side in both presentation orders, with 4 answers on the deciding pair. verdict_status='DECISIVE_WIN' only when all 4 answers agree, else TIED_LOW_SIGNAL (too close to call). Returns ranked items (rank, hybrid_score win share, metadata.judge), a prediction_id receipt for report, and when feedback=true (default), meta.judge.why_winner (up to 3 reasons the winner leads) plus next_mutations (up to 3 concrete changes to strengthen the runner-up). Works across still image ads, landing page / UI / paywall / pricing screenshots, live public URLs (fetch_url=true), emails, headlines, CTAs, and product concepts. Passing a single variant returns an error (pass 2+ variants to compare, or call evolve to write and compare alternatives). Video variants are unsupported and return an explicit error.

  • variants *object | string[]2..N variants to compare (one variant returns an error; call evolve to generate alternatives from 1 baseline). Pass plain strings for fast copy/CTA comparisons, or objects: {id, label?, is_baseline?, media=[{url_or_path, role?}] or [url], url?, text?, headline?, subheadline?, body?, cta?, description?, price?, problem?, solution?, current_alternative?, proof?, source_ad?, channel?, format?, device?, metadata?}.
  • audiencestringTarget user/buyer description. Leave empty when the user has not said who their buyers are: Preflight then infers them from audience_url, a variant url, or the variant copy (one small extra model call) and returns them in meta.audience with meta.audience_inferred_from.
  • audience_urlstringOptional public https:// website of the product. When audience is empty, Preflight reads this page (SSRF-guarded) to infer who the buyers are. Ignored when audience or context.brain.audience is set.
  • goalstringDecision goal grounding the comparison and surface inference (e.g. 'maximize free-trial signups', 'pick hero brand identity', 'cut checkout drop-off').
  • surface"auto" | "ui" | "cta" | "pricing" | "paywall" | "onboarding" | "landing_page" | "landing_page_hero" | "brand" | "ad" | "ad_copy" | "google_rsa" | "modal" | "email" | "concept" · default "auto"User-facing surface preset (default: 'auto'). Selects the benchmarked prompt shape for ads, pages/screens, or copy. Aliases (landing_page_hero, ad_copy, google_rsa, modal, email) are normalized automatically.
  • search_termsstring[]Optional real search queries (search_term_view) grounding Google Search RSA ads or Query->Ad->LP message match.
  • contextobject | stringOptional fluid product and buyer context (identical contract across decide and evolve). Accepts a plain text string (brief, product notes, landing page copy, customer reviews), a bare https:// website URL, a bare BusinessBrain JSON (projected dict or raw nodes graph), or any loose dict ({brain?, buyer_voice?, economics?, ...}). Preflight automatically distills long or messy context into a clean, neutral 1-2 line grounding for the judge (stripping marketing opinions) and echoes what it understood in meta.context_used.
  • past_resultsobject[]Optional real past A/B or ad test pairs from the same audience ({winner, loser, metric?, winner_rate?, loser_rate?, note?}; up to 20). Calibrates the judge identically to evolve.
  • fetch_urlboolean · default trueIf true (default), SSRF-safely fetches live HTML copy when URL-only variants are supplied.
  • feedbackboolean · default trueIf true (default), runs one extra call showing the top two variants and returns meta.judge.why_winner (up to 3 reasons the winner leads) and next_mutations (up to 3 changes that would make the runner-up stronger). Set false to skip feedback.
  • recommendbooleanDeprecated: the old name of feedback, still accepted. False on either one skips the feedback.

evolve

Write stronger messaging or image briefs and rank them. Returns a prediction_id receipt; real-traffic lift is still being measured.

~$0.20 per loop
24 parameters

Natural selection for copy and images, run before launch. For copy: runs a full multi-round write, lint, and rank loop in one call (decoupled unanchored fresh angles plus contrastive surgical edits, Challengers-vs-Leaders BTL ranking, Top-3 4-answer finalist shootout, and fresh 4-answer exit check). For images (cooperative mode, auto-triggered whenever any item in baseline_assets or candidates includes media, or when previous_state resumes an image run): Preflight does not generate images itself. Instead, each call executes one stateless round: it compares your rendered images visually head-to-head with the benchmarked vision judge and returns awaiting_render=true, render-ready next_briefs (visual prompt, linted on_image_text/copy, parent_id for edits), and state. Render next_briefs with your own image generator or design tool, then call evolve again with candidates + previous_state=state until awaiting_render is false (or pass finalize=true on your final batch). Candidates are compared with the direct forced-choice judge (both presentation orders) and the final winner must beat the baseline in a fresh 4-answer check, or overfit_warning is set; pass real past_results from the same audience when available to calibrate both writer and judge. Validate the top 2-3 diverse variants from final_winners in a live test. Supports surfaces: ui, cta, onboarding, paywall, pricing, modal, landing_page, landing_page_hero, brand, ad, ad_copy, google_rsa, concept.

  • baseline_assetsobject | string[] · default []1-15 baseline variants to beat (plain strings for copy, or objects {id?, media?, headline?, subheadline?, primary_text?, description?, cta?, on_image_text?, angle?}). Include media (e.g. ['https://...']) to trigger cooperative image evolution. May be empty on follow-up image rounds when previous_state is passed.
  • surface"ui" | "cta" | "onboarding" | "paywall" | "pricing" | "modal" | "landing_page" | "landing_page_hero" | "brand" | "ad" | "ad_copy" | "google_rsa" | "concept" · default "ui"User-facing surface to evolve (default: 'ui'). Use 'ad' for image ads and 'landing_page'/'ui' for page/app screens.
  • audiencestringTarget user/buyer description including market, language, and currency (optional if context or audience_url is set).
  • audience_urlstringOptional website URL for the product being evolved. When audience and context are empty, Preflight reads this page to infer the target buyers and extract neutral product facts identically to decide.
  • goalstringTarget user action or conversion goal (e.g. 'increase free-trial starts', 'reduce paywall bounce').
  • contextobject | stringOptional fluid product and buyer context (identical contract across decide and evolve). Accepts a plain text string (brief, product notes, landing page copy, customer reviews), a bare https:// website URL, a bare BusinessBrain JSON (projected dict or raw nodes graph), or any loose dict ({brain?, buyer_voice?, economics?, ...}). Preflight compiles it once: the judge gets the exact same clean, neutral 1-2 line grounding as decide (stripping marketing opinions), while the writer and compliance gates automatically extract all concrete facts, offers, numbers, buyer quotes, and banned claims. Returned in meta.context_used.
  • channelstringOptional channel ('web', 'ios', 'android', 'google_search', 'meta', 'tiktok').
  • max_charsintegerOptional strict character-length gate enforced at $0 before scoring (auto 32 for cta, 30 for google_rsa).
  • search_termsstring[]Optional real top 5-10 NON-BRAND search_term_view queries for google_rsa or hero message match.
  • keep_assetsstring[]Existing live winners kept in rotation; evolved winners are guaranteed NOT to duplicate them.
  • verified_factsstring[]Approved prices, stats, limits, or guarantees allowed in mutations (prevents invented claims).
  • banned_claimsstring[]Hard-forbidden claims/phrases rejected deterministically at $0 before scoring.
  • past_resultsobject[]Optional real past A/B or ad test pairs from the same audience ({winner, loser, metric?, winner_rate?, loser_rate?, note?}; up to 20). Calibrates both the writer and judge on what this audience actually responds to; facts and wording from past tests are never reused.
  • candidatesobject[]Optional newly rendered image candidates for cooperative image evolution, matching IDs from the previous call's next_briefs ({id, media: ['https://...'], on_image_text?, headline?, primary_text?, cta?, angle?, origin?, parent_id?}). Omitted copy/angle metadata is automatically restored from previous_state by matching id.
  • previous_stateobjectStateless state object returned by the previous cooperative image evolve call. Pass it back along with newly rendered candidates so Preflight continues round tracking, carried leaders, losing angles, and cumulative pairwise votes without re-judging prior pairs.
  • finalizeboolean · default falseFor cooperative image evolution: set true on your final rendered batch to skip proposing more next_briefs, run the Top-3 finalist shootout and fresh 4-answer exit check against the baseline, and return final winners (awaiting_render=false).
  • strict_factsboolean · default trueWhen true (default) and verified_facts is non-empty, reject candidates introducing ungrounded numeric stats/prices/years.
  • top_kinteger · default 4Number of diverse winning replacements to return (default: 4).
  • candidates_per_roundinteger · default 6Mutation candidates scored per round (default: 6).
  • max_roundsintegerRefinement rounds. Leave it out (recommended): evolve then runs up to 3 rounds and stops as soon as a round leaves the top pick unchanged. Pass a number to run up to that many rounds instead; it still stops early on plateau or budget cap.
  • max_budget_usdnumber · default 5Compute-credit budget cap across rounds in USD (default: 5.00; stops before starting a new round at cap).
  • max_token_overlapnumber · default 0.6Max pairwise Jaccard token overlap between selected winners and keep_assets (default: 0.60).
  • max_stat_repeatsinteger · default 1Max times any single numeric proof stat may repeat across final Top-K (default: 1; 0=unlimited).
  • explore_rationumber · default 1Share of each round's new candidates that are fresh, orthogonal angles; the rest are small surgical edits, with at least one of each. Default 1.0 (wide): small rewrites rarely differ in real results. Lower it for more small edits.

report

Submit real post-launch results for a prediction_id to grade accuracy and earn a 100% credit rebate (or grade a stateless evaluation at $0).

Free + 100% rebate
10 parameters

Submit real post-launch results ($0, zero-LLM) for a prior decide or evolve prediction_id to grade accuracy, verify same-era outcome hygiene, and earn an automatic 100% credit rebate when supplied variants match the pre-registered SHA-256 hashes (up to the monthly cap). For rebate eligibility, each variant row in outcomes must include exposure meeting at least one minimum (impressions >= 200, clicks >= 20, conversions >= 5, spend >= 10, or sample_size >= 100) and non-zero metric spread. Alternatively, omit prediction_id and pass evaluation for pure stateless NumPy grading.

  • outcomes *object[]Real performance rows matching variant IDs: {id, impressions?, clicks?, conversions?, spend?, sample_size?, cpa?, ctr?, cvr?, roas?, metric_value?, started_at?, ended_at?}. Include exposure (impressions >= 200, clicks >= 20, conversions >= 5, spend >= 10, or sample_size >= 100) per row to unlock the 100% rebate.
  • prediction_idstringPre-registered receipt ID returned by a prior decide or evolve request. Required for automatic 100% credit rebates and account run-history grading.
  • metric_namestring · default "cpa"Metric to grade against: 'cpa', 'cpl', 'cpi', 'ctr', 'cvr', 'roas', 'cpm', or 'metric_value'.
  • higher_is_betterbooleanOverride directionality (auto-inferred: false for cpa/cpl/cpi/cpm/cpc, true for ctr/cvr/roas/metric_value).
  • started_atstringOptional ISO-8601 start timestamp for the live test window (used for same-era hygiene checks).
  • ended_atstringOptional ISO-8601 end timestamp for the live test window.
  • variantsobject | string[]Original tested variants matching the prediction_id. Verified against the pre-registered SHA-256 hashes to unlock the 100% credit rebate and opt-in to anonymized training data.
  • publicboolean · default falseOpt in to publish this anonymized test result in Preflight's public benchmark feed (default: false).
  • public_labelstringOptional short anonymized label shown when public=true (e.g. 'SaaS pricing page hero').
  • evaluationobjectOptional stateless EvaluationResult from decide when grading locally without a prediction_id.

Start building

Pay per request at cost (~$0.07/compare), 3× monthly plans from $20/mo, or 100% rebates via report