Ads Uploader

v0.4.6
com.adsuploader/mcp Checked 4 days ago Published 1 day ago

Meta Ads MCP: analyze, edit and bulk launch Meta ads, with an Agent Inbox for approvals.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

ads_report_issue Report Tool Issue

Record a problem with these tools for the Ads Uploader team: results that contradict each other, a field that was silently ignored, a saved build display that differs from its preview, or a tool that does not do what its description says. Sends the summary, the expected and actual results and any IDs supplied, not names, emails, ad copy, tokens or other personal data; the server also redacts sensitive text. Returns { reported: true, reference, status: 'queued' }. Each call queues one report; limited to 10 reports per user per hour.

ParameterTypeDescription
actual *string
expected *string
tool *string
accountIdstring
adIdsarray
buildIdstring
jobIdstring
requestIdstring
severitystring

ads_request_feature Request a Missing Capability

Record a capability these tools do not offer, for the Ads Uploader team: a missing tool, field, filter, action or level. Sends the goal, the missing capability, the tools tried and any IDs supplied, not names, emails, ad copy, tokens or other personal data. Similar requests are grouped and counted. ads_report_issue records problems with existing tools. Returns { requested: true, reference, status: 'recorded' }. Limited to 20 requests per user per hour.

ParameterTypeDescription
goal *string
missingCapability *string
accountIdstring
levelstring
toolsTriedarray
workaroundstring

ads_list_catalogs List Catalogs

List catalogs this ad account can advertise for Product Showcase: products from a catalog shown under a single image or video ad. Full catalog (dynamic) ads are not supported yet.

ParameterTypeDescription
accountId *stringAd account ID

ads_list_product_sets List Product Sets

List product sets and sample products for Product Showcase: products from a catalog shown under a single image or video ad. Optionally select one product set.

ParameterTypeDescription
accountId *stringAd account ID
catalogId *string
productSetIdstring

ads_get_product_showcase_recommendation Get Product Showcase Recommendation

Read Meta’s Product Showcase recommendation for a Sales campaign destination: products from a catalog shown under a single image or video ad. MUST_PICK requires an explicit productSetId; MANUAL requires catalog and set selection.

ParameterTypeDescription
accountId *stringAd account ID
adUrl *string
pageIdstring
pixelIdstring

ads_campaign_health Campaign Health

Answer “how is campaign X doing”: campaign performance, native optimization results, status, budgets, issues and bounded ad set learning counts. Use ads_query_insights for custom analysis. Result indicators and attribution windows stay separate. A 429 carries Retry-After. ROW_QUOTA_EXCEEDED carries the time the quota resets (meta.quota.resetsAt).

ParameterTypeDescription
accountId *stringAd account ID.
afterstringOpaque paging.after cursor. Keep filters unchanged.
campaignIdstring
datePresetstringNamed Meta date preset. Mutually exclusive with timeRange. Defaults to last_30d when neither date option is supplied.
freshbooleanBypass the read cache.
limitinteger
timeRangeobjectExplicit current date range, mutually exclusive with datePreset. Use compare for a previous period, previous year or custom range.

ads_list_audiences List Audiences

List Meta custom, lookalike and saved audiences, size bounds and safe targeting summaries. One cursor page across sources. A 429 carries Retry-After. ROW_QUOTA_EXCEEDED carries the time the quota resets (meta.quota.resetsAt).

ParameterTypeDescription
accountId *stringAd account ID.
afterstringOpaque paging.after cursor. Keep filters unchanged.
freshbooleanBypass the read cache.
limitinteger
searchstring
typestring

ads_list_conversions List Conversion Definitions

Read pixels, custom conversion definitions and standard event names. This describes available events, not measured conversion totals. Pixels and custom conversions share one bounded cursor page. A 429 carries Retry-After. ROW_QUOTA_EXCEEDED carries the time the quota resets (meta.quota.resetsAt).

ParameterTypeDescription
accountId *stringAd account ID.
afterstringOpaque paging.after cursor. Keep filters unchanged.
freshbooleanBypass the read cache.
limitinteger

ads_estimate_delivery Estimate Audience and Delivery

Answer “how big is this audience”: read Meta reach and delivery estimates for AdSpec targeting and an optimization goal. Does not create ads. Estimates are predictions, not guaranteed delivery. A 429 carries Retry-After. ROW_QUOTA_EXCEEDED carries the time the quota resets (meta.quota.resetsAt).

ParameterTypeDescription
accountId *stringAd account ID.
optimizationGoal *string
targeting *objectAdSpec targeting shape, converted by the ad-creation builder. Include at least one location. No inherited source targeting is available for estimates.
freshbooleanBypass the read cache.
promotedObjectobject

