Skip to main content
Glama

Create ad set

meta_create_adset

Create an ad set in a campaign; it starts PAUSED. targeting and promoted_object are JSON objects; budgets and bids are in minor currency units. With no bid_strategy, bid_amount or bid_constraints it uses LOWEST_COST_WITHOUT_CAP, or the campaign's strategy when the campaign holds the budget. targeting.targeting_automation.advantage_audience: pass it, or AdChat sends 0 when you set ages, genders or detailed targeting, else 1. is_dynamic_creative: true makes a Dynamic Creative ad set (one ad, format "dynamic" creative) and can't change later. Changes the ad account: tell the user exactly what will change and call only after their Yes. If the result lists rule reasons, nothing changed: show them, ask again, and only after a new Yes retry with acknowledge_rules: true.

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

Input Schema

NameRequiredDescriptionDefault
nameYes
statusNo
end_timeNo
dsa_payorNo
targetingNo
account_idYese.g. act_1234567890
bid_amountNo
start_timeNo
campaign_idYesA string, never a number
bid_strategyNo
daily_budgetNo
billing_eventYes
bid_adjustmentsNo
bid_constraintsNo
dsa_beneficiaryNo
lifetime_budgetNo
promoted_objectNo
attribution_specNo
destination_typeNo
acknowledge_rulesNoOnly on a retry after the user's Yes to rule reasons; never on a first call.
optimization_goalYes
is_dynamic_creativeNo
multi_advertiser_adsNo
frequency_control_specsNo
regional_regulated_categoriesNo
regional_regulation_identitiesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Beyond the annotations, the description discloses the default creation state (PAUSED), the implicit bid_strategy fallback (LOWEST_COST_WITHOUT_CAP, or the campaign's strategy when the campaign holds budget), the server-side advantage_audience defaulting rule, and that is_dynamic_creative is immutable after creation. It also spells out the human-confirmation gate and the exact failure semantics when rule reasons are returned (nothing changed), which the annotations do not convey.

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?

The most decision-critical facts (what it creates, PAUSED default, confirmation gate) are front-loaded, and every clause carries information rather than filler. It is dense and semicolon-chained, with the mutation-confirmation rule placed last, which slightly buries the highest-risk instruction.

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

Completeness5/5

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

For a 26-parameter mutation tool with no output schema, the description covers what an agent most needs to avoid a bad call: creation defaults, budget unit conventions, the JSON-object parameters, immutability of dynamic creative, and the confirm-then-retry loop with acknowledge_rules. The remaining gaps are narrow optional parameters that would rarely change whether the call is made correctly.

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?

With schema description coverage at only 12%, the description carries real weight: it tells the agent targeting and promoted_object are JSON objects, that budgets and bids are in minor currency units, and how bid_strategy, advantage_audience, and is_dynamic_creative behave. Roughly twenty secondary parameters (attribution_spec, frequency_control_specs, regional_regulated_categories, multi_advertiser_ads, dsa_beneficiary, destination_type, start_time/end_time) still get no semantics from either schema or description, which keeps it below a 5.

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

Purpose4/5

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

The description opens with a specific verb and resource ("Create an ad set in a campaign") and immediately states the resulting state ("starts PAUSED"), which separates it from meta_create_campaign and meta_create_ad by resource. It stops short of explicitly naming those siblings as the alternative for related objects, so an agent must infer the boundary from resource names alone.

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?

Strong when-to-call guidance for a mutation: "tell the user exactly what will change and call only after their Yes," plus an explicit when-not ("never on a first call" for acknowledge_rules) and a defined retry path when rule reasons come back. What is missing is any routing guidance toward sibling creation tools (ad, campaign, creative) when the agent's intent is ambiguous.

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.