Skip to main content
Glama

Google Ads & Meta Ads

Meta: Create Ad Set

meta_create_adset

Add a PAUSED ad set to a Meta campaign that already exists in your ad account, with its countries, age range, daily budget and bidding. The optimization goal follows the campaign objective; a sales campaign's ad set optimizes for a pixel event, locked at creation. If the campaign has its own budget (CBO) leave daily_budget and bidding out. The budget is checked against your daily cap. An engagement ad set promotes a Facebook Page; destination WHATSAPP makes it a click-to-WhatsApp ad set. Add ads with meta_create_ad.

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": {
      "campaign_id": "<campaign_id>",
      "name": "<name>"
    },
    "name": "meta_create_adset"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesAd set name.
age_maxNoMaximum audience age.
age_minNoMinimum audience age.
page_idNoFacebook Page the ad set promotes, engagement and WhatsApp ad sets only. Defaults to the ad account's Page when there is one. See meta_list_pages.
pixel_idNoMeta Pixel id, sales campaigns only. Defaults to the account's pixel when it has one.
countriesNoISO country codes. Default ["US"].
dsa_payorNoEU only: the person or organisation paying for the ads. Defaults to dsa_beneficiary.
bid_amountNoCost or bid cap per result, for COST_CAP and LOWEST_COST_WITH_BID_CAP only. In the account's own currency (the currency field of gads_list_campaigns or meta_list_campaigns), not in dollars and not in minor units.
campaign_idYesCampaign the ad set goes into.
destinationNoWhere the ad sends people. WEBSITE (default) opens link_url. WHATSAPP (OUTCOME_ENGAGEMENT only) opens a WhatsApp chat with the Page's linked number, optimizes for conversations and uses the WHATSAPP_MESSAGE button; the Page must have WhatsApp connected in Meta Business Suite.
roas_targetNoMinimum ROAS for LOWEST_COST_WITH_MIN_ROAS, as a RATIO: pass 2.5 to mean 250% (2.50 of purchase value per 1 spent). Between 0.01 and 1000.
bid_strategyNoAd set bid strategy. LOWEST_COST_WITHOUT_CAP: Meta's default, the most results for the budget. COST_CAP: keeps the average cost per result near bid_amount. LOWEST_COST_WITH_BID_CAP: no auction bid above bid_amount. LOWEST_COST_WITH_MIN_ROAS: a minimum return on ad spend (roas_target); only on ad sets optimizing for PURCHASE, which are switched to optimize for purchase value. roas_target without bid_strategy means LOWEST_COST_WITH_MIN_ROAS.
daily_budgetNoDaily budget. Required unless the campaign has its own (CBO) budget, where it must be left out. In the account's own currency (the currency field of gads_list_campaigns or meta_list_campaigns), not in dollars and not in minor units.
ad_account_idNoMeta ad account to change: act_ id or exact account name. Required when you have several ad accounts — the stored default is never used for a change then.
dsa_beneficiaryNoEU only: the person or organisation the ads promote, shown to EU viewers under the Digital Services Act. Meta requires it when the ad set reaches an EU country and the ad account has no default advertiser. Ask the user for the exact name; never guess it.
conversion_eventNoPixel event to optimize for, sales campaigns only. Default PURCHASE.

Output Schema

NameRequiredDescriptionDefault
statusYesAlways PAUSED.
adSetIdYesId of the new ad set.
currencyNoISO currency code that every money field in this result is denominated in, e.g. UAH or USD. Null when it could not be resolved — do not assume a currency then.
campaignIdYesCampaign it was added to.
dailyBudgetNoAd set daily budget, absent under a campaign budget. Amount in the account currency (see the currency field), e.g. 800.00 with currency UAH means 800 UAH — never a minor-unit integer.
optimizationGoalYesWhat the ad set optimizes for.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations only declare the generic safety profile (non-read-only, non-destructive, open-world, non-idempotent); the description adds real behavioral context beyond them — the ad set is created PAUSED, the optimization goal is inherited from the campaign objective and locked at creation, and the budget is validated against the account's daily cap. It is silent on failure modes when the cap is exceeded.

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?

Five dense sentences, front-loaded with the action and creation state before conditionals. Each sentence carries a distinct rule, though the paragraph-length density means the CBO rule and the WhatsApp rule compete for attention without visual separation.

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 a 16-parameter mutation with an output schema already defined, the description covers the ambiguous parts well: creation state, inherited optimization, CBO, budget cap, and destination branching. It omits what a budget-cap rejection looks like and any idempotency/duplicate-creation caveat, which matter for a non-idempotent create.

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 coverage is 100%, so the baseline is 3, but the description adds cross-parameter meaning the schema cannot: the CBO rule for daily_budget/bid_amount, the currency reminder, pixel event tying to sales campaigns, and engagement/WhatsApp Page requirements. Only minor gaps remain, such as interaction between roas_target and bid_strategy being left to the schema.

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?

The opening states a specific verb and resource — 'Add a PAUSED ad set to a Meta campaign that already exists in your ad account' — plus the scope (countries, age range, daily budget, bidding). It is clearly distinguishable from meta_create_campaign (campaign already exists) and meta_create_ad (added after).

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

Usage Guidelines4/5

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

Gives explicit conditional guidance: leave out daily_budget and bidding when the campaign has CBO, use destination WHATSAPP for engagement ad sets, and follow on with meta_create_ad. It does not explicitly exclude sibling creation tools (e.g. meta_create_campaign_only), but the 'campaign that already exists' framing effectively handles that.

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.

Resources