ads_list_change_history Read Meta Change History

Meta ad account activity log, including edits made in Ads Manager and other tools. Use ads_list_history for launches and changes made through Ads Uploader. Defaults to the last 7 days; maximum span 90 days. Rows carry objectType AD/AD_SET/CAMPAIGN/AUDIENCE/ACCOUNT plus adSetId/campaignId/audienceId; metaObjectType and extra_data keep Meta’s legacy names (extra_data.campaign_id on an ad is its ad set). A 429 carries Retry-After. ROW_QUOTA_EXCEEDED carries the time the quota resets (meta.quota.resetsAt).

ParameterTypeDescription
accountId *stringAd account ID.
afterstringOpaque paging.after cursor. Keep filters unchanged.
freshbooleanBypass the read cache.
limitinteger
objectIdstring
sincestring
untilstring

ads_list_library_media List Meta Library Media

Read images or videos in the Meta ad account library, separate from Ads Uploader uploads. Returns one cursor page. A 429 carries Retry-After. ROW_QUOTA_EXCEEDED carries the time the quota resets (meta.quota.resetsAt).

ParameterTypeDescription
accountId *stringAd account ID.
type *string
afterstringOpaque paging.after cursor. Keep filters unchanged.
freshbooleanBypass the read cache.
limitinteger

ads_list_posts List Promotable Posts

Read accessible Facebook Page promotable posts or media for a connected Instagram professional account. Supply exactly one of pageId or igUserId. Messages are limited to 500 characters. A 429 carries Retry-After. ROW_QUOTA_EXCEEDED carries the time the quota resets (meta.quota.resetsAt).

ParameterTypeDescription
accountId *stringAd account ID.
afterstringOpaque paging.after cursor. Keep filters unchanged.
freshbooleanBypass the read cache.
igUserIdstring
limitinteger
pageIdstring

ads_get_account Read Account Details

Read an owned Meta ad account’s status, currency, timezone, spend and funding display. Money includes major amounts and raw minor-unit strings. Includes the read-only metaEdits enabled setting and approval rule, plus permissions (visible, read, launch and edit as off, approval or allowed, approvalRule) from the Account Permissions page; CLI/MCP cannot change them. A 429 carries Retry-After. ROW_QUOTA_EXCEEDED carries the time the quota resets (meta.quota.resetsAt).

ParameterTypeDescription
accountId *stringAd account ID.
freshbooleanBypass the read cache.

ads_list_inbox_history Read Agent Inbox History

Read retained Agent Inbox suggestions and direct edit outcomes over the last 90 days, newest first. Includes reason, reasonEdited, runTitle, clientName, before/after, outcome and a plain error, plus userEdited {value, note} with the agent’s own suggestedAfter and suggestedReason when the user changed them (for example, you suggested 6000 and the user changed it to 6100), and revisions[]: every later change, oldest first, with at, by (user or agent, plus source and clientName), kind (value or note), action (edited, or restored_to_agent when your original was put back), field, before and after…

ParameterTypeDescription
accountIdstringAd account ID; omit to use the selected account or, if none is selected, all permitted accounts.
actionstring
campaignIdstring
cursorstringUse paging.cursor from the previous page with the same filters.
kindstring
limitinteger
reviewIdstringFilter to one agent run.
sincestringInclusive ISO date or timestamp, within the retained 90-day window.
statusstring
untilstringInclusive ISO date or timestamp. A date includes that whole UTC day.

ads_list_history Read Ads Uploader History

Ads Uploader History: launches and changes made through Ads Uploader (web Uploader, Duplicator, AI Edits, CLI, MCP, API) on one ad account, newest first: the same list as the History page. Duplicator copies read type Duplicate, with duplicate: copy or post. Not Meta's activity log.

ParameterTypeDescription
accountId *stringAd account ID
beforestring
daysinteger
limitinteger
memberstring
qstring
sourcestring
typestring

ads_get_launch Read Launch Details

Read one Ads Uploader launch: one row per ad with its ID, name, status, ad set, campaign, result and error, plus totals and failures. Use a launchId from ads_list_history rows. detail: 'full' adds targeting, budgets, schedule, creative settings and media.

ParameterTypeDescription
accountId *string
launchId *stringLaunch ID from ads_list_history rows
detailstringOne row per ad by default. Full adds targeting, budgets, schedule, creative settings and media.

ads_edit_cancel Cancel Edit Proposals

Cancel pending edit suggestions so they leave the Agent Inbox. Nothing changes in Meta. Pending suggestions only; returns a result per suggestion. With the older reviewId and duplicatesOnly: true it removes a suggestion that is pending in two reviews.

