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

meta-ads-mcp / templates

AGENTS.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.

  • Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.

    Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.

  • In this repository2 other files it gives its agents.

The file

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

6 rules. About 0 are common, 2 are distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    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 71
  3. Very specific:

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

    line 87
  4. Very specific:

    Use lowercase date_preset values such as today or last_30d

    line 88
  5. Very specific:

    Use debug_token to diagnose permission issues

    line 89
  6. Distinctive:

    All monetary values use the account's currency

    line 91

≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.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
AGENTS.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

  • create_campaign — Create a new campaign (objective: CONVERSIONS, TRAFFIC, etc.)
  • create_adset — Create an ad set (targeting, budget, schedule)
  • create_ad — Create an ad (links a creative to an ad set)
  • create_creative — Create an ad creative (image, video, carousel)
  • update_campaign / update_adset / update_ad — Modify settings, pause/resume
  • delete_campaign / delete_adset / delete_ad — Remove entities
  • list_campaigns / list_adsets / list_ads — List with filtering and pagination

Performance & Reporting

  • get_account_insights — Account-level metrics
  • get_campaign_insights — Campaign-level breakdown
  • get_adset_insights — Ad set-level breakdown
  • get_ad_insights — Ad-level breakdown
  • create_async_report — Large async reports
  • get_async_report — Poll report-run status and fetch /insights results once complete

Audiences & Targeting

  • create_custom_audience — Create audience from customer data
  • create_lookalike_audience — Create lookalike from existing audience
  • search_targeting — Find interests, behaviors, demographics
  • get_reach_estimate — Estimate audience size
  • add_users_to_audience / remove_users_from_audience — Manage audience members

Media Assets

  • upload_image — Upload ad image from URL
  • upload_video — Upload ad video from URL
  • list_images / list_videos — Browse existing media

Automation & Testing

  • create_rule — Set up automated rules (pause if CPA > X)
  • create_experiment — Create A/B tests
  • get_experiment_results — Check A/B test outcomes

Catalog & Commerce

  • create_catalog — Create product catalog for dynamic ads
  • create_feed / upload_feed — Manage product data feeds

Ad Library

  • search_ad_library — Search public ad data (competitor research)

Auth & Token

  • exchange_token — Convert short-lived token to long-lived
  • refresh_token — Extend a valid long-lived user token using the documented exchange flow
  • debug_token — Inspect token metadata and permissions

Common Workflows

Create a full campaign

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

Check performance and optimize

  1. get_campaign_insights with date range
  2. Identify underperformers
  3. update_adset to pause 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 run 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 user data
  3. create_lookalike_audience from the source 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

Rules

  • Ad account ID must be numeric without act_ prefix
  • Use exchange_token to convert short-lived tokens to long-lived
  • Use lowercase date_preset values such as today or last_30d
  • Use debug_token to diagnose permission issues
  • Async reports needed for large date ranges or many breakdowns
  • All monetary values use the account's currency

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.