Skip to main content
Glama

ads_ad_create

Destructive

Create an ad from your own creative, together with its campaign and ad set (or attached to existing ones via attach_to). SPENDS REAL MONEY from the ad account once approved unless status is paused: confirm budget, targeting and creative with the user first, and consider validate_only. Meta: needs page_id, link and either media (one image or video URL) or carousel_cards; goal defaults to traffic. Google: creates a Search campaign, ad group, keywords and a responsive search ad atomically; needs final_url, headlines (3-15, max 30 chars), descriptions (2-4, max 90 chars), keywords and budget. Returns the ad. Not idempotent: pass idempotency_key before retrying. To promote an already published post use ads_post_boost.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "ad_account_id": "<ad_account_id>"
    },
    "name": "ads_ad_create"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyNoMeta: primary text
goalNoMeta. Default traffic.
linkNoMeta, required: destination URL
mediaNoMeta: one image or video URL. Send this or carousel_cards.
path1NoGoogle: display path, up to 15 characters
path2NoGoogle: second display path, up to 15 characters; needs path1
budgetNoBudget in the ad account currency, whole units (10 = 10.00). Meta minimum is the ad account's minimum_daily_budget.
statusNoDefault active: the ad starts spending once approved. Use paused to create without delivering.
ad_nameNoDefaults to 'Postproxy Ad - <timestamp>'
biddingNoGoogle bidding: { strategy, target_cpa, max_cpc }. maximize_clicks (default, optional max_cpc ceiling), manual_cpc (needs max_cpc), maximize_conversions, target_cpa (needs target_cpa).
page_idNoMeta, required: Facebook Page the ad runs as
headlineNoMeta: ad headline
keywordsNoGoogle keywords, up to 200
scheduleNoWhen the ad runs. Without end it runs until paused. On Meta end must be at least 30 hours after the start.
trackingNoMeta: { pixel_id }
url_tagsNoMeta: appended to the ad's links, e.g. ["utm_source=postproxy"]
attach_toNoReuse existing objects instead of creating new ones: { campaign_id } adds a new ad set and ad to a campaign; { campaign_id, ad_set_id } adds only the ad. Both are network ids. With ad_set_id, do not send budget, bid_amount or targeting (Meta) or keywords (Google); with any attach_to, no campaign-level budget.
dsa_payorNoMeta EU DSA payor; send together with dsa_beneficiary
final_urlNoGoogle, required: landing page URL
headlinesNoGoogle, required: 3 to 15 unique headlines, each up to 30 characters
platformsNoPer-network extras. platforms.meta_ads.thumbnail_url is required when media is a video.
targetingNoAudience. Meta defaults to US, ages 18-65. Google Search accepts only locations, excluded_locations and location_targeting_type, with locations as arrays of numeric ids.
bid_amountNoMeta: required with bid_cap / cost_cap, not allowed with lowest_cost
placementsNoMeta manual placements: publisher_platforms, facebook_positions, instagram_positions, messenger_positions, audience_network_positions, threads_positions, device_platforms. Omit for automatic placements.
profile_idNoAds profile hashid (the profile_id of an ad account in ads_accounts_list). Optional when exactly one ads profile is connected; required when several are.
ad_set_nameNoDefaults to ad_name
descriptionNoMeta: link description
bid_strategyNoMeta. Defaults to bid_cap when bid_amount is sent, else lowest_cost.
descriptionsNoGoogle, required: 2 to 4 unique descriptions, each up to 90 characters
ad_account_idYesAd account id: the network's own id, from ads_accounts_list (id field)
ad_set_statusNoDefaults to status on Meta, to active on Google
campaign_nameNoDefaults to ad_name
campaign_typeNoGoogle. Default search; other types cannot be created.
validate_onlyNoCheck the request without creating anything. Returns { valid: true, validated: [...] }. On Meta only the parameters and the campaign are dry-run; on Google the whole request is.
call_to_actionNoMeta button. Link button: { type, link, link_title } with type LEARN_MORE, APPLY_NOW, SIGN_UP, SHOP_NOW, BOOK_TRAVEL, GET_QUOTE, CONTACT_US, DOWNLOAD or SUBSCRIBE. Messaging: { type, destination } with destination messenger, whatsapp or instagram_dm and type MESSAGE_PAGE, WHATSAPP_MESSAGE or INSTAGRAM_MESSAGE (needs goal engagement).
carousel_cardsNoMeta: 2 to 10 carousel cards
campaign_statusNoDefaults to status
dsa_beneficiaryNoMeta EU DSA beneficiary; send together with dsa_payor. Suggestions: ads_dsa_recommendations.
idempotency_keyNoUnique key for this create, sent as the Idempotency-Key header. Reuse the same key when retrying so the object is not created twice.
network_settingsNoGoogle: { search_partners, display_network }, both default false
profile_group_idNoProfile group hashid, to scope the call to one profile group. Usually not needed.
negative_keywordsNoGoogle negative keywords: { text, match_type }. A bid is ignored.
optimization_goalNoMeta, per goal: engagement post_engagement; traffic link_clicks or landing_page_views; awareness reach or impressions; video_views thruplay. Defaults to the first.
instagram_account_idNoMeta: Instagram account to show the ad from
special_ad_categoriesNoMeta special ad categories
eu_political_advertisingNoGoogle. Default false.
ad_set_budget_sharing_enabledNoMeta ad set budget sharing. Not with a lifetime or campaign-level budget, or attach_to.
special_ad_category_countriesNoMeta: defaults to the countries of the targeted locations

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.7/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare destructiveHint=true, idempotentHint=false and openWorldHint=true, and the description adds context those flags cannot: it explicitly says this SPENDS REAL MONEY, that spending begins once approved unless status is paused, and that a retry needs idempotency_key. It also discloses the per-network dry-run asymmetry of validate_only (Meta only dry-runs parameters and campaign, Google dry-runs everything), which is genuine behavioral detail beyond the annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the highest-consequence fact (spends real money), then platform requirements, then the sibling redirect — a sensible priority order with no filler sentences. It is dense but justified for a 48-parameter atomic creation tool; minor cost is that the Meta and Google requirement lists read as prose blocks rather than scannable structure.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For an atomic multi-object creator with 48 params, nested objects and no output schema, it covers the essentials: money risk, pause semantics, idempotency on retry, validate_only, attach_to constraints and the per-network required sets. It states the return value ('Returns the ad') adequately. Remaining gap is failure/partial-creation behavior on network errors, which for an atomic cross-object create would be worth a sentence.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the baseline is 3, but the description adds cross-parameter, platform-conditional requirements the schema lists only per-field: Meta needs page_id, link and media or carousel_cards, while Google needs final_url, headlines (3-15, max 30 chars), descriptions (2-4, max 90 chars), keywords and budget, created atomically. It also states the mutual exclusions for attach_to (no budget/bid_amount/targeting or keywords with ad_set_id) and the goal default, which is meaning above the field-level text.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a concrete verb and resource ('Create an ad from your own creative') plus the scope it owns (campaign and ad set, or attach_to for existing objects). It explicitly routes the different intent — promoting an already published post — to the sibling ads_post_boost, so an agent can separate it from ads_campaign_create and ads_ad_set_create without reading any schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives real when-to-use guidance including a prerequisite gate: confirm budget, targeting and creative with the user first, and consider validate_only. It names the alternative tool and the exact condition that selects it, and it explains the attach_to branch (campaign_id only vs campaign_id + ad_set_id) as the way to reuse rather than create objects.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.