ParameterTypeDescription
accountId *string
reviewId *string
duplicatesOnlyboolean
proposalIdsarray

ads_discard_launch Discard a Waiting Launch

Discard a launch waiting in the Agent Inbox, like its Discard button. Nothing is created in Meta. The saved build stays (ads_delete_build removes it). Launches that already started cannot be discarded. ads_edit_cancel handles edit suggestions.

ParameterTypeDescription
accountId *stringAd account ID.
buildId *stringSaved build ID of the waiting launch, e.g. build_abc123...

ads_list_edit_reviews List Edit Reviews

Read compact account-scoped Edit Review counts, including reviews still being built. Proposals are omitted unless include: proposals.

ParameterTypeDescription
accountId *string
afterstring
includestringBy default returns compact review counts without proposals. Request proposals for the full proposal list.
limitinteger

ads_get_edit_review Read an Edit Review

Read one owned review with compact proposal rows, statuses and edit IDs. A suggestion shows applying while an approved change is being sent to Meta, then applied or failed. Each row has userEdited {value, note}; when the user changed a suggestion before approving it, suggestedAfter and suggestedReason hold the original suggestion and after and reason hold what the user chose. revisions[] lists each change with who made it, before and after, and restored_to_agent when the original was put back. Duplications include copies[].status (pending, approved, made, partial, failed, rejected), group for…

ParameterTypeDescription
accountId *string
reviewId *string
afterstringProposal index returned by paging.after.
detailstringCompact rows by default. Full includes operations, changes and editable fields.
limitinteger

ads_edit_preview Preview Meta Edits

Preview edits to existing Meta campaigns, ad sets and ads without changing Meta: status, archive, delete, name, budget, bid (including minimum ROAS), schedule, spend limit, targeting, ad set settings and set_creative (ad text, links and call to action). At most 10 creative edits per plan. Targeting is patched; ads_search_targeting finds IDs and detail: full returns the full resulting audience. set_creative covers standard, placement-customised, multi-media and carousel creatives, with per-card headline, description and link through cards[{card, headline, description, link}]; per-card links are…

ads_edit_apply Apply Meta Edits

Apply a preview plan to existing Meta objects. Takes the planId from ads_edit_preview (valid for 15 minutes) and the confirm flags named in that preview's requiredConfirmations. Returns a result per change: applied, failed, skipped or pending. Pending means not sent yet and still waiting in its review. Applying the same planId again returns the first result and changes nothing more. Archive and delete cannot be undone. Accounts in review mode return EDITS_REVIEW_REQUIRED with a reviewUrl; those changes are approved in the Agent Inbox.

ParameterTypeDescription
accountId *string
planId *string
allowLargeChangebooleanConfirms a large budget change. Needed when the preview's requiredConfirmations lists large_change.
confirmIrreversiblebooleanConfirms an archive or delete, which cannot be undone. Needed when the preview's requiredConfirmations lists irreversible.
confirmLiveChangebooleanConfirms a change to an object that is live. Needed when the preview's requiredConfirmations lists live_change.
confirmSpendbooleanConfirms a change that starts or raises spend. Needed when the preview's requiredConfirmations lists spend.

ads_edit_undo Preview an Undo

Create a new preview that restores the applied, reversible changes of one edit. It does not apply the undo; the result works like any ads_edit_preview result. Archive and delete return not_reversible. In review mode the undo keeps the original run title and note with an "Undo:" prefix unless runTitle or reason is passed; reviewId adds it to an existing review.

ParameterTypeDescription
accountId *string
editId *string
reasonstringOne short note for the user explaining why (shown in their Agent Inbox). Defaults to the original note with one "Undo: " prefix.
reviewIdstringAdd the undo to this existing review instead of starting a new one.
runTitlestringOptional one-line title for this undo. Defaults to "Undo: " plus the original run title, keeping an existing prefix.

ads_list_edits List Edit History

Deprecated: use ads_list_history with type changes. Reads one account-scoped cursor page of Ads Uploader edit history.

ParameterTypeDescription
accountId *string
afterstring
limitinteger

ads_get_edit Read Edit Results

Read an owned edit and its applied, failed, skipped and pending changes. Pending means not sent yet and still waiting in its review.

ParameterTypeDescription
accountId *string
editId *string

ads_whoami Show Authenticated User

Show which Ads Uploader user this session is signed in as (email, name, user ID) and the API host it talks to.

ads_list_accounts List Ad Accounts

List Meta ad accounts available to the authenticated Ads Uploader user. Use refresh to re-check Meta for reinstated/changed accounts (rate limited).

