AUTOSOCIALS FOR DEVELOPERS
Meta Ads MCP for Facebook and Instagram campaigns
Research Meta accounts, build private drafts from multiple images and videos, choose ad sets and daily budgets, and review paid campaign delivery.
On this page
- Build a private campaign draft
- Review an existing draft and confirm paid actions
- Add a video ad to an existing ad set
- If your Dot connector lists only budgetMinor
- get_meta_ads_access
- search_meta_targeting
- list_meta_ad_accounts
- list_meta_campaign_settings
- list_meta_conversion_datasets
- check_meta_conversion_activity
- read_meta_ad_insights
- read_meta_ad_copy
- get_meta_campaign_tree
- preview_meta_ad_set_creation
- confirm_meta_ad_set_creation
- list_meta_campaign_ad_sets
- preview_meta_ad_creation
- confirm_meta_ad_creation
- get_meta_ad_creation_status
- publish_meta_ad_on_instruction
- list_owned_meta_campaigns
- get_owned_meta_campaign
- prepare_meta_campaign_edit
- confirm_meta_campaign_edit
- preview_meta_management
- commit_meta_management
- preview_meta_ad_deletion
- confirm_meta_ad_deletion
- get_meta_optimisation_settings
- preview_meta_optimisation
- apply_meta_optimisation_on_instruction
- prepare_meta_campaign
- revise_meta_campaign_draft
- list_meta_campaign_drafts
- revalidate_meta_campaign_draft
- archive_meta_campaign_draft
- get_meta_campaign_draft
- publish_meta_campaign_on_instruction
- resume_meta_campaign_on_instruction
- launch_meta_campaign
Build a private campaign draft
Connect Meta in Campaigns. In AI Agent Access, the owner enables reporting and drafting for the selected OAuth connection. Use get_meta_ads_access and list_meta_ad_accounts for the ad account currency, Facebook Page and current launch access. On older clients, list_meta_ad_accounts also reports the Meta grant and supported draft contract.
Use prepare_meta_campaign with up to six creatives. Pass saved Brand Asset IDs or supported attachments. AutoSocials preserves supplied copy and fills missing options to five per field. Use copyMode single only when the user requests one option per field. In agent mode, supply chosen settings, seed copy and confirmation of a standard commercial ad.
Supply dailyBudgetMinor for a single shared daily budget, or set dailyBudgetMinor separately on each adSets entry. Each ad set can have its own audience, placements, schedule and asset assignments. Use budgetMinor for a lifetime total. GBP 5000 minor units per day is £50/day. A seven-day draft at £50/day reserves £350 against an approved launch allowance.
Use list_meta_conversion_datasets and check_meta_conversion_activity to review available website datasets and reported events. Choose a connected event when tracking is needed. Website Leads requires Lead and Website Sales requires Purchase. Dataset activity does not establish attribution to a specific page or campaign.
Review an existing draft and confirm paid actions
Use list_meta_campaign_drafts to compare saved drafts, creative IDs, objective, targeting, budgets and launch state. With the user’s confirmation, use archive_meta_campaign_draft for the exact unlaunched draft ID.
Poll get_meta_campaign_draft for the existing draftId and read its preparation state, exact copy, budget type, placements, targeting, destination, conversion settings and launch blocker. Use revise_meta_campaign_draft to change settings while retaining prepared media, then review the latest draft ID.
A missing owner allowance appears as launch: null. The owner sets the approved account, Page, spend limits, duration and expiry in AI Agent Access. After the user approves the exact draft, budget and schedule, pass confirmed: true to launch_meta_campaign. Use the receipt and Meta's configured and effective status before reporting delivery.
Read campaign, ad set and ad settings and date-range insights before planning edits. Eligible changes use a preview and explicit confirmation. Live management requires ads:write and the applicable owner grants. Budget increases and resumes are limited to eligible campaigns within their original spending cap. For editing outside the tool's supported fields, use the AutoSocials or Meta Ads Manager handoff.
Add a video ad to an existing ad set
Use get_meta_campaign_tree with the account and campaign IDs. Pass the returned adSetId to read the ads in that set.
To add an ad set, show preview_meta_ad_set_creation to the user and use confirm_meta_ad_set_creation only after approval. The new set starts paused.
For a new ad, choose the exact ad set, a saved image or video in Brand Assets, and a connected Facebook Page.
Use preview_meta_ad_creation with the asset ID, ad name, HTTPS destination, CTA and up to five exact options per copy field. The preview uses PAUSED by default. An active ad can change how Meta distributes the existing budget.
Preview and confirmation require channels:read, assets:read and owner-approved Meta management. For ACTIVE, pass the original campaignRequestId and ask the owner to approve the exact previews and active delivery in chat. If ownerApprovalRequired is true, ask them to review the exact ads in AutoSocials. After approval, confirm the same previews and read the returned ad IDs and effective statuses.
If your Dot connector lists only budgetMinor
Refresh Dot's MCP tool definitions using the steps at https://autosocials.com/developers/social-media-mcp. For a private draft using the older tool, the full MCP accepts a structured brief. Put AutoSocials-Meta-Draft/2 on the first line. On the next line put an object such as {"settings":{"dailyBudgetMinor":5000}} alongside the normal assetId. Use one representation of each setting. An existing draft can be read directly without this compatibility format.
get_meta_ads_access
Check whether this workspace and AI client can use Meta Ads. Start here if Meta tools or paid launch are missing. Returns setup links and private creative upload options.
Requires channels:read.
search_meta_targeting
Find provider location and interest IDs for an explicit campaign audience.
Requires channels:read. Required tool inputs include accountId, type, query.
list_meta_ad_accounts
List Meta ad accounts and approved Facebook Pages with live access. Pass accountId to inspect one account. Match the Page's accountIds and pass both exact IDs when preparing an ad or campaign. The workspace owner approves Pages in AI Agent Access.
Requires channels:read.
list_meta_campaign_settings
List or inspect Meta campaigns, ad sets or ads in a connected account, including items created outside AutoSocials. Includes budgets, delivery, targeting, placements, attribution or creative settings at the relevant level. Use nextCursor to retrieve further pages and statuses to include archived or deleted items.
Requires channels:read. Required tool inputs include accountId.
list_meta_conversion_datasets
List website pixels/datasets available to a connected Meta ad account. Follow nextCursor for more results. Availability does not verify event activity or setup.
Requires channels:read. Required tool inputs include accountId.
check_meta_conversion_activity
Check aggregate events Meta reported to a connected website pixel or dataset over the last one to 168 hours. Use list_meta_conversion_datasets for its ID. This is dataset activity, not campaign attribution or a live test event.
Requires channels:read. Required tool inputs include accountId, datasetId.
read_meta_ad_insights
Read Meta-reported performance for an account or at campaign, ad set or ad level. Select metrics, date range, daily rows and optional breakdowns such as age, country or placement. Follow nextCursor for additional rows. Metrics and combinations depend on what Meta reports.
Requires channels:read. Required tool inputs include accountId, since, until.
read_meta_ad_copy
Read the exact primary texts, headlines and descriptions saved by Meta for a connected account's ad ID. Returns the creative ID, provider counts, text and the source of each field. A null count means Meta did not return a verifiable field.
Requires channels:read. Required tool inputs include accountId, adId.
get_meta_campaign_tree
Read an exact Meta campaign and its ad sets. Pass a returned adSetId to read that ad set and its ads. Follow nextCursor at the selected level. An ad’s deliveryEligible=false identifies its own configured pause or archive. If an archived ad is omitted from the list, read its exact ID with list_meta_campaign_settings. Use returned IDs with the Meta edit and creation tools.
Requires channels:read. Required tool inputs include accountId, campaignId.
preview_meta_ad_set_creation
Review a new paused website ad set under an existing standard Traffic, Leads or Sales campaign. Supply dailyBudgetMinor for ad-set budgeting. For Traffic choose LINK_CLICKS or LANDING_PAGE_VIEWS explicitly. For Leads or Sales select the website dataset and supported event. Show the exact audience, budget, schedule, parent and optimisation before asking for approval.
Requires ads:write. Required tool inputs include accountId, campaignId, name, audience, idempotencyKey.
confirm_meta_ad_set_creation
After the user approves the exact saved preview, create one PAUSED ad set and verify it with Meta. Use its returned adSetId to prepare ads. Reuse the same preview after an uncertain result.
Requires ads:write. Required tool inputs include previewId, confirmed, idempotencyKey.
list_meta_campaign_ad_sets
Read the live ad sets of an exact campaign in a connected Meta ad account. Follow nextCursor. Use an exact returned ad set ID before preparing a new ad.
Requires channels:read. Required tool inputs include accountId, campaignId.
preview_meta_ad_creation
Prepare a no-spend preview in an existing Meta ad set. AutoSocials fills missing copy to five options per field unless the user chooses single copy. Default status is PAUSED. Under an eligible publishing policy, an instruction to add an identified ad to a running campaign is an instruction to publish it. Prepare ACTIVE. For multiple ads in one ad set, call get_meta_ad_creation_status with all preview IDs and share its one ownerApprovalUrl before submitting. For ads managed by instruction, submit using the original wording after approval. For draft, paused, test, or ambiguous requests, follow the preview's approval instructions.
Requires ads:write. Required tool inputs include accountId, campaignId, adSetId, pageId, assetId, name, destination, cta, copy, idempotencyKey.
confirm_meta_ad_creation
Queue one to six exact approved ad previews for the same existing Meta ad set. Pass previewId for one ad or previewIds for a batch. For multiple ACTIVE previews, share the single ownerApprovalUrl returned at the batch level when provided. An ACTIVE preview requires recorded owner approval. Use get_meta_ad_creation_status to follow progress and Meta delivery. Approved jobs automatically resume after throttling.
Requires ads:write. Required tool inputs include confirmed, idempotencyKey.
get_meta_ad_creation_status
Read current statuses for one to six saved preview IDs. Before sharing approval links for multiple active ads in one ad set, pass all their preview IDs in one call and share the top-level ownerApprovalUrl. The owner can refresh stale ads from the review page. Use only one link for that batch. Includes queued, retrying, stalled, created, pending Meta review, active, delivering, and failed, with provider IDs when available. Follow the same preview when work is queued, retrying, or stalled. A pending receipt is processing. Delivering requires current active Meta status and recorded impressions.
Requires channels:read. Required tool inputs include previewIds.
publish_meta_ad_on_instruction
Queue the exact ACTIVE preview the owner asked to add or make live. Quote the original instruction, including short replies such as Approved or make that live when they refer to the exact preview. If owner_approval_required is returned, show ownerApprovalUrl so the owner can approve in AutoSocials. Retry the same preview, wording and key after approval. Do not use this tool for drafts or tests. Honor native approval and follow get_meta_ad_creation_status until Meta reports the ad ID and delivery state.
Requires ads:write. Required tool inputs include previewId, instruction, idempotencyKey.
list_owned_meta_campaigns
List AutoSocials campaign receipts available to the workspace owner, including request IDs for the editor.
Requires channels:read.
get_owned_meta_campaign
Read the current editable settings and snapshot version for an AutoSocials-owned Meta campaign. Select adSetId from the returned adSets for campaigns with multiple ad sets.
Requires channels:read. Required tool inputs include requestId.
prepare_meta_campaign_edit
Preview changes to placements, audience, ad copy, budget or schedule on an AutoSocials-owned campaign. Read get_owned_meta_campaign with the exact adSetId first. Reuse its version and pass the returned ad IDs for ad changes. Show the preview and get approval before confirming.
Requires ads:write. Required tool inputs include requestId, version, changes, idempotencyKey.
confirm_meta_campaign_edit
Apply exactly a prepared Meta edit after explicit user confirmation. The current grant and provider snapshot must still match. Returns provider readback. AutoSocials emails the connected user about changes Meta confirms. Check Meta before retrying an uncertain result.
Requires ads:write. Required tool inputs include previewId, confirmed, idempotencyKey.
preview_meta_management
Preview PAUSED, ACTIVE, ARCHIVED or DELETED for exact Meta campaigns, ad sets or ads in one account. Use status and targets with exact IDs and known parent IDs. A preview makes no Meta change. Only selected objects are written; their children keep their configured statuses. Resume requires the existing spend checks. Show the exact preview before asking for confirmation. For a daily ad-set budget, read the exact campaign and ad set, then use level adset, the ad set objectId, expectedCampaignId and changes.dailyBudget in minor units. If the amount is already set at that level, report the verified amount. Resolve requested budget changes before preparing active ads so the approval shows the final budget.
Requires ads:write. Required tool inputs include accountId, idempotencyKey.
commit_meta_management
Apply the exact saved Meta management preview. After the owner confirms a pause of the previewed campaign, ad set or ad, send previewId and confirmed true. For instruction-mode resumes and other instruction edits pass the owner’s original wording. For an instruction-mode ad set daily budget, the wording must identify the ad set, campaign and amount or use the same preview’s ownerApprovalUrl. Confirm reviewed changes, archive, delete and replacement moves. Reuse the preview, approval and idempotency key on retry. Check each target’s readback and only report delivery once verified.
Requires ads:write. Required tool inputs include previewId, idempotencyKey.
preview_meta_ad_deletion
Prepare a permanent deletion preview for one to six exact Meta ads. Read their IDs with get_meta_campaign_tree first. Show the ad names, IDs and parents from the saved preview and ask for explicit confirmation. This only prepares a preview.
Requires ads:write. Required tool inputs include accountId, ads, idempotencyKey.
confirm_meta_ad_deletion
Permanently delete the exact Meta ads returned by preview_meta_ad_deletion after the user explicitly confirms that preview. Pass the returned previewId, keep the same idempotency key on retries, and check each Meta readback.
Requires ads:write. Required tool inputs include previewId, confirmed, idempotencyKey.
get_meta_optimisation_settings
Read the current targeting, placements, ad set settings, and supported copy and media for an exact Meta campaign and ad set. Use the returned version verbatim and the exact ad IDs to preview an edit.
Requires channels:read. Required tool inputs include accountId, campaignId, adSetId.
preview_meta_optimisation
Preview an exact targeting, placement, website conversion, destination, copy or workspace media edit. Call get_meta_optimisation_settings first. Copy supports a primary value and up to four variants per field. Preview shows before and after values, ad scope and creative re-review risk. The existing ad ID is retained. Preview makes no Meta changes. If this client cached older inputs, use the compatibility instructions in get_meta_ads_access. Use preview_meta_management for schedule or budget.
Requires ads:write. Required tool inputs include accountId, campaignId, adSetId, version, changes, idempotencyKey.
apply_meta_optimisation_on_instruction
Apply the exact saved Meta edit under Full access after the owner explicitly instructs you to apply it. Pass the owner's original instruction and keep the same preview and idempotency key on retry. Check the Meta configuration readback separately from actual delivery.
Requires ads:write. Required tool inputs include previewId, instruction, idempotencyKey.
prepare_meta_campaign
Prepare up to six saved or attached creatives. For a new draft, pass the exact accountId and approved pageId from list_meta_ad_accounts. AutoSocials fills missing copy to five options per primary text, headline and description. Set copyMode to single only if the user explicitly requests one. In agent mode supply seed copy and campaign settings. Use adSets for separate audiences, budgets, schedules and creative assignments. Poll get_meta_campaign_draft. Use publish_meta_campaign_on_instruction if the owner already instructed live delivery for the exact ready campaign, budget and schedule and an active policy covers it. Otherwise use the reviewed launch flow.
Requires channels:read. Required tool inputs include idempotencyKey.
revise_meta_campaign_draft
Revise an unlaunched campaign. Use adSets to edit groups or adOptions to edit ad names and copy. To add or replace creative, pass the complete ordered assetIds list, matching adOptions and updated adSets if grouped. Asset revisions create a new draft. Schedule-only continuous revisions can keep the existing draft ID. Review the revised campaign before launch.
Requires channels:read. Required tool inputs include draftId, changes, idempotencyKey.
list_meta_campaign_drafts
List saved Meta campaign drafts for this workspace and connection. Use get_meta_campaign_draft to check live Full access launch readiness and nextCursor for more results. Owners can move drafts from their previous connection in AutoSocials → Launch ads → Drafts.
Requires channels:read.
revalidate_meta_campaign_draft
Recheck an unlaunched saved draft against the current owner allowance without changing the campaign or creating another draft. After the user asks to revalidate, set confirmed=true. Read the same draft for fresh review and get separate approval before launch.
Requires channels:read. Required tool inputs include draftId, confirmed, idempotencyKey.
archive_meta_campaign_draft
Move the exact unlaunched draft ID to Trash after the user confirms. Use list_meta_campaign_drafts to verify the creative and settings first. Archive is limited to this workspace and OAuth connection. Launch attempts and existing Meta campaigns are protected.
Requires channels:read. Required tool inputs include draftId, confirmed, idempotencyKey.
get_meta_campaign_draft
Read a saved Meta campaign draft and launch readiness. Show copyReview.ads[].selected before launch approval. After a continuous launch, poll the same draft and use receipt.providerReadback for provider-verified IDs, budget, cap and per-ad delivery states. If get_meta_ad_creation_status is unavailable in your client, pass the exact saved ad preview ID as draftId to read its creation status.
Requires channels:read. Required tool inputs include draftId.
publish_meta_campaign_on_instruction
Publish the exact saved campaign draft when the owner explicitly instructs live paid delivery and has enabled the matching AutoSocials policy. Prepare and read the ready draft within the same task. Use its current launchReviewId when supplied. Honor any native tool approval. If the policy does not cover the action, use the existing preview and confirmation workflow. Reuse the same key and poll the draft for actual Meta delivery.
Requires ads:write. Required tool inputs include draftId, instruction, idempotencyKey.
resume_meta_campaign_on_instruction
Resume only the exact paused campaign after the owner explicitly instructs live resumption and the account policy allows it. Use the single exact ad set and all configured active ad IDs the owner instructed to resume. If another ad or ad set would be affected, stop and review that issue. Honor client approval and reuse the same key after an uncertain response.
Requires ads:write. Required tool inputs include accountId, campaignId, adSetId, activeAdIds, instruction, idempotencyKey.
launch_meta_campaign
Submit the selected Sam draft to Meta for active paid delivery using the owner’s standing allowance. Each draft can launch once. Poll get_meta_campaign_draft and read launchStatus before reporting success or trying another launch. AutoSocials emails the connection’s verified user after submission. Meta submission does not confirm delivery.
Requires channels:read. Required tool inputs include draftId, confirmed, idempotencyKey.