Skip to content

Meta Ads (Facebook/Instagram) MCP server for Claude, ChatGPT, Perplexity & Cursor — the Meta node of Pipeboard’s 5-platform family (+ Google, TikTok, Snap, Reddit). Hosted remote MCP, badged Meta Business Partner, free plan — no self-hosting required.

Enhance ad set update confirmation message and export update_ad function

Yves Junqueira7dfa0c0be82c
diff --git a/meta_ads_mcp/core/__init__.py b/meta_ads_mcp/core/__init__.py
index 9b6c081..0c7e508 100644
--- a/meta_ads_mcp/core/__init__.py
+++ b/meta_ads_mcp/core/__init__.py
@@ -4,7 +4,7 @@ from .server import mcp_server
from .accounts import get_ad_accounts, get_account_info
from .campaigns import get_campaigns, get_campaign_details, create_campaign
from .adsets import get_adsets, get_adset_details, update_adset
-from .ads import get_ads, get_ad_details, get_ad_creatives, get_ad_image
+from .ads import get_ads, get_ad_details, get_ad_creatives, get_ad_image, update_ad
from .insights import get_insights, debug_image_download
from .authentication import get_login_link
from .server import login_cli, main
@@ -24,6 +24,7 @@ __all__ = [
'get_ad_details',
'get_ad_creatives',
'get_ad_image',
+ 'update_ad',
'get_insights',
'debug_image_download',
'get_login_link',
diff --git a/meta_ads_mcp/core/adsets.py b/meta_ads_mcp/core/adsets.py
index 1b63536..a4accdd 100644
--- a/meta_ads_mcp/core/adsets.py
+++ b/meta_ads_mcp/core/adsets.py
@@ -163,7 +163,7 @@ async def update_adset(adset_id: str, frequency_control_specs: List[Dict[str, An
"current_details": current_details,
"proposed_changes": changes,
"instructions_for_llm": "You must present this link as clickable Markdown to the user using the markdown_link format provided.",
- "note": "After authenticating, the token will be automatically saved and your ad set will be updated. Refresh the browser page if it doesn't load immediately."
+ "note": "Click the link to confirm and apply your ad set updates. Refresh the browser page if it doesn't load immediately."
}
return json.dumps(response, indent=2)
\ No newline at end of file