ParameterTypeDescription
refreshbooleanRe-check Meta for reinstated/changed accounts (rate limited).

ads_list_campaigns List Campaigns

List campaigns in an ad account, optionally filtered by name search and status. Search matches campaign names only; to find ad sets or ads by name, call ads_list_adsets or ads_list_ads without a parent ID. Use fields to return only the columns you need; large pages are trimmed to fit the output budget.

ParameterTypeDescription
accountId *stringAd account ID, e.g. act_123.
afterstringOpaque paging.after cursor. Keep filters unchanged.
fieldsarrayReturn only these output columns. id is always returned; money fields also keep their Minor twin and currency. status is the configured state; effectiveStatus is the effective delivery state. Either i…
freshbooleanAccepted for compatibility; this list always reads fresh data.
limitinteger
offsetintegerOffset within the fetched results. Requests fetch up to 500 rows. After budget trimming, use pagination.nextOffset with the same input after; consume remaining rows before following paging.after.
searchstringOptional campaign name search text.
statusstringExact 'active' filters active/in-process delivery states (default); other values mean no status filter on existing campaign and parent-scoped lists.

ads_list_adsets List Ad Sets

List ad sets in a campaign, or across the whole ad account when campaignId is omitted. To find ad sets by name without knowing their campaign, omit campaignId and pass search (name contains); each row then includes campaignId and campaignName. Request regionalRegulationIdentities, regionalRegulatedCategories, dsaBeneficiary or dsaPayor in fields for advertiser details. Identities also return regionalRegulationIdentityNames with Meta names or null. status defaults to 'active', so pass 'all' to include paused ad sets. Returns one bounded page; follow paging.after for more. Use fields to return o…

ParameterTypeDescription
accountId *stringAd account ID, e.g. act_123.
afterstringOpaque paging.after cursor. Keep filters unchanged.
campaignIdstringMeta campaign ID. Omit to list ad sets across the whole ad account, e.g. to find ad sets by name with search when the campaign is unknown; each row then includes campaignId and campaignName.
fieldsarrayReturn only these output columns. id is always returned; money fields also keep their Minor twin and currency. status is the configured state; effectiveStatus is the effective delivery state. Either i…
freshbooleanAccepted for compatibility; this list always reads fresh data.
limitinteger
offsetintegerOffset within the fetched results. Requests fetch up to 500 rows. After budget trimming, use pagination.nextOffset with the same input after; consume remaining rows before following paging.after.
searchstringOptional ad set name search text (name contains). Works with or without campaignId.
statusstringExact 'active' filters active/in-process delivery states (default); other values mean no status filter on existing campaign and parent-scoped lists. Without a parent ID, account-wide lists also suppor…

ads_list_ads List Ads

