rotate-creative

An ad-management command for finding tired ads on Meta (Facebook and Instagram) and Google Ads, pausing them, and preparing new versions.

In plain words
What is it for?
Use it to check ad performance, identify creative fatigue, pause qualifying ads, and create two revised variants using a small copy change, a new message, or a different format.
Why use it?
It helps replace ads whose results are falling without pausing ads that lack enough data. New versions begin paused so someone can review them first.

Command

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/markifact/markifact-mcp/rotate-creative
Clone the repo
git clone --depth 1 https://github.com/markifact/markifact-mcp
Per session 53 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,642 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00053 $0.01642
Opus 5 $0.00026 $0.00821
Sonnet 5 $0.00011 $0.00328
Haiku 4.5 $0.00005 $0.00164

Measured 2d ago against content hash 6b315036f533, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

rotate-creative scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

commands/rotate-creative.md · 99 lines

How it starts

The opening of the file, as written. The whole thing — 99 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Goal

Identify creative that's stopped performing, pause it, and ship variants. Preserve learning where possible. Always start new ads paused for review.

Inputs to confirm (batch)

  1. Account name (substring) — required.
  2. Platform — Meta or Google Ads (or both, if user says "all my ads") — required.
  3. Scope — campaign / ad set / ad group, or "all active" — required.
  4. Lookback window — default 30 days.
  5. Fatigue thresholds — defaults below; allow override:
    • Meta: frequency > 3.5 AND CTR has dropped > 25% vs the prior period of equal length.
    • Google: impressions stagnant or down > 20% WoW with CTR drop > 20%, OR RSA ad strength Poor / Average.
  6. Minimum sample size before pausing — default ≥ 100 clicks AND ≥ 7 days of data. Refuse to pause anything below this.
  7. Variant strategy — tweak (small copy/headline change), angle (new hook/benefit), or format (e.g. image → video). Default angle.
  8. How many variants per fatigued ad — default 2.

Workflow

Meta path

  1. Discover ops: meta_ads_select_accounts, meta_ads_list_ads, meta_ads_get_report, meta_ads_list_report_fields, meta_ads_update_ad_status, meta_ads_duplicate_ad, meta_ads_get_ad_creative, meta_ads_create_ad_creative, meta_ads_replace_ad_creative, meta_ads_create_single_image_ad / _carousel_ad / _video_ad / _flexible_ad.
  2. Inspect.
  3. Resolve account (substring).
  4. Pull ad-level report for the scope, current period vs prior period of equal length. Required fields: spend, impressions, clicks, CTR, conversions, frequency, ad_id, ad_name, adset_id, campaign_id.
  5. Apply thresholds → list of fatigued ads. Drop anything under the sample-size floor.
  6. For each fatigued ad, build a variant:
    • tweakmeta_ads_get_ad_creative → modify primary text / headline → meta_ads_create_ad_creativemeta_ads_duplicate_ad (or create a fresh ad in the same ad set with the new creative) — start PAUSED.
    • angle → generate a new creative concept (different hook, benefit, or pain point) → use meta_ads_create_single_image_ad or _video_ad (etc.) with status=PAUSED in the same ad set.
    • format → call the matching format's create op with the new asset.
  7. Show user a preview: each fatigued ad → its proposed variant(s), reasoning. Wait for approval.
  8. Execute: a. Create the variants (PAUSED). b. Pause the originals via meta_ads_update_ad_status.
  9. Confirm counts.

Read the full file on GitHub · 99 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 99 lines · 53 tokens per session scan A 6b315036f533

Subscribe to this mod's changes

rotate-creative is a command published in the GitHub repository markifact/markifact-mcp (48 stars, last pushed 14d ago), licensed MIT. It adds 53 tokens to every session and 1,642 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.