agentleFS
mikusnuzmikusnuz/meta-ads-mcp/templates/CLAUDE.md

meta-ads-mcp / templates

CLAUDE.md82 starsChanged 3 months agoMITView on GitHub

This project uses meta-ads-mcp to manage Facebook & Instagram advertising via MCP tools. Use mcp__meta-ads__<tool> for all Meta advertising operations.

The file

We split this CLAUDE.md into the rules it gives an agent

5 rules. About 0 are common, 1 is distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Use mcp__meta-ads__<tool> for all Meta advertising operations.

    line 7
  2. Distinctive:

    Create two ad sets with different creatives

    line 80
  3. Very specific:

    Use exchange_token to convert short-lived tokens to long-lived ones

    line 98
  4. Very specific:

    Use refresh_token to extend a still-valid long-lived user token through the same documented exchange flow

    line 99
  5. Very specific:

    All monetary values are in the account's currency (check with get_ad_account)

    line 103

≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
CLAUDE.md

Meta Ads Management

This project uses meta-ads-mcp to manage Facebook & Instagram advertising via MCP tools.

Available Tools (135)

Use mcp__meta-ads__<tool> for all Meta advertising operations.

Campaign Lifecycle

ToolWhen to Use
create_campaignCreate a new campaign (choose objective: CONVERSIONS, TRAFFIC, etc.)
create_adsetCreate an ad set within a campaign (targeting, budget, schedule)
create_adCreate an ad within an ad set (links a creative)
create_creativeCreate an ad creative (image, video, carousel, etc.)
update_campaign / update_adset / update_adModify settings, pause/resume
delete_campaign / delete_adset / delete_adRemove entities

Performance & Reporting

ToolWhen to Use
get_account_insightsAccount-level metrics (spend, impressions, clicks, conversions)
get_campaign_insightsCampaign-level breakdown
get_adset_insightsAd set-level breakdown
get_ad_insightsAd-level breakdown
create_async_reportLarge reports that take time to generate
get_async_reportPoll report-run status, then fetch its /insights result edge when complete

Audiences & Targeting

ToolWhen to Use
create_custom_audienceCreate audience from customer data
create_lookalike_audienceCreate lookalike from existing audience
search_targetingFind interests, behaviors, demographics to target
get_reach_estimateEstimate audience size for a targeting spec
add_users_to_audienceAdd users to a custom audience

Media Assets

ToolWhen to Use
upload_imageUpload an ad image from URL
upload_videoUpload an ad video from URL
list_images / list_videosBrowse existing media assets

Automation & Testing

ToolWhen to Use
create_ruleSet up automated rules (pause if CPA > X, etc.)
create_experimentCreate A/B test between ad sets
get_experiment_resultsCheck A/B test outcomes

Catalog & Commerce

ToolWhen to Use
create_catalogCreate a product catalog for dynamic ads
create_feedSet up a product data feed
upload_feedPush product data to a feed

Ad Library & Research

ToolWhen to Use
search_ad_librarySearch public ad data (competitor research)

Common Workflows

Create a full campaign from scratch

  1. create_campaign with objective
  2. upload_image or upload_video for ad media
  3. create_creative with the uploaded media
  4. create_adset with targeting, budget, schedule
  5. create_ad linking the creative to the ad set

Check performance and optimize

  1. get_campaign_insights with date range and breakdowns
  2. Identify underperformers
  3. update_adset to pause low-ROAS ad sets or adjust budgets
  4. create_rule to automate future optimizations

A/B test creatives

  1. Create two ad sets with different creatives
  2. create_experiment to set up the test
  3. get_experiment_results after sufficient data

Build a lookalike audience

  1. create_custom_audience from customer list
  2. add_users_to_audience with hashed emails/phones
  3. create_lookalike_audience from the custom audience

Resources

  • ads://account — Account overview (status, balance, currency)
  • ads://campaigns-overview — Active campaigns with budgets
  • ads://spending-today — Today's spend, impressions, clicks, reach

Important Notes

  • Ad account ID should be numeric without the act_ prefix
  • Use exchange_token to convert short-lived tokens to long-lived ones
  • Use refresh_token to extend a still-valid long-lived user token through the same documented exchange flow
  • debug_token helps diagnose permission issues
  • Async reports are needed for large date ranges or many breakdowns
  • Insight date_preset values are lowercase (for example today and last_30d)
  • All monetary values are in the account's currency (check with get_ad_account)

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.