List ads in an ad set, or across the whole ad account when adSetId is omitted. To find ads by name without knowing their ad set, omit adSetId and pass search (name contains); each row then includes adsetId, adsetName, campaignId and campaignName. status defaults to 'active', so pass 'all' to include paused ads. To see why ads were rejected or have delivery issues, add reviewFeedback and/or issues to fields (Meta's policy reasons and issues_info); they are read only when named in fields. Returns one bounded page; follow paging.after for more. Use fields to return only the columns you need; larg…

ParameterTypeDescription
accountId *stringAd account ID, e.g. act_123.
adSetIdstringMeta ad set ID. Omit to list ads across the whole ad account, e.g. to find ads by name with search when the ad set is unknown; each row then includes adsetName, campaignId and campaignName.
afterstringOpaque paging.after cursor. Keep filters unchanged.
fieldsarrayReturn only these output columns. id is always returned. status is the configured state; effectiveStatus is the effective delivery state. Either is null when Meta does not provide it. adsetName, campa…
freshbooleanAccepted for compatibility; this list always reads fresh data.
limitinteger
offsetintegerOffset within the fetched results. Requests fetch up to 500 rows. After budget trimming, use pagination.nextOffset with the same input after; consume remaining rows before following paging.after.
searchstringOptional ad name search text (name contains). Works with or without adSetId.
statusstringExact 'active' filters active/in-process delivery states (default); other values mean no status filter on existing campaign and parent-scoped lists. Without a parent ID, account-wide lists also suppor…

ads_get_ad Get Ad Details

Get one ad with its creative details. For a DISAPPROVED or WITH_ISSUES ad it also returns reviewFeedback (Meta's rejection reasons: global and placementSpecific lists of policy and reason) and issues (errorCode, errorSummary, errorMessage, level), which explain why it is not delivering; null means Meta's reasons could not be read.

ParameterTypeDescription
accountId *stringAd account ID, e.g. act_123.
adId *stringMeta ad ID.

ads_list_pages List Facebook Pages

List Facebook Pages (with their connected Instagram accounts) available for profile overrides in an ad account.

ParameterTypeDescription
accountId *stringAd account ID, e.g. act_123.
limitinteger
offsetinteger

ads_search_targeting Search Targeting Options

Search Meta targeting values for ads_create, a saved build spec, or set_targeting in ads_edit_preview. Use type=city to find targeting.cities[].key values, type=zip to find targeting.zips[].key values, or type=detailed for {id,name,type} entries. Builds use targeting.detailedTargetingGroups; edits use add/remove with the returned type and {id}. IDs must never be guessed; use this tool to discover them.

ParameterTypeDescription
accountId *stringAd account ID, e.g. act_123.
query *stringCity name, zip/postal code, or detailed-targeting keyword to search.
type *stringUse city to find targeting.cities[].key values, zip to find targeting.zips[].key values, or detailed to find detailedTargetingGroups selections.
limitinteger

ads_list_insight_fields List Insight Fields

Discover Ads Insights fields by search, group or ids. Without filters, returns a compact group index and recommended fields. accountId adds the custom conversions of that account. Breakdown IDs belong in ads_query_insights.breakdowns, not fields. A 429 carries Retry-After. ROW_QUOTA_EXCEEDED carries the time the quota resets (meta.quota.resetsAt).

ParameterTypeDescription
accountIdstringOptional account for custom conversion definitions. Omit for static discovery without account access.
groupstringOptional exact catalog group such as delivery, conversions, video, identity, breakdown, or date.
idsarrayExact field IDs whose full entries to return.
kindstringOptional catalog kind. Use breakdown to discover values for query.breakdowns, not query.fields.
limitintegerMaximum catalog entries to return in this offset-based page.
offsetintegerZero-based catalog offset for the next field-catalog page.
recommendedbooleanWhen true, return only catalog entries recommended for common reporting queries.
searchstringOptional text matched against supported field IDs, labels, kinds, and groups.

ads_query_insights Query Ad Performance Insights

Query Ads Insights for one account, or 2 to 5 accountIds, one bounded page per account, as table rows by default. Friendly metrics such as leads, purchases, roas, results and cost_per_result cover business questions at campaign, ad set or ad level; ads_list_insight_fields finds other fields. Supports date presets and ranges, timeIncrement, breakdowns (asset, media and hourly breakdowns each alone) and filters. Use compare for vs last period or previous-year questions. Use include for status, budget, targeting or creative context instead of separate list calls. On rows with delivery, omitted co…

ads_get_insights_job Get Insights Report Job

Read an Insights report job started by ads_query_insights, by job.id and the same accountId. A running result includes progress and pollAfterSeconds. A completed result is one bounded page; paging.after with this tool returns more rows. A 429 carries Retry-After. ROW_QUOTA_EXCEEDED carries the time the quota resets (meta.quota.resetsAt).

ParameterTypeDescription
accountId *stringAd account ID from the original query.
jobId *stringjob.id returned by ads_query_insights.
afterstringOpaque paging.after cursor from this job's previous page.
formatstringtable returns row arrays in column order, including actionRows. objects returns keyed rows.
limitintegerMaximum rows; defaults to the original query limit.
waitSecondsnumberLong-poll duration. Follow pollAfterSeconds while the job is running.

ads_list_presets List Presets

List saved API or ad text presets for an ad account.

ParameterTypeDescription
accountId *stringAd account ID, e.g. act_123.
limitinteger
offsetinteger
typestring

ads_get_preset Get Preset

Get one saved preset by ID.

ParameterTypeDescription
accountId *stringAd account ID, e.g. act_123.
presetId *stringAds Uploader preset ID.

ads_save_preset Save Preset

Save an existing ad as a reusable API preset. A preset name that already exists on the account is refused.

ParameterTypeDescription
accountId *stringAd account ID, e.g. act_123.
fromAdId *stringExisting Meta ad ID to save as a preset.
name *stringPreset name.
shareWithTeamboolean

ads_list_builds List Saved Builds

List saved uploader build summaries for the authenticated user, optionally filtered by ad account. Returns metadata, warning codes, totalAdSets/totalAds/complete from display, and mediaCount. Use ads_get_build for full detail.

ParameterTypeDescription
accountIdstringOptional ad account ID filter, e.g. act_123.
limitinteger
offsetinteger

ads_save_build Save Build

Save a durable build: a launch configuration the web uploader can open and ads_create can launch by buildId. A spec-only build is the supported shape for agent-created configurations; the web uploader generates its own webState when it opens the build, and webState is only accepted unchanged from a build that was read. accountId can be omitted when the spec or webState carries it. Returns the build metadata with its url, launchable and launchBlockers, and display: totalAdSets, totalAds and the ads in each ad set as the web uploader renders them (display.complete false carries a reason, and dis…

ParameterTypeDescription
accountIdstringOptional ad account ID. The server can also derive it from webState.selectedAccount.accountId, webState.selectedAccount.account_id, or spec.accountId.
namestringOptional durable build name.
notesstringOptional free-form notes stored on the build.
specobjectPortable launch specification. Spec-only creation is supported and preferred for agent-created builds.
webStateobjectOpaque web uploader session snapshot. Do not construct it by hand. Only provide webState when round-tripping a snapshot previously read from a build without changing its structure.

ads_get_build Get Saved Build

Get one saved build by ID with its full spec. The opaque web uploader snapshot webState is included by default; include: ["-webState"] omits it. Other metadata is trimmed for display.

ParameterTypeDescription
buildId *stringSaved build ID, e.g. build_abc123...
includearrayThe web uploader session snapshot is included by default. Use -webState to omit it; webState remains accepted.

ads_fork_build Fork Saved Build

Fork a saved build into a new autosaved draft: a variant with its own build ID, preserving the original build. The fork copies the uploader configuration and media references and can be edited independently. Returns the source build ID and the new build with its url. Each call creates another fork.

ParameterTypeDescription
buildId *stringSaved build ID to duplicate, e.g. build_abc123...

ads_update_build Update Saved Build

Update one saved build by ID: rename it, edit notes, patch its portable spec with specPatch, or replace the full spec. specPatch merges field by field: omitted fields survive, nested text entries merge, supplied arrays replace and null removes a field. It needs expectedRevision, the revision from ads_get_build. Changes to spec, webState, mediaItems or uploadBatchId bump the revision. A rename or notes-only update does not bump it. Parallel updates to one build collide on the revision: a stale expectedRevision returns "Build changed since it was read" (HTTP 409), and ads_get_build returns the c…

ParameterTypeDescription
buildId *stringSaved build ID, e.g. build_abc123...
expectedRevisionintegerRevision returned by ads_get_build. Required with specPatch and recommended for every update; the update fails instead of overwriting a newer revision.
namestringNew build name. Setting a name marks the build as manually saved, so it stops rotating out with autosaves.
notesstringFree-form notes stored on the build.
specReplacement portable spec (the launch configuration used by ads_create with buildId). Send the FULL updated spec object, not a partial diff. Set to null to clear it.
specPatchobjectPreferred for content edits. Field-aware merge patch applied to the stored portable spec: omitted fields survive, nested objects (including individual texts.perAd/perAdset entries) merge, supplied arr…
webStateobjectOpaque web uploader session snapshot. Do not construct this object by hand. Only send it when round-tripping a webState previously read from the build without changing its structure. For content chang…

ads_delete_build Delete Saved Build

Delete one saved build by ID.

ParameterTypeDescription
buildId *stringSaved build ID, e.g. build_abc123...

ads_list_uploads List Upload Batches

List recent media upload batches for an ad account.

ParameterTypeDescription
accountId *stringAd account ID, e.g. act_123.
limitinteger
offsetinteger

ads_get_upload Get Upload Status

Get a completed upload batch by batchId (or its alias uploadId), or poll a background media-ingest job by jobId until complete is true. Job polls return the full result, progress and file list by default; pass compact:true for counts and failed files only.

ParameterTypeDescription
accountIdstringOptional ad account ID, e.g. act_123.
batchIdstringCompleted upload batch ID.
compactbooleanOpt in to counts and failed files for jobId polls. Default false returns the full result, progress and files.
jobIdstringBackground ingest job ID. Poll until complete is true; the final batch summary is returned in result.
uploadIdstringAlias for batchId. ads_upload returns batchId; ads_create calls that same batch ID uploadId. The per-file multipart uploads[].uploadId in a presigned ads_upload response is a storage upload ID used by…

ads_upload Upload Media

Upload media to an ad account. Use paths for local disk media, files[].url for public URLs or Google Drive file links, or driveFolderUrl for a public Drive folder. URL and Drive modes return a background jobId to poll with ads_get_upload. Each call starts a new batch. Base64 is only for a couple of small images; presigned mode is only for byte-capable environments. In presigned mode, script:true is recommended for agents with a shell.

ParameterTypeDescription
accountId *stringAd account ID, e.g. act_123.
batchIdstringOptional existing batch ID for grouping with an earlier upload.
cwdstringOptional base directory for resolving relative paths.
driveFolderUrlstringPublic Google Drive folder share link for server-side background ingestion.
filesarrayPublic media URLs (including Drive file links), small inline images, or presigned metadata.
inlineScriptbooleanWith script:true, return uploadScript inline for clients that cannot fetch scriptUrl.
pathsarrayLocal files or directories to upload when running the local stdio server. Relative paths resolve from cwd.
presignedbooleanOnly for environments that can PUT bytes themselves. Large files may return multipart part URLs.
scriptbooleanWith presigned:true, return a short-lived scriptUrl and minimal file metadata. Recommended for agents with a shell; use inlineScript:true if downloads are unavailable.

ads_upload_refresh_urls Refresh Upload Links

Refresh expired upload links for selected files or multipart part numbers in the same batch. Files already uploaded are kept. Single-PUT file keys may change; the returned keys are the ones ads_upload_finalize takes.

ParameterTypeDescription
accountId *string
batchId *stringKeep the original upload batch ID.
files *arrayOnly files or parts whose upload links expired. Other uploads remain available.

ads_upload_finalize Finalize Media Upload

Finalize a presigned upload batch after the client has PUT each file. Hosted calls return a background ingest jobId that ads_get_upload reads.

ParameterTypeDescription
accountId *stringAd account ID, e.g. act_123.
batchId *stringUpload batch ID returned by ads_upload with presigned=true.
filesarrayFiles returned by ads_upload presigned mode after the client has PUT each file to uploadUrl or each multipart chunk to parts[].url.
thumbnailMaparrayOptional explicit video-to-thumbnail staged key map. ads_upload usually returns thumbnailFileKey on the video automatically.

ads_create Create Meta Ads

Create Meta ads in an ad account from a v1 AdSpec request body or a saved build (buildId). Media comes from an upload batch (uploadId), saved-build mediaItems, copyFromAd or a preset. Existing destinations take campaign.id and adSet.id; campaign.name and adSet.name create new ones. Ad text goes in texts.common or texts.perAd, keyed by file name, as headlines arrays plus bodies and descriptions; CTA fields use Meta enum values such as SHOP_NOW. Supports standard, carousel, flexible and Multi Media ads, partnership ads on uploaded media, Instagram existing-post partnership ads and Product Showca…

ads_preview Preview Ad Creation

Preview what ads_create would do for a v1 AdSpec request or saved build, without creating ads. Takes the same inputs as ads_create: existing destinations take campaign.id and adSet.id, and ad text takes headlines arrays. Returns the planned campaigns, ad sets and ads, newAdSets with the exact settings each new ad set would get (targeting, placements, attribution, optimization, pixel and event, bid, budget), warnings (blocking: true marks the ones create rejects), lifetimeBudget when it applies, a resolvedSpec and launch.mode. launch.mode allowed means create sends objects straight to Meta, and…

ads_get_job Get Job Status

Get an ad creation job by jobId. Returns the full result and stage progress by default; compact: true returns an ads summary with created, failed and total counts and progress measured in ads. Includes the last 20 progress.operations (operations: "full" returns all retained ones). A job that is still running has complete: false, and compact running jobs include a nextStep hint.

ParameterTypeDescription
jobId *stringAd creation job ID.
compactbooleanOpt in to a compact ads summary. Default false preserves the full result and original stage progress.
operationsstringUse recent for the last 20 operations or full for the complete operation log.

ads_duplicate_preview Preview Duplication

Copy campaigns, ad sets or ads in Ads Uploader, with previews, destination settings and account approvals. Copies stay within one ad account. A deep copy includes children; deepCopy: false copies only the root. Ad sets default to their source campaign and ads to their source ad set. rename supports {name}, {date} (UTC) and {index}; only roots are renamed unless renameChildren is true. Copy roots are PAUSED by default and children keep their source status unless childStatus:PAUSED. overrides change targeting, schedule, budget, bid and ad set settings on the copies. EU-targeted ad set copies nee…

ads_duplicate Duplicate Campaigns, Ad Sets or Ads

Copy campaigns, ad sets or ads in Ads Uploader, with previews, destination settings and account approvals. Copies stay within one ad account. A deep copy includes children; deepCopy: false copies only the root. Ad sets default to their source campaign and ads to their source ad set. rename supports {name}, {date} (UTC) and {index}; only roots are renamed unless renameChildren is true. Copy roots are PAUSED by default and children keep their source status unless childStatus:PAUSED. overrides change targeting, schedule, budget, bid and ad set settings on the copies. EU-targeted ad set copies nee…

ads_duplicate_by_post Duplicate Ads by Post

Duplicate ads while keeping their social proof (likes, comments, shares) by reusing the same Page post; for regular duplication use ads_duplicate. Copies go into an existing ad set (adSetId) or into new ad sets: newAdSet and newAdSetPerAd copy the ad set given in adSetId, which must already be in the destination campaign and may be empty (it needs no ads). For a brand-new empty campaign, first put one ad set in it with no ads (for example ads_duplicate of an ad set with deepCopy:false) and pass that adSetId with newAdSet or newAdSetPerAd, so the ads and their new ad sets are created in the by-…

ParameterTypeDescription
accountId *stringMeta ad account ID, e.g. act_123.
acknowledgeWarningsbooleanContinues past the creative warnings the preview listed. Needed for warned live runs unless useCreativeId is true.
adIdsarrayOrdered exact source ad IDs. Use preview.resolvedRequest to retain the reviewed selection; exclusive with postIds.
adNamePatternstringNew ad name pattern. Supports {AdName} and {Index}.
adSetIdstringRequired for an existing destination ad set. Optional with newAdSet/newAdSetPerAd: omit to copy the source ad set, or provide a template in campaignId and the selected account. A source without its ow…
campaignIdstringExisting destination campaign ID.
confirmSpendbooleanAccepted for older clients and ignored: post-ID copies never require it.
newAdSetobjectOne shared new ad set. Cannot be combined with newAdSetPerAd.
newAdSetPerAdobjectOne new ad set per source ad. Cannot be combined with newAdSet; one source produces one shared clone.
pausedbooleanCreate duplicated ads paused.
postIdsarrayDiscover source ads by Page post ID. Multiple matches require an explicit adIds selection; exclusive with adIds.
reasonstringOne short note for the user explaining why (shown in their Agent Inbox).
reviewIdstringAdd this copy to an existing review from ads_edit_preview or an earlier duplicate, so one run is approved together.
runTitlestringShort name for this run. If the user names the run, use their exact words. Reuse it with the same reviewId. A run the user renamed keeps their name.
useCreativeIdbooleanReuse original creative IDs instead of creating post-reference creatives.

ads_duplicate_by_post_preview Preview Duplication by Post

Duplicate ads while keeping their social proof (likes, comments, shares) by reusing the same Page post; for regular duplication use ads_duplicate. Previews the copy without creating anything: returns sourceCandidates, a pinned resolvedRequest and a cleaned source-to-destination plan. Select ads by Page post ID. Use postIds for discovery or adIds for exact selection, never both; a post that matches several ads needs adIds.

ParameterTypeDescription
accountId *stringMeta ad account ID, e.g. act_123.
acknowledgeWarningsbooleanContinues past the creative warnings the preview listed. Needed for warned live runs unless useCreativeId is true.
adIdsarrayOrdered exact source ad IDs. Use preview.resolvedRequest to retain the reviewed selection; exclusive with postIds.
adNamePatternstringNew ad name pattern. Supports {AdName} and {Index}.
adSetIdstringRequired for an existing destination ad set. Optional with newAdSet/newAdSetPerAd: omit to copy the source ad set, or provide a template in campaignId and the selected account. A source without its ow…
campaignIdstringExisting destination campaign ID.
confirmSpendbooleanAccepted for older clients and ignored: post-ID copies never require it.
newAdSetobjectOne shared new ad set. Cannot be combined with newAdSetPerAd.
newAdSetPerAdobjectOne new ad set per source ad. Cannot be combined with newAdSet; one source produces one shared clone.
pausedbooleanCreate duplicated ads paused.
postIdsarrayDiscover source ads by Page post ID. Multiple matches require an explicit adIds selection; exclusive with adIds.
reasonstringOne short note for the user explaining why (shown in their Agent Inbox).
reviewIdstringAdd this copy to an existing review from ads_edit_preview or an earlier duplicate, so one run is approved together.
runTitlestringShort name for this run. If the user names the run, use their exact words. Reuse it with the same reviewId. A run the user renamed keeps their name.
useCreativeIdbooleanReuse original creative IDs instead of creating post-reference creatives.

ads_get_duplication Get Duplication Status

Get a regular duplicate or duplicate-by-post job by jobId. Returns complete plus the created, failed and skipped objects. A partial job has created objects: created carries newId and the current name, failed carries stage and error.message, and retryable marks a step that can be retried from the Agent Inbox. Pending approvals have no job until they are approved in the Agent Inbox.

ParameterTypeDescription
jobId *stringDuplication job ID.

ads_cancel_job Cancel Job

Cancel a running ad creation job or media ingest job.

ParameterTypeDescription
jobId *stringAd creation job ID or media ingest job ID (ingest_...).