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.
- templates/CLAUDE.mdCLAUDE.md
- llms.txtllms.txt
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
- Very specific: line 7
Use mcp__meta-ads__<tool> for all Meta advertising operations.
- Distinctive: line 71
Create two ad sets with different creatives
- Very specific: line 87
Use exchange_token to convert short-lived tokens to long-lived
- Very specific: line 88
Use lowercase date_preset values such as today or last_30d
- Very specific: line 89
Use debug_token to diagnose permission issues
- Distinctive: line 91
All monetary values use the account's currency
≈ “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.
Files
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/resumedelete_campaign/delete_adset/delete_ad— Remove entitieslist_campaigns/list_adsets/list_ads— List with filtering and pagination
Performance & Reporting
get_account_insights— Account-level metricsget_campaign_insights— Campaign-level breakdownget_adset_insights— Ad set-level breakdownget_ad_insights— Ad-level breakdowncreate_async_report— Large async reportsget_async_report— Poll report-run status and fetch/insightsresults once complete
Audiences & Targeting
create_custom_audience— Create audience from customer datacreate_lookalike_audience— Create lookalike from existing audiencesearch_targeting— Find interests, behaviors, demographicsget_reach_estimate— Estimate audience sizeadd_users_to_audience/remove_users_from_audience— Manage audience members
Media Assets
upload_image— Upload ad image from URLupload_video— Upload ad video from URLlist_images/list_videos— Browse existing media
Automation & Testing
create_rule— Set up automated rules (pause if CPA > X)create_experiment— Create A/B testsget_experiment_results— Check A/B test outcomes
Catalog & Commerce
create_catalog— Create product catalog for dynamic adscreate_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-livedrefresh_token— Extend a valid long-lived user token using the documented exchange flowdebug_token— Inspect token metadata and permissions
Common Workflows
Create a full campaign
create_campaignwith objectiveupload_imageorupload_videofor mediacreate_creativewith uploaded mediacreate_adsetwith targeting, budget, schedulecreate_adlinking creative to ad set
Check performance and optimize
get_campaign_insightswith date range- Identify underperformers
update_adsetto pause or adjust budgetscreate_ruleto automate future optimizations
A/B test creatives
- Create two ad sets with different creatives
create_experimentto run the testget_experiment_resultsafter sufficient data
Build a lookalike audience
create_custom_audiencefrom customer listadd_users_to_audiencewith hashed user datacreate_lookalike_audiencefrom the source audience
Resources
ads://account— Account overview (status, balance, currency)ads://campaigns-overview— Active campaigns with budgetsads://spending-today— Today's spend, impressions, clicks, reach
Rules
- Ad account ID must be numeric without
act_prefix - Use
exchange_tokento convert short-lived tokens to long-lived - Use lowercase
date_presetvalues such astodayorlast_30d - Use
debug_tokento diagnose permission issues - Async reports needed for large date ranges or many breakdowns
- All monetary values use the account's currency
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